/*!
 * SAMP.RYSE.MP panel - design system (R7)
 * Dark theme on top of Bootstrap 5.3.8 (self-hosted). Palette from the in-game logo
 * ~r~SAMP~w~.~y~RYSE~w~.~b~MP. Fonts: Inter (body), Rajdhani (display) - self-hosted, SIL OFL.
 * No build step: this file is edited by hand and served as is.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/inter-latin-var.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/inter-latin-ext-var.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(fonts/rajdhani-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(fonts/rajdhani-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(fonts/rajdhani-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(fonts/rajdhani-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

/* ------------------------------------------------------------------ tokens */
:root, [data-bs-theme="dark"] {
    /* brand (SA-MP game text colours lifted for dark backgrounds, WCAG AA on --r-surface) */
    --r-red: #e8333a;       /* ~r~  */
    --r-red-600: #c8232a;
    --r-red-700: #b4191d;   /* original ~r~ */
    --r-gold: #f2c14e;      /* ~y~  */
    --r-gold-700: #d8a52c;
    --r-blue: #5b84ff;      /* ~b~ (original #323c7f is too dark for text) */
    --r-blue-700: #323c7f;
    --r-white: #f4f5f7;     /* ~w~  */
    --r-green: #2fbf71;
    --r-purple: #a77bff;
    --r-cyan: #36c5d6;

    /* surfaces */
    --r-bg: #0b0d12;
    --r-bg-2: #0f1218;
    --r-surface: #141821;
    --r-surface-2: #1a1f2a;
    --r-surface-3: #222836;
    --r-border: #272d3a;
    --r-border-strong: #343b4b;
    --r-text: #e7e9ee;
    --r-text-2: #b9c0cc;
    --r-muted: #8f98a8;     /* 5.6:1 on --r-surface */

    --r-radius: 14px;
    --r-radius-sm: 10px;
    --r-radius-xs: 7px;
    --r-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
    --r-ring: 0 0 0 3px rgba(232, 51, 58, .35);
    --r-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --r-display: "Rajdhani", "Inter", system-ui, sans-serif;
    --r-sidebar-w: 272px;
    --r-topbar-h: 64px;
    --r-tricolor: linear-gradient(90deg, var(--r-red) 0 33.3%, var(--r-gold) 33.3% 66.6%, var(--r-blue) 66.6% 100%);

    /* Bootstrap 5.3 variables */
    color-scheme: dark;
    --bs-body-font-family: var(--r-font);
    --bs-body-font-size: .9375rem;
    --bs-body-line-height: 1.55;
    --bs-body-bg: var(--r-bg);
    --bs-body-color: var(--r-text);
    --bs-emphasis-color: #fff;
    --bs-secondary-color: var(--r-muted);
    --bs-secondary-bg: var(--r-surface-2);
    --bs-tertiary-bg: var(--r-surface);
    --bs-border-color: var(--r-border);
    --bs-border-color-translucent: rgba(255, 255, 255, .08);
    --bs-border-radius: var(--r-radius-sm);
    --bs-border-radius-sm: var(--r-radius-xs);
    --bs-border-radius-lg: var(--r-radius);
    --bs-link-color: #ffd47a;
    --bs-link-color-rgb: 255, 212, 122;
    --bs-link-hover-color: #fff;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-primary: var(--r-red);
    --bs-primary-rgb: 232, 51, 58;
    --bs-danger: #ff5c63;
    --bs-danger-rgb: 255, 92, 99;
    --bs-warning: var(--r-gold);
    --bs-warning-rgb: 242, 193, 78;
    --bs-info: var(--r-blue);
    --bs-info-rgb: 91, 132, 255;
    --bs-success: var(--r-green);
    --bs-success-rgb: 47, 191, 113;
    --bs-heading-color: #fff;
    --bs-code-color: var(--r-gold);
    --bs-focus-ring-color: rgba(232, 51, 58, .35);
    --bs-form-valid-color: var(--r-green);
    --bs-form-invalid-color: #ff6b71;
}

/* ------------------------------------------------------------------ base */
html { scroll-padding-top: calc(var(--r-topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--r-bg); color: var(--r-text); min-height: 100vh; overflow-x: hidden; }
::selection { background: rgba(232, 51, 58, .45); color: #fff; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5, h6, .display-font { font-family: var(--r-display); font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
hr { border-color: var(--r-border); opacity: 1; }
img { max-width: 100%; }
code, kbd { font-size: .875em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-muted, .text-secondary { color: var(--r-muted) !important; }
.text-red { color: var(--r-red) !important; }
.text-gold { color: var(--r-gold) !important; }
.text-blue { color: var(--r-blue) !important; }
.text-green, .green { color: var(--r-green) !important; }
.red { color: #ff6b71 !important; }
.orange { color: #ffa94d !important; }
.yellow { color: var(--r-gold) !important; }
.fw-display { font-family: var(--r-display); font-weight: 700; letter-spacing: .02em; }
.upper { text-transform: uppercase; letter-spacing: .06em; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--r-gold); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--r-gold); outline-offset: 2px; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; }

/* personal background theme (players.T, /changeimg): dimmed image behind the top of the page */
.page-backdrop { position: fixed; inset: 0 0 auto 0; height: 420px; z-index: 0; pointer-events: none;
    background-image: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, .85) 55%, var(--r-bg) 100%), var(--cover, none);
    background-size: cover; background-position: center 35%; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .page-backdrop { transition: background-image .3s; } }

/* ------------------------------------------------------------------ app shell */
.app { position: relative; z-index: 1; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--r-sidebar-w); background: rgba(13, 16, 22, .96);
    border-right: 1px solid var(--r-border); display: flex; flex-direction: column; z-index: 1045; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; height: var(--r-topbar-h); padding: 0 18px; border-bottom: 1px solid var(--r-border); flex: none; }
.sidebar .brand img { height: 34px; width: auto; }
.sidebar .brand::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--r-topbar-h) - 2px); height: 2px; background: var(--r-tricolor); opacity: .85; }
.sidebar-scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 24px; scrollbar-width: thin; scrollbar-color: var(--r-border-strong) transparent; }
.nav-section { margin-top: 14px; }
.nav-section-title { font: 700 .72rem/1 var(--r-display); letter-spacing: .14em; text-transform: uppercase; color: var(--r-muted); padding: 6px 12px 8px; }
.side-link, .side-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--r-text-2);
    font-weight: 500; font-size: .92rem; border: 0; background: none; text-align: left; position: relative; min-height: 42px; }
.side-link i, .side-toggle > i:first-child { width: 20px; text-align: center; color: var(--r-muted); font-size: .95rem; flex: none; }
.side-link:hover, .side-toggle:hover { background: var(--r-surface-2); color: #fff; }
.side-link:hover i, .side-toggle:hover > i:first-child { color: var(--r-gold); }
.side-link.active { background: linear-gradient(90deg, rgba(232, 51, 58, .18), rgba(232, 51, 58, .04)); color: #fff; }
.side-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--r-red); }
.side-link.active i { color: var(--r-red); }
.side-link .count, .side-toggle .count { margin-left: auto; font: 600 .78rem/1 var(--r-display); letter-spacing: .03em; color: var(--r-text-2); background: var(--r-surface-3);
    border-radius: 999px; padding: 4px 8px; min-width: 26px; text-align: center; }
.side-link .count.on { background: rgba(47, 191, 113, .16); color: #6fe3a3; }
.side-link .count.off { background: rgba(255, 255, 255, .05); color: var(--r-muted); }
.side-link.highlight { color: var(--r-gold); }
.side-link.highlight i { color: var(--r-gold); }
.side-toggle .chev { margin-left: auto; font-size: .7rem; color: var(--r-muted); transition: transform .2s; }
.side-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.side-sub { padding: 2px 0 6px 32px; }
.side-sub .side-link { min-height: 36px; padding: 7px 12px; font-size: .88rem; }
.side-sub .side-link::before { left: -8px; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--r-border); font-size: .8rem; color: var(--r-muted); flex: none; }

.main { margin-left: var(--r-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; height: var(--r-topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 20px;
    background: rgba(11, 13, 18, .78); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--r-border); }
.topbar .burger { display: none; }
.topbar-brand { display: none; }
.topbar-search { flex: 1 1 auto; max-width: 420px; position: relative; }
.topbar-search input { padding-left: 38px; height: 40px; border-radius: 999px; background: var(--r-surface); }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--r-muted); pointer-events: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--r-text-2); background: transparent;
    border: 1px solid transparent; position: relative; flex: none; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--r-surface-2); color: #fff; border-color: var(--r-border); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--r-red); color: #fff;
    font: 700 .68rem/18px var(--r-font); text-align: center; box-shadow: 0 0 0 2px var(--r-bg); }
.wallet { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--r-surface); border: 1px solid var(--r-border); }
.wallet span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 .9rem/1 var(--r-display); letter-spacing: .02em; white-space: nowrap; }
.wallet .dia { color: #8fd8ff; }
.wallet .cash { color: #7ee2a8; background: var(--r-surface-2); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--r-border); color: var(--r-text); background: var(--r-surface); }
.user-chip:hover { border-color: var(--r-border-strong); color: #fff; }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--r-surface-3); }
.user-chip b { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--r-border-strong); color: var(--r-text-2);
    background: transparent; font: 600 .88rem/1 var(--r-display); letter-spacing: .03em; white-space: nowrap; }
.server-chip:hover { color: #fff; border-color: var(--r-gold); }
.server-chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--r-green); box-shadow: 0 0 0 3px rgba(47, 191, 113, .2); }

.content { flex: 1 0 auto; width: 100%; max-width: 1480px; margin: 0 auto; padding: 22px 24px 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.page-head .eyebrow { font: 700 .75rem/1 var(--r-display); letter-spacing: .18em; text-transform: uppercase; color: var(--r-gold); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.page-head .eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--r-tricolor); }
.page-head .lead { color: var(--r-text-2); font-size: .98rem; margin: 6px 0 0; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.footer { border-top: 1px solid var(--r-border); padding: 18px 24px; color: var(--r-muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer a { color: var(--r-text-2); }
.footer a:hover { color: #fff; }
.footer .brandline { display: inline-flex; align-items: center; gap: 8px; }
.footer .brandline img { height: 18px; }

.bottom-nav { display: none; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0, 0, 0, .7); width: min(86vw, 320px); }
    .sidebar.show { transform: none; }
    .main { margin-left: 0; }
    .topbar { padding: 0 12px; }
    .topbar .burger { display: inline-grid; }
    .topbar-brand { display: inline-flex; align-items: center; }
    .topbar-brand img { height: 30px; }
    .topbar-search { display: none; }
    .server-chip { display: none; }
    .content { padding: 18px 14px 96px; }
    .footer { padding-bottom: 90px; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        background: rgba(13, 16, 22, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--r-border);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
    .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--r-muted); background: none; border: 0;
        font: 600 .7rem/1 var(--r-font); border-radius: 12px; min-height: 48px; justify-content: center; }
    .bottom-nav i { font-size: 1.1rem; }
    .bottom-nav .active { color: #fff; }
    .bottom-nav .active i { color: var(--r-red); }
    .bottom-nav .cta i { width: 42px; height: 42px; margin-top: -20px; border-radius: 14px; display: grid; place-items: center; color: #111;
        background: linear-gradient(135deg, var(--r-gold), var(--r-gold-700)); box-shadow: 0 8px 20px -6px rgba(242, 193, 78, .6), 0 0 0 4px var(--r-bg); }
    .bottom-nav .cta { color: var(--r-gold); }
}
@media (max-width: 575.98px) {
    .wallet .cash { display: none; }
    .user-chip { padding: 3px; }
    .user-chip b { display: none; }
    .page-head { margin-bottom: 16px; }
    .page-head .actions { margin-left: 0; width: 100%; }
}
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s; }
.sidebar-backdrop.show { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------------ cards */
.card { --bs-card-bg: var(--r-surface); --bs-card-border-color: var(--r-border); --bs-card-border-radius: var(--r-radius); --bs-card-inner-border-radius: calc(var(--r-radius) - 1px);
    --bs-card-cap-bg: transparent; --bs-card-spacer-x: 1.15rem; --bs-card-spacer-y: 1.1rem; box-shadow: var(--r-shadow); }
.card + .card { margin-top: 0; }
.card-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--r-border); padding: .85rem 1.15rem; min-height: 56px; }
.card-header .card-title, .card-title { margin: 0; font: 700 1.02rem/1.2 var(--r-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 10px; }
.card-title .ic { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-size: .85rem; background: rgba(232, 51, 58, .14); color: var(--r-red); flex: none; }
.card-title .ic.gold { background: rgba(242, 193, 78, .14); color: var(--r-gold); }
.card-title .ic.blue { background: rgba(91, 132, 255, .15); color: var(--r-blue); }
.card-title .ic.green { background: rgba(47, 191, 113, .15); color: var(--r-green); }
.card-title .ic.purple { background: rgba(167, 123, 255, .15); color: var(--r-purple); }
.card-header .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-footer { background: transparent; border-top: 1px solid var(--r-border); }
.card-flush .card-body { padding: 0; }
.card.accent-top { border-top: 0; position: relative; overflow: hidden; }
.card.accent-top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--r-tricolor); }
.stack { display: grid; gap: 18px; }
.grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-cards.sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid-cards.lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 575.98px) { .grid-cards, .grid-cards.lg { grid-template-columns: 1fr; } .grid-cards.sm { grid-template-columns: 1fr 1fr; } }

/* tile used for factions / clans / vehicles / skins / quizzes / achievements ... */
.tile { background: var(--r-surface); border: 1px solid var(--r-border); border-radius: var(--r-radius); overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--r-shadow); transition: transform .18s ease, border-color .18s ease; }
.tile:hover { border-color: var(--r-border-strong); transform: translateY(-2px); }
.tile-media { position: relative; background: radial-gradient(120% 90% at 50% 0%, var(--r-surface-3), var(--r-bg-2)); display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media.contain img { object-fit: contain; padding: 10px; }
.tile-media.portrait { aspect-ratio: 3 / 4; }
.tile-media.round img { width: 62%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--r-surface), 0 0 0 5px var(--r-border-strong); }
.tile-media .corner { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tile-media .corner.right { left: auto; right: 10px; }
.tile-media .overlay-text { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 600; text-align: center; }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-title { font: 700 1.12rem/1.15 var(--r-display); letter-spacing: .03em; text-transform: uppercase; margin: 0; color: #fff; }
.tile-sub { color: var(--r-muted); font-size: .84rem; }
.tile-price { font: 700 1.15rem/1 var(--r-display); color: #7ee2a8; letter-spacing: .02em; }
.tile-price.dia { color: #8fd8ff; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tile.special { border-color: rgba(242, 193, 78, .35); background: linear-gradient(180deg, rgba(242, 193, 78, .06), transparent 40%), var(--r-surface); }
.tile.muted { opacity: .72; }

/* key/value rows */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--r-border); font-size: .9rem; }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--r-muted); display: flex; align-items: center; gap: 10px; min-width: 0; }
.kv .k i { width: 18px; text-align: center; }
.kv .v { margin-left: auto; text-align: right; font-weight: 600; color: var(--r-text); min-width: 0; overflow-wrap: anywhere; }
.kv.compact li { padding: 6px 0; }
.card-body > .kv:first-child li:first-child { padding-top: 0; }

/* stat tiles */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stats { gap: 10px; } }
.stat { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-radius); background: var(--r-surface); border: 1px solid var(--r-border);
    color: var(--r-text); overflow: hidden; box-shadow: var(--r-shadow); transition: border-color .18s, transform .18s; min-width: 0; }
a.stat:hover { border-color: var(--r-border-strong); transform: translateY(-2px); color: #fff; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c, var(--r-red)); opacity: .07; }
.stat .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; color: var(--c, var(--r-red));
    background: color-mix(in srgb, var(--c, var(--r-red)) 16%, transparent); }
.stat .lbl { font: 700 .72rem/1.2 var(--r-display); letter-spacing: .14em; text-transform: uppercase; color: var(--r-muted); }
.stat .val { font: 700 1.55rem/1.1 var(--r-display); letter-spacing: .02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat > div { min-width: 0; }
@media (max-width: 575.98px) { .stat { padding: 12px; gap: 10px; } .stat .ic { width: 38px; height: 38px; font-size: 1rem; } .stat .val { font-size: 1.25rem; } }
.c-red { --c: var(--r-red); } .c-gold { --c: var(--r-gold); } .c-blue { --c: var(--r-blue); } .c-green { --c: var(--r-green); }
.c-purple { --c: var(--r-purple); } .c-cyan { --c: var(--r-cyan); } .c-orange { --c: #ff8a3d; } .c-pink { --c: #ff5fa2; }

/* ------------------------------------------------------------------ tags / badges */
.tag, .badge { display: inline-flex; align-items: center; gap: 5px; padding: .3em .62em; border-radius: 999px; font: 600 .74rem/1.1 var(--r-font); letter-spacing: .01em;
    background: var(--r-surface-3); color: var(--r-text-2); border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.tag i { font-size: .85em; }
.tag-red, .label-danger, .badge-danger { background: rgba(232, 51, 58, .16); color: #ff8a8f; border-color: rgba(232, 51, 58, .25); }
.tag-gold, .label-warning, .badge-warning { background: rgba(242, 193, 78, .14); color: var(--r-gold); border-color: rgba(242, 193, 78, .25); }
.tag-blue, .label-primary, .badge-primary { background: rgba(91, 132, 255, .15); color: #9db5ff; border-color: rgba(91, 132, 255, .28); }
.tag-green, .label-success, .badge-success { background: rgba(47, 191, 113, .15); color: #6fe3a3; border-color: rgba(47, 191, 113, .26); }
.tag-cyan, .label-info, .badge-info { background: rgba(54, 197, 214, .14); color: #7fe3ef; border-color: rgba(54, 197, 214, .25); }
.tag-purple, .label-inverse, .badge-inverse { background: rgba(167, 123, 255, .15); color: #c7adff; border-color: rgba(167, 123, 255, .26); }
.tag-gray, .label-default, .badge-default, .badge-neutral { background: rgba(255, 255, 255, .06); color: var(--r-text-2); border-color: var(--r-border); }
.tag-solid-red { background: var(--r-red); color: #fff; }
.tag-solid-gold { background: var(--r-gold); color: #17140b; }
.roles { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #ff5c63; box-shadow: 0 0 0 3px rgba(255, 92, 99, .15); vertical-align: middle; flex: none; }
.status-dot.on { background: var(--r-green); box-shadow: 0 0 0 3px rgba(47, 191, 113, .18); }

/* ------------------------------------------------------------------ buttons */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px; --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: .9rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .01em; }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .82rem; --bs-btn-border-radius: 8px; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--r-red); --bs-btn-border-color: var(--r-red); --bs-btn-hover-bg: #f14a50; --bs-btn-hover-border-color: #f14a50;
    --bs-btn-active-bg: var(--r-red-600); --bs-btn-active-border-color: var(--r-red-600); --bs-btn-disabled-bg: var(--r-red-700); --bs-btn-disabled-border-color: var(--r-red-700);
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-focus-shadow-rgb: 232, 51, 58;
    box-shadow: 0 8px 20px -10px rgba(232, 51, 58, .8); }
.btn-gold, .btn-warning { --bs-btn-bg: var(--r-gold); --bs-btn-border-color: var(--r-gold); --bs-btn-color: #1b1608; --bs-btn-hover-bg: #ffd46e; --bs-btn-hover-border-color: #ffd46e;
    --bs-btn-hover-color: #1b1608; --bs-btn-active-bg: var(--r-gold-700); --bs-btn-active-border-color: var(--r-gold-700); --bs-btn-active-color: #1b1608;
    --bs-btn-disabled-bg: #8c7434; --bs-btn-disabled-border-color: #8c7434; --bs-btn-disabled-color: #1b1608; --bs-btn-focus-shadow-rgb: 242, 193, 78; }
.btn-blue, .btn-info { --bs-btn-bg: #4069f0; --bs-btn-border-color: #4069f0; --bs-btn-color: #fff; --bs-btn-hover-bg: var(--r-blue); --bs-btn-hover-border-color: var(--r-blue);
    --bs-btn-hover-color: #fff; --bs-btn-active-bg: #2f53cc; --bs-btn-active-border-color: #2f53cc; --bs-btn-active-color: #fff; --bs-btn-focus-shadow-rgb: 91, 132, 255; }
.btn-success { --bs-btn-bg: #1f9d5a; --bs-btn-border-color: #1f9d5a; --bs-btn-hover-bg: var(--r-green); --bs-btn-hover-border-color: var(--r-green); --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #187c47; --bs-btn-active-border-color: #187c47; --bs-btn-disabled-bg: #1f6b43; --bs-btn-disabled-border-color: #1f6b43; }
.btn-danger { --bs-btn-bg: #c8232a; --bs-btn-border-color: #c8232a; --bs-btn-hover-bg: #e03138; --bs-btn-hover-border-color: #e03138; --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #a51a20; --bs-btn-active-border-color: #a51a20; }
.btn-ghost, .btn-secondary, .btn-default { --bs-btn-bg: var(--r-surface-2); --bs-btn-border-color: var(--r-border); --bs-btn-color: var(--r-text); --bs-btn-hover-bg: var(--r-surface-3);
    --bs-btn-hover-border-color: var(--r-border-strong); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--r-surface-3); --bs-btn-active-border-color: var(--r-border-strong);
    --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--r-surface); --bs-btn-disabled-border-color: var(--r-border); --bs-btn-disabled-color: var(--r-muted); }
.btn-outline-primary { --bs-btn-color: #ff8a8f; --bs-btn-border-color: rgba(232, 51, 58, .5); --bs-btn-hover-bg: var(--r-red); --bs-btn-hover-border-color: var(--r-red); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--r-red-600); --bs-btn-active-border-color: var(--r-red-600); }
.btn-outline-gold { --bs-btn-color: var(--r-gold); --bs-btn-border-color: rgba(242, 193, 78, .45); --bs-btn-hover-bg: var(--r-gold); --bs-btn-hover-border-color: var(--r-gold); --bs-btn-hover-color: #1b1608;
    --bs-btn-active-bg: var(--r-gold-700); --bs-btn-active-border-color: var(--r-gold-700); --bs-btn-active-color: #1b1608; }
.btn-outline-light { --bs-btn-color: var(--r-text); --bs-btn-border-color: var(--r-border-strong); --bs-btn-hover-bg: var(--r-surface-3); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--r-border-strong); }
.btn-link { --bs-btn-color: #ffd47a; --bs-btn-hover-color: #fff; padding-left: 0; padding-right: 0; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn:disabled, .btn.disabled { opacity: .55; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: inline; margin: 0; }

/* ------------------------------------------------------------------ forms */
.form-control, .form-select { --bs-border-color: var(--r-border-strong); background-color: var(--r-bg-2); color: var(--r-text); border-radius: 10px; min-height: 42px; }
.form-control:focus, .form-select:focus { background-color: var(--r-bg-2); color: #fff; border-color: var(--r-red); box-shadow: var(--r-ring); }
.form-control::placeholder { color: #6f7889; }
.form-control:disabled, .form-control[readonly] { background-color: var(--r-surface-2); color: var(--r-text-2); }
.form-select option { background: var(--r-surface); color: var(--r-text); }
.form-label { font-weight: 600; font-size: .86rem; color: var(--r-text-2); margin-bottom: 6px; }
.form-text { color: var(--r-muted); }
.input-group-text { background: var(--r-surface-2); border-color: var(--r-border-strong); color: var(--r-muted); }
.form-check-input { background-color: var(--r-bg-2); border-color: var(--r-border-strong); }
.form-check-input:checked { background-color: var(--r-red); border-color: var(--r-red); }
textarea.form-control { min-height: 110px; }
.form-grid { display: grid; gap: 16px; }
.form-narrow { max-width: 460px; margin-inline: auto; }
.form-medium { max-width: 760px; }

/* ------------------------------------------------------------------ alerts / callouts */
.alert { --bs-alert-border-radius: 12px; border: 1px solid var(--r-border); background: var(--r-surface); color: var(--r-text); display: flex; gap: 12px; align-items: flex-start; }
.alert > .ai { font-size: 1.1rem; line-height: 1.4; flex: none; }
.alert > div { min-width: 0; }
.alert-danger { background: rgba(232, 51, 58, .1); border-color: rgba(232, 51, 58, .35); }
.alert-danger > .ai { color: #ff8a8f; }
.alert-warning { background: rgba(242, 193, 78, .08); border-color: rgba(242, 193, 78, .3); }
.alert-warning > .ai { color: var(--r-gold); }
.alert-success { background: rgba(47, 191, 113, .08); border-color: rgba(47, 191, 113, .3); }
.alert-success > .ai { color: #6fe3a3; }
.alert-info { background: rgba(91, 132, 255, .08); border-color: rgba(91, 132, 255, .3); }
.alert-info > .ai { color: #9db5ff; }
.alert ul { padding-left: 1.1rem; }
.callout { border-left: 3px solid var(--r-gold); background: var(--r-surface); border-radius: 0 12px 12px 0; padding: 14px 16px; color: var(--r-text-2); }
.callout b, .callout strong { color: #fff; }

/* ------------------------------------------------------------------ tables */
.table { --bs-table-bg: transparent; --bs-table-color: var(--r-text); --bs-table-border-color: var(--r-border); --bs-table-striped-bg: rgba(255, 255, 255, .02);
    --bs-table-hover-bg: rgba(255, 255, 255, .035); --bs-table-hover-color: #fff; margin: 0; font-size: .9rem; }
.table > thead th { font: 700 .74rem/1.2 var(--r-display); letter-spacing: .12em; text-transform: uppercase; color: var(--r-muted); background: var(--r-surface-2);
    border-bottom: 1px solid var(--r-border); padding: .75rem .85rem; white-space: nowrap; }
.table > tbody td { padding: .7rem .85rem; vertical-align: middle; border-color: var(--r-border); }
.table > tbody tr:last-child td { border-bottom: 0; }
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--r-border); border-radius: var(--r-radius); background: var(--r-surface);
    scrollbar-width: thin; scrollbar-color: var(--r-border-strong) transparent; }
.table-wrap > .table > thead th:first-child { border-top-left-radius: var(--r-radius); }
.table-wrap > .table > thead th:last-child { border-top-right-radius: var(--r-radius); }
.card .table-wrap { border: 0; border-radius: 0; background: transparent; }
.table-wrap.scroll-hint { background: linear-gradient(90deg, var(--r-surface) 30%, transparent) left / 40px 100% no-repeat local, linear-gradient(270deg, var(--r-surface) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .5), transparent) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .5), transparent) right / 14px 100% no-repeat scroll, var(--r-surface); }
.table .cell-player { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.table .cell-player .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.table .cell-thumb img { height: 54px; width: auto; border-radius: 8px; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table .rank-no { font: 700 1.05rem/1 var(--r-display); color: var(--r-muted); width: 44px; }
.table tr.top-1 .rank-no { color: var(--r-gold); }
.table tr.top-2 .rank-no { color: #d7dde6; }
.table tr.top-3 .rank-no { color: #e09a5b; }
/* stacked rows on phones (tables with .table-stack get data-label from ryse-app.js) */
@media (max-width: 767.98px) {
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { padding: 10px 14px; border-bottom: 1px solid var(--r-border); }
    .table-stack tbody tr:last-child { border-bottom: 0; }
    .table-stack > tbody > tr > td { border: 0; padding: 5px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; text-align: right; }
    .table-stack > tbody > tr > td::before { content: attr(data-label); font: 700 .7rem/1.2 var(--r-display); letter-spacing: .12em; text-transform: uppercase; color: var(--r-muted); text-align: left; flex: none; max-width: 45%; }
    .table-stack > tbody > tr > td[data-label=""]::before, .table-stack > tbody > tr > td.td-main::before { display: none; }
    .table-stack > tbody > tr > td.td-main { justify-content: flex-start; text-align: left; padding-bottom: 8px; }
    .table-stack .cell-player { min-width: 0; }
    .table-stack .progress { flex: 0 1 140px; }
}

/* DataTables 1.13 (jQuery build) */
.dataTables_wrapper { color: var(--r-text-2); font-size: .86rem; }
.dataTables_wrapper .dt-top, .dataTables_wrapper .dt-bottom { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.dataTables_wrapper .dt-top { border-bottom: 1px solid var(--r-border); }
.dataTables_wrapper .dt-bottom { border-top: 1px solid var(--r-border); }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info { float: none; margin: 0; padding: 0; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; color: var(--r-muted); font-weight: 500; }
.dataTables_wrapper .dataTables_length select, .dataTables_wrapper .dataTables_filter input { background-color: var(--r-bg-2); color: var(--r-text); border: 1px solid var(--r-border-strong);
    border-radius: 9px; margin: 0; height: 36px; font-size: .86rem; line-height: 1; }
.dataTables_wrapper .dataTables_length select { -webkit-appearance: none; appearance: none; width: auto; min-width: 68px; padding: 0 30px 0 12px; text-align: center; cursor: pointer; font-weight: 600;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b9c0cc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 12px; }
.dataTables_wrapper .dataTables_length select:hover { border-color: var(--r-muted); }
.dataTables_wrapper .dataTables_length select:focus, .dataTables_wrapper .dataTables_filter input:focus { outline: 0; border-color: var(--r-red); box-shadow: var(--r-ring); }
.dataTables_wrapper .dataTables_filter input { padding: 0 12px; min-width: 220px; }
.dataTables_wrapper .dataTables_info { color: var(--r-muted); font-weight: 500; }
.dataTables_wrapper .dataTables_paginate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.dataTables_wrapper .dataTables_paginate > span { display: contents; }
.dataTables_wrapper .dataTables_paginate .paginate_button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; margin: 0;
    border-radius: 8px; border: 1px solid var(--r-border); color: var(--r-text-2) !important; cursor: pointer; background: var(--r-surface-2); font-weight: 600; line-height: 1; text-decoration: none; }
.dataTables_wrapper .dataTables_paginate .paginate_button i { font-size: .75rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { color: #fff !important; border-color: var(--r-border-strong); background: var(--r-surface-3); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--r-red); border-color: var(--r-red); color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { opacity: .4; cursor: default; color: var(--r-text-2) !important; background: var(--r-surface-2); border-color: var(--r-border); }
/* the bundle renders the Bootstrap pager: ul.pagination > li.paginate_button(.active/.disabled) > a */
.dataTables_wrapper .dataTables_paginate .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dataTables_wrapper .dataTables_paginate li.paginate_button { display: block; min-width: 0; height: auto; padding: 0; border: 0; background: none; opacity: 1; }
.dataTables_wrapper .dataTables_paginate li.paginate_button:hover { background: none; }
.dataTables_wrapper .dataTables_paginate li.paginate_button > a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--r-border); color: var(--r-text-2); background: var(--r-surface-2); font-weight: 600; line-height: 1; }
.dataTables_wrapper .dataTables_paginate li.paginate_button > a:hover { color: #fff; border-color: var(--r-border-strong); background: var(--r-surface-3); }
.dataTables_wrapper .dataTables_paginate li.paginate_button.active > a { background: var(--r-red); border-color: var(--r-red); color: #fff; }
.dataTables_wrapper .dataTables_paginate li.paginate_button.disabled > a { opacity: .4; cursor: default; pointer-events: none; }
.dataTables_wrapper .dataTables_paginate li.paginate_button > a:focus-visible { outline: 0; box-shadow: var(--r-ring); }
.dataTables_wrapper .dataTables_paginate .ellipsis { display: inline-flex; align-items: center; height: 34px; padding: 0 4px; color: var(--r-muted); }
@media (max-width: 575.98px) {
    .dataTables_wrapper .dt-top, .dataTables_wrapper .dt-bottom { flex-direction: column; justify-content: center; text-align: center; }
    .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_filter input { width: 100%; min-width: 0; }
    .dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .dataTables_paginate .pagination { justify-content: center; }
}
.dataTables_wrapper .dataTables_scroll, .dataTables_wrapper .dt-table { overflow-x: auto; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { cursor: pointer; position: relative; padding-right: 26px; }
table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after { position: absolute; right: 10px; font-family: "Font Awesome 6 Free"; font-weight: 900; opacity: .45; content: "\f0dc"; }
table.dataTable thead .sorting_asc::after { content: "\f0de"; opacity: 1; color: var(--r-gold); }
table.dataTable thead .sorting_desc::after { content: "\f0dd"; opacity: 1; color: var(--r-gold); }
table.dataTable td.dataTables_empty { text-align: center; color: var(--r-muted); padding: 22px; }

/* Laravel pagination (bootstrap-5 view) */
.pagination { --bs-pagination-bg: var(--r-surface-2); --bs-pagination-border-color: var(--r-border); --bs-pagination-color: var(--r-text-2); --bs-pagination-hover-bg: var(--r-surface-3);
    --bs-pagination-hover-color: #fff; --bs-pagination-hover-border-color: var(--r-border-strong); --bs-pagination-active-bg: var(--r-red); --bs-pagination-active-border-color: var(--r-red);
    --bs-pagination-disabled-bg: var(--r-surface); --bs-pagination-disabled-color: #5c6474; --bs-pagination-disabled-border-color: var(--r-border); --bs-pagination-border-radius: 9px;
    --bs-pagination-focus-box-shadow: var(--r-ring); flex-wrap: wrap; gap: 4px; margin: 16px 0 0; }
.pagination .page-link { border-radius: 9px !important; min-width: 38px; text-align: center; }
.pager-wrap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 16px; }
.pager-wrap .pager-info { color: var(--r-muted); font-size: .85rem; font-weight: 500; }
.pager-wrap .pagination { margin: 0; }
@media (max-width: 575.98px) { .pager-wrap { flex-direction: column; justify-content: center; } }

/* ------------------------------------------------------------------ progress */
.progress { --bs-progress-bg: var(--r-surface-3); --bs-progress-border-radius: 999px; --bs-progress-height: 8px; --bs-progress-bar-bg: var(--r-gold); overflow: hidden; }
.progress.thin { --bs-progress-height: 5px; }
.progress.lg { --bs-progress-height: 14px; font-size: .68rem; }
.progress-bar { background: var(--bar, linear-gradient(90deg, var(--r-gold-700), var(--r-gold))); font-weight: 700; }
.bar-red { --bar: linear-gradient(90deg, var(--r-red-700), var(--r-red)); }
.bar-blue { --bar: linear-gradient(90deg, #3657d8, var(--r-blue)); }
.bar-green { --bar: linear-gradient(90deg, #1b8a4f, var(--r-green)); }
.bar-tri { --bar: var(--r-tricolor); }
.meter { display: grid; gap: 6px; }
.meter .meter-head { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--r-text-2); }
.meter .meter-head b { color: #fff; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ tabs */
.tabs-scroll { position: relative; margin-bottom: 18px; }
.nav-tabs.r-tabs, .r-tabs { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; border: 0; padding: 5px; background: var(--r-surface); border: 1px solid var(--r-border);
    border-radius: 14px; scrollbar-width: none; }
.r-tabs::-webkit-scrollbar { display: none; }
.r-tabs .nav-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; border-radius: 10px; color: var(--r-text-2); font-weight: 600; font-size: .88rem;
    padding: 8px 14px; background: transparent; }
.r-tabs .nav-link:hover { color: #fff; background: var(--r-surface-2); }
.r-tabs .nav-link.active { color: #fff; background: var(--r-surface-3); box-shadow: inset 0 -2px 0 var(--r-red); }
.r-tabs .nav-link img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.r-tabs .nav-link i { color: var(--r-muted); }
.r-tabs .nav-link.active i { color: var(--r-red); }

/* ------------------------------------------------------------------ accordions (native details) */
.acc { display: grid; gap: 10px; }
.acc details { background: var(--r-surface); border: 1px solid var(--r-border); border-radius: 12px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; color: #fff; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: .75rem; color: var(--r-muted); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(180deg); }
.acc details[open] summary { border-bottom: 1px solid var(--r-border); }
.acc .acc-body { padding: 14px 16px 16px; color: var(--r-text-2); }
.acc .acc-body b, .acc .acc-body strong { color: #fff; }
.acc summary .meta { color: var(--r-muted); font-weight: 500; font-size: .84rem; }

/* ------------------------------------------------------------------ feed / comments / logs */
.feed { display: grid; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--r-border); }
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--r-surface-3); flex: none; }
.feed-item .body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.feed-item .meta { color: var(--r-muted); font-size: .8rem; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.feed-item.flagged { background: rgba(232, 51, 58, .07); border-radius: 10px; padding-inline: 10px; }
.feed.scroll { max-height: 440px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--r-border-strong) transparent; }
.log-line { font-size: .88rem; }
.empty { text-align: center; color: var(--r-muted); padding: 28px 12px; }
.empty i { display: block; font-size: 1.6rem; margin-bottom: 8px; color: var(--r-border-strong); }

/* ------------------------------------------------------------------ player bits */
.avatar { border-radius: 50%; object-fit: cover; background: var(--r-surface-3); flex: none; }
.player-name { font-weight: 600; color: #fff; }
a.player-name:hover { color: var(--r-gold); }
.player-card { display: flex; gap: 16px; align-items: flex-start; }
.player-card .skin { width: 92px; height: 120px; object-fit: contain; border-radius: 12px; background: radial-gradient(100% 80% at 50% 10%, var(--r-surface-3), var(--r-bg-2)); flex: none; }
.player-card .info { min-width: 0; flex: 1; }
.player-card .info .name { display: flex; align-items: center; gap: 8px; font: 700 1.2rem/1.2 var(--r-display); letter-spacing: .03em; margin-bottom: 6px; }
.player-card .kv li { padding: 4px 0; font-size: .85rem; }
.car-color { display: inline-block; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .25); vertical-align: middle; }

/* profile hero */
.profile-hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--r-border); background: var(--r-surface); margin-bottom: 18px; box-shadow: var(--r-shadow); }
.profile-hero .cover { height: 150px; background: linear-gradient(120deg, rgba(232, 51, 58, .35), rgba(11, 13, 18, .2) 45%, rgba(91, 132, 255, .3)), var(--cover, none); background-size: cover; background-position: center 40%; }
.profile-hero .cover::after { content: ""; display: block; height: 100%; background: linear-gradient(transparent 40%, var(--r-surface)); }
.profile-hero .inner { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; padding: 0 22px 20px; margin-top: -84px; position: relative; }
.profile-hero .skin { width: 132px; height: 168px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); flex: none; }
.profile-hero .who { flex: 1 1 260px; min-width: 0; }
.profile-hero .who h1 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-transform: none; letter-spacing: .02em; }
.profile-hero .who .meta { color: var(--r-text-2); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.profile-hero .medals { display: flex; gap: 6px; align-items: center; }
.profile-hero .medals img { height: 40px; width: auto; }
.profile-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-hero .quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--r-border); }
.profile-hero .quick > div { padding: 12px 16px; border-right: 1px solid var(--r-border); min-width: 0; }
.profile-hero .quick > div:last-child { border-right: 0; }
.profile-hero .quick .lbl { font: 700 .7rem/1.2 var(--r-display); letter-spacing: .14em; text-transform: uppercase; color: var(--r-muted); }
.profile-hero .quick .val { font: 700 1.25rem/1.2 var(--r-display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767.98px) {
    .profile-hero .inner { margin-top: -96px; padding: 0 16px 16px; }
    .profile-hero .skin { width: 96px; height: 124px; }
    .profile-hero .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-hero .quick > div:nth-child(2) { border-right: 0; }
    .profile-hero .quick > div:nth-child(-n+2) { border-bottom: 1px solid var(--r-border); }
}
.licenses { display: flex; gap: 10px; justify-content: center; }
.licenses i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(232, 51, 58, .12); color: #ff8a8f; }
.licenses i.ok { background: rgba(47, 191, 113, .14); color: #6fe3a3; }
.wanted { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
.wanted i { color: var(--r-surface-3); font-size: 1.05rem; }
.wanted i.on { color: var(--r-gold); text-shadow: 0 0 12px rgba(242, 193, 78, .5); }
.rank-badge { display: flex; gap: 14px; align-items: center; }
.rank-badge img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--r-surface-3); flex: none; }
.chart-box { position: relative; width: 100%; }
.legend { display: grid; gap: 6px; font-size: .85rem; }
.legend span.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* pets / medals / misc legacy animations */
.object0, .object1, .object2, .object3, .object4, .objectq { position: relative; animation: r-bob 1.6s ease-in-out infinite; }
.object1 { animation-duration: 1.9s; } .object2 { animation-duration: 2.3s; } .object3 { animation-duration: 1.3s; } .object4 { animation-duration: 2.7s; }
@keyframes r-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .object0, .object1, .object2, .object3, .object4, .objectq { animation: none; } .tile, .stat { transition: none; } }

/* star rating (home / updates) */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars label.star { font-size: 1.35rem; line-height: 1; color: var(--r-surface-3); cursor: pointer; transition: transform .15s, color .15s; }
.stars label.star::before { content: "\2605"; }
.stars label.star.on { color: var(--r-gold); text-shadow: 0 0 14px rgba(242, 193, 78, .45); }
.stars:not([data-locked]) label.star:hover, .stars:not([data-locked]) label.star:hover ~ label.star { color: #ffe08a; }
.stars label.star:hover { transform: scale(1.15); }

/* graffiti wall overlay text */
.graffiti-text { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 90%; text-align: center; font: 700 1rem/1.2 var(--r-display); color: #48b5ff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }

/* billboards */
.billboard-face { border-radius: 12px; padding: 18px; text-align: center; font: 700 clamp(1.3rem, 1rem + 2vw, 2.6rem)/1.15 var(--r-display); letter-spacing: .03em; overflow-wrap: anywhere;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* hero band (home / landing / premium) */
.hero { position: relative; border-radius: 20px; overflow: hidden; padding: 28px; border: 1px solid var(--r-border);
    background: radial-gradient(80% 120% at 0% 0%, rgba(232, 51, 58, .28), transparent 55%), radial-gradient(70% 120% at 100% 100%, rgba(91, 132, 255, .25), transparent 55%), var(--r-surface); box-shadow: var(--r-shadow); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--r-tricolor); }
.hero h2 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.hero p { color: var(--r-text-2); margin: 0; }
.stripes { display: inline-flex; gap: 6px; }
.stripes i { width: 10px; height: 26px; transform: skewX(-24deg); border-radius: 2px; display: inline-block; }
.stripes i:nth-child(1) { background: var(--r-red); } .stripes i:nth-child(2) { background: var(--r-gold); } .stripes i:nth-child(3) { background: var(--r-blue); }

/* social / community links */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.social { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--r-border); background: var(--r-surface); color: var(--r-text); font-weight: 600; }
.social i { font-size: 1.35rem; width: 28px; text-align: center; }
.social:hover { color: #fff; border-color: var(--r-border-strong); background: var(--r-surface-2); }
.social.discord i { color: #8c9eff; } .social.youtube i { color: #ff4e45; } .social.facebook i { color: #5b8dff; } .social.forum i { color: var(--r-gold); }

/* ------------------------------------------------------------------ dropdowns / modals / tooltips / toasts */
.dropdown-menu { --bs-dropdown-bg: var(--r-surface); --bs-dropdown-border-color: var(--r-border-strong); --bs-dropdown-link-color: var(--r-text); --bs-dropdown-link-hover-bg: var(--r-surface-2);
    --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-active-bg: var(--r-red); --bs-dropdown-border-radius: 14px; --bs-dropdown-divider-bg: var(--r-border);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .75); padding: 6px; }
.dropdown-item { border-radius: 9px; }
.notif-menu { width: min(380px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.notif-menu .head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--r-border); font: 700 .9rem/1 var(--r-display); letter-spacing: .1em; text-transform: uppercase; }
.notif-menu .list { max-height: 380px; overflow-y: auto; }
.notif-menu .n { display: flex; gap: 10px; padding: 10px 14px; color: var(--r-text); border-bottom: 1px solid var(--r-border); }
.notif-menu .n:hover { background: var(--r-surface-2); color: #fff; }
.notif-menu .n.unread { background: rgba(242, 193, 78, .05); }
.notif-menu .n img.av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.notif-menu .n .t { font-size: .86rem; overflow-wrap: anywhere; }
.notif-menu .n .when { font-size: .75rem; color: var(--r-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.notif-menu .n .when img { height: 14px; }
.notif-menu .foot { display: block; text-align: center; padding: 10px; font-weight: 600; }
.modal { --bs-modal-bg: var(--r-surface); --bs-modal-border-color: var(--r-border-strong); --bs-modal-border-radius: 18px; --bs-modal-header-border-color: var(--r-border);
    --bs-modal-footer-border-color: var(--r-border); --bs-modal-box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85); }
.modal-title { font: 700 1.15rem/1.2 var(--r-display); letter-spacing: .06em; text-transform: uppercase; }
.modal-backdrop { --bs-backdrop-opacity: .7; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.tooltip { --bs-tooltip-bg: #05070b; --bs-tooltip-color: var(--r-text); --bs-tooltip-max-width: 320px; --bs-tooltip-border-radius: 10px; --bs-tooltip-font-size: .82rem; }
.tooltip-inner { border: 1px solid var(--r-border-strong); text-align: left; }
.ptip { display: flex; gap: 10px; align-items: center; }
.ptip img { height: 84px; width: auto; }
.ptip b { color: var(--r-gold); }
.toast-host { position: fixed; top: calc(var(--r-topbar-h) + 10px); right: 14px; z-index: 1090; display: grid; gap: 10px; width: min(360px, calc(100vw - 28px)); }
.r-toast { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--r-surface-2); border: 1px solid var(--r-border-strong);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); color: var(--r-text); animation: r-in .25s ease; }
.r-toast .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.r-toast.success .ti { background: rgba(47, 191, 113, .16); color: #6fe3a3; }
.r-toast.danger .ti, .r-toast.error .ti { background: rgba(232, 51, 58, .18); color: #ff8a8f; }
.r-toast.warning .ti { background: rgba(242, 193, 78, .16); color: var(--r-gold); }
.r-toast.info .ti { background: rgba(91, 132, 255, .16); color: #9db5ff; }
.r-toast .tt { font-weight: 700; color: #fff; font-size: .9rem; }
.r-toast .tx { font-size: .86rem; color: var(--r-text-2); overflow-wrap: anywhere; }
.r-toast .x { margin-left: auto; background: none; border: 0; color: var(--r-muted); padding: 0 0 0 6px; align-self: flex-start; }
.r-toast.out { opacity: 0; transform: translateY(-6px); transition: all .25s; }
@keyframes r-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* select2 4.0 dark */
.select2-container--default .select2-selection--single { background: var(--r-bg-2); border: 1px solid var(--r-border-strong); border-radius: 10px; height: 42px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--r-text); line-height: 40px; padding-left: 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.select2-dropdown { background: var(--r-surface); border-color: var(--r-border-strong); border-radius: 10px; overflow: hidden; }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--r-bg-2); color: var(--r-text); border: 1px solid var(--r-border-strong); border-radius: 8px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--r-red); }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--r-surface-3); }
.select2-results__option { color: var(--r-text); }

/* google charts / map containers */
.gchart { width: 100%; min-height: 360px; }
#map-canvas { width: 100%; height: min(75vh, 760px); border-radius: var(--r-radius); overflow: hidden; }
.map-frame { border-radius: var(--r-radius); overflow: hidden; border: 1px solid var(--r-border); background: var(--r-bg-2); }
.map-frame img { display: block; width: 100%; height: auto; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .86rem; color: var(--r-text-2); }
.legend-inline img { height: 16px; width: 16px; }

/* auth pages */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - var(--r-topbar-h) - 200px); padding: 10px 0; }
.auth-card { width: min(440px, 100%); }
.auth-card .card-body { padding: 26px; }
.auth-card .logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card .logo img { height: 46px; width: auto; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; margin-top: 14px; }

/* minimal layout (errors / panel ban) */
.minimal { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center;
    background: radial-gradient(60% 60% at 20% 10%, rgba(232, 51, 58, .18), transparent 60%), radial-gradient(60% 60% at 90% 90%, rgba(91, 132, 255, .16), transparent 60%), var(--r-bg); }
.minimal .box { width: min(520px, 100%); }
.minimal .code { font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--r-display); background: linear-gradient(90deg, var(--r-red), var(--r-gold) 55%, var(--r-blue)); -webkit-background-clip: text;
    background-clip: text; color: transparent; letter-spacing: .02em; }
.minimal .logo img { height: 40px; width: auto; margin-bottom: 26px; }

/* ------------------------------------------------------------------ landing */
.landing .lnav { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 4vw, 40px);
    background: rgba(11, 13, 18, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--r-border); }
.landing .lnav img { height: 36px; width: auto; }
.landing .lnav nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.landing .lnav nav a { color: var(--r-text-2); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.landing .lnav nav a:hover { color: #fff; background: var(--r-surface-2); }
@media (max-width: 767.98px) { .landing .lnav nav a.hide-sm { display: none; } }
.landing section { padding: clamp(40px, 6vw, 80px) clamp(14px, 4vw, 40px); }
.landing .wrap { max-width: 1200px; margin: 0 auto; }
.landing .lhero { position: relative; overflow: hidden; padding-top: clamp(48px, 8vw, 110px);
    background: linear-gradient(180deg, rgba(11, 13, 18, .55), var(--r-bg) 92%), var(--cover, none) center 30% / cover no-repeat; }
.landing .lhero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 10px; }
.landing .lhero .tri b:nth-child(1) { color: var(--r-red); } .landing .lhero .tri b:nth-child(3) { color: var(--r-gold); } .landing .lhero .tri b:nth-child(5) { color: var(--r-blue); }
.landing .lhero .tri b:nth-child(2n) { color: var(--r-white); }
.landing .lhero p.lead { color: var(--r-text-2); font-size: 1.1rem; max-width: 60ch; }
.landing .section-title { text-align: center; margin-bottom: 28px; }
.landing .section-title h2 { text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 6px; }
.landing .section-title p { color: var(--r-text-2); margin: 0; }
.landing .gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.landing .gallery .main-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--r-border); aspect-ratio: 16 / 9; background: var(--r-bg-2); }
.landing .gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.landing .thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.landing .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: none; }
.landing .thumbs button.active { border-color: var(--r-gold); }
.landing .thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) { .landing .thumbs { grid-template-columns: repeat(4, 1fr); } }
.landing .feature { display: flex; gap: 16px; align-items: flex-start; }
.landing .feature img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--r-surface-3); }
.landing .online-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.landing .online-list a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--r-surface); border: 1px solid var(--r-border); font-weight: 600; }
.landing .online-list img { width: 28px; height: 28px; border-radius: 50%; }
.landing .ann-card { cursor: pointer; text-align: left; padding: 0; color: inherit; width: 100%; }
.landing .ann-card .tile-media { aspect-ratio: 16 / 9; }
.landing footer { border-top: 1px solid var(--r-border); padding: 22px clamp(14px, 4vw, 40px); color: var(--r-muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* print */
@media print { .sidebar, .topbar, .bottom-nav, .page-backdrop, .footer { display: none !important; } .main { margin: 0; } }

/* ------------------------------------------------------------------ misc additions */
.text-2 { color: var(--r-text-2); }
.card-title .ic.cyan { background: rgba(54, 197, 214, .15); color: var(--r-cyan); }
.card-title .ic.pink { background: rgba(255, 95, 162, .15); color: #ff5fa2; }
.card-title .ic.red { background: rgba(232, 51, 58, .14); color: var(--r-red); }
.card-title a.text-reset:hover { color: var(--r-gold) !important; }
button.tile { color: inherit; font: inherit; width: 100%; }
.tile.active, .pay-package.active { border-color: var(--r-gold) !important; box-shadow: 0 0 0 2px rgba(242, 193, 78, .35), var(--r-shadow); }
.paypal-box { max-width: 460px; margin: 0 auto; }
.paypal-box .card-field { background: #fff; border-radius: 8px; margin-bottom: 8px; min-height: 44px; }
.q-row .input-group-text { min-width: 46px; justify-content: center; }
.dropdown-item i { width: 18px; text-align: center; }
.feed-item .avatar { width: 40px; height: 40px; }
.medals img { height: 34px; width: auto; }
.landing .gallery { max-width: 960px; margin: 0 auto; }
.stack { align-content: start; }

/* location modal (ryse-app.js mapView): zone crop / full map with pin */
.map-view { position: relative; }
.map-switch { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
    background: rgba(11, 13, 18, .82); border: 1px solid var(--r-border-strong); box-shadow: var(--r-shadow); backdrop-filter: blur(6px); white-space: nowrap; }
.map-switch button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; padding: 7px 14px; background: none; color: var(--r-text-2); font-weight: 600; font-size: .84rem; }
.map-switch button:hover { color: #fff; }
.map-switch button.active { background: var(--r-red); color: #fff; }
.map-switch button:focus-visible { outline: 0; box-shadow: var(--r-ring); }
.map-switch button:disabled { opacity: .4; }
.map-pane { display: flex; justify-content: center; background: var(--r-bg-2); }
.map-pane.d-none { display: none !important; }
.map-pane > img, .map-full { display: block; width: 100%; max-width: min(100%, calc(100vh - 190px)); aspect-ratio: 1 / 1; }
.map-pane > img { height: auto; object-fit: cover; }
.map-full { position: relative; }
.map-full > img { display: block; width: 100%; height: 100%; }
.map-pin { position: absolute; width: 0; height: 0; }
.map-pin img { position: absolute; z-index: 1; width: 36px; height: 36px; max-width: none; max-height: none; left: -18px; top: -18px; padding: 4px; border-radius: 50%; background: #fff; border: 3px solid var(--r-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .6); object-fit: contain; }
.map-pulse { position: absolute; width: 70px; height: 70px; left: -35px; top: -35px; border-radius: 50%; border: 3px solid var(--r-red); background: rgba(232, 51, 58, .18);
    animation: map-pulse 1.6s ease-out infinite; }
@keyframes map-pulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pulse { animation: none; opacity: .9; } }

/* Branding page (admin/branding) */
.brand-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .brand-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.brand-form { display: grid; gap: 12px; }
.brand-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-actions { display: flex; gap: 8px; justify-content: flex-end; }
.brand-ach { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.brand-ach-row { display: flex; align-items: center; gap: 10px; }
.brand-ach-row .tag { min-width: 44px; justify-content: center; }
.brand-ach-thumb img { display: block; width: 64px; height: 45px; border-radius: 6px; object-fit: cover; border: 1px solid var(--r-border); }
.brand-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-search { min-width: 200px; }
.brand-imgs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-img { display: flex; flex-direction: column; border: 1px solid var(--r-border); border-radius: var(--r-radius-sm); background: var(--r-surface-2); overflow: hidden; }
.brand-img-media { display: grid; place-items: center; height: 150px; padding: 10px;
    background: repeating-conic-gradient(#1d2230 0 25%, #161a24 0 50%) 0 0 / 16px 16px; }
.brand-img-media img { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.brand-img-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.brand-img-name { font-size: .8rem; font-weight: 600; color: var(--r-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-img-meta { font-size: .75rem; color: var(--r-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.brand-img-body form { margin: 0; }
.brand-img-body .btn { width: 100%; }
.brand-img[hidden] { display: none; }
@media (max-width: 575.98px) { .brand-ach { grid-template-columns: minmax(0, 1fr); } .brand-search { min-width: 0; width: 100%; } }

/* Profile -> Userbar (user/userbar-tab.blade.php): image at its real size next to the links, slot editor */
.ub-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1100px) { .ub-row { grid-template-columns: minmax(0, 600px) minmax(260px, 1fr); } }
.ub-img { display: block; max-width: 600px; }
.ub-img img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .8); }
.ub-slots { display: grid; gap: 8px; }
.ub-slot { display: grid; gap: 8px; align-items: center; grid-template-columns: 150px minmax(180px, 1.3fr) minmax(120px, 1fr) minmax(140px, 1.3fr); }
.ub-slot-head { font-family: var(--r-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--r-muted); }
.ub-slot-name { font-weight: 600; font-size: .85rem; color: var(--r-text-2); }
.ub-slot input:disabled { opacity: .45; }
@media (max-width: 767.98px) {
    .ub-slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; border: 1px solid var(--r-border); border-radius: var(--r-radius-sm); }
    .ub-slot-head { display: none; }
    .ub-slot-name, .ub-slot select { grid-column: 1 / -1; }
}
.ub-slot-name small { display: block; font-weight: 500; font-size: .7rem; color: var(--r-muted); }
.ub-lock-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-radius-sm);
    border: 1px solid rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .08); }
.ub-lock-note > i { font-size: 1.4rem; color: var(--r-gold); }
.ub-lock-note > div { flex: 1 1 260px; }
.ub-editor { position: relative; }
.ub-editor.is-locked fieldset { opacity: .45; filter: grayscale(.4); }
.ub-lock-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: transparent; cursor: not-allowed; }
.ub-lock-overlay:focus-visible { outline: 0; box-shadow: var(--r-ring); border-radius: var(--r-radius-sm); }

/* image lightbox (ryse-app.js, a[data-lightbox]) */
.lb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 56px 64px;
    background: rgba(5, 6, 9, .9); backdrop-filter: blur(6px); animation: lb-in .15s ease-out; }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-stage { position: relative; display: grid; place-items: center; min-width: 120px; min-height: 120px; }
.lb-img { display: block; max-width: min(1400px, calc(100vw - 128px)); max-height: calc(100vh - 160px); width: auto; height: auto;
    border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); background: var(--r-surface); }
.lb.is-loading .lb-img { opacity: 0; }
.lb-spin { position: absolute; font-size: 1.6rem; color: var(--r-muted); display: none; }
.lb.is-loading .lb-spin { display: block; }
.lb.is-error .lb-stage::after { content: "Imaginea nu a putut fi incarcata."; color: var(--r-muted); }
.lb-cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--r-text-2); font-size: .9rem; text-align: center; }
.lb-count { color: var(--r-muted); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--r-border-strong);
    background: rgba(20, 24, 33, .85); color: #fff; font-size: 1.05rem; cursor: pointer; }
.lb-btn:hover { background: var(--r-red); border-color: var(--r-red); }
.lb-btn:focus-visible { outline: 0; box-shadow: var(--r-ring); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open-body { overflow: hidden; }
a[data-lightbox] { cursor: zoom-in; }
@media (max-width: 575.98px) {
    .lb { padding: 56px 8px 16px; }
    .lb-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 150px); }
    .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lb { animation: none; } }

/* badges over images (quiz progress, certificate number, vehicle status ...): solid so they read on any picture */
.tile-media .corner .tag { padding: .4em .72em; font-size: .78rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .55); text-shadow: none; }
.tile-media .corner .tag-gray { background: #1b2030; color: #e7e9ee; border-color: #3a4256; }
.tile-media .corner .tag-green { background: #1d8a52; color: #fff; border-color: #34c47a; }
.tile-media .corner .tag-blue { background: #3558d4; color: #fff; border-color: #6f8fff; }
.tile-media .corner .tag-red { background: #c8232a; color: #fff; border-color: #ef5a60; }
.tile-media .corner .tag-gold { background: #f2c14e; color: #1d1608; border-color: #ffd97a; }
.tile-media .corner .tag-purple { background: #6b46d6; color: #fff; border-color: #a77bff; }
.tile-media .corner .tag-cyan { background: #138a99; color: #fff; border-color: #36c5d6; }

/* two-factor authentication (user/2fa, user/login/2fa) */
.tfa-wrap { display: grid; gap: 16px; max-width: 1100px; }
.tfa-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tfa-setup { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) { .tfa-setup { grid-template-columns: 240px minmax(0, 1fr); } }
.tfa-qr { width: 240px; max-width: 100%; aspect-ratio: 1; padding: 12px; background: #fff; border-radius: 14px; display: grid; place-items: center; margin: 0 auto; }
.tfa-qr svg, .tfa-qr img { width: 100%; height: 100%; display: block; }
.tfa-steps { padding-left: 1.2rem; margin-bottom: 14px; color: var(--r-text-2); }
.tfa-steps li { margin-bottom: 4px; }
.tfa-big { font-family: var(--r-display); font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-weight: 700; }
.tfa-codes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tfa-codes code { display: block; padding: 10px; text-align: center; font-size: 1rem; letter-spacing: .08em; color: var(--r-gold); background: var(--r-bg-2); border: 1px dashed rgba(242, 193, 78, .4); border-radius: 8px; }
.tfa-intro { display: flex; gap: 16px; align-items: flex-start; }
.tfa-intro > i { font-size: 2.2rem; color: var(--r-gold); margin-top: 4px; }
.tfa-banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-radius-sm); border: 1px solid rgba(242, 193, 78, .35); background: rgba(242, 193, 78, .07); }
.tfa-banner.on { border-color: rgba(47, 191, 113, .4); background: rgba(47, 191, 113, .07); }
.tfa-banner > i { font-size: 1.6rem; color: var(--r-gold); }
.tfa-banner.on > i { color: var(--r-green); }
.tfa-banner > div { flex: 1 1 240px; }
