    /* ========== LIGHT THEME ========== */
    :root {
        /* Nilai fallback ini HARUS sama persis dengan preset "biru_dongker" (DEFAULT_THEME_KEY) di
           utils/themeColors.js — dipakai sebelum utils/renderIndex.js (SSR, halaman publik)
           atau applyThemeVars() (JS, admin panel) sempat meng-override dari database, supaya
           tidak ada kedip warna berbeda. Kalau DEFAULT_THEME_KEY diganti, samakan juga di sini. */
        --primary: #1B2A4E;
        --primary-light: #2B4170;
        --primary-dark: #0F1A33;
        --primary-rgb: 27, 42, 78;
        --primary-dark-rgb: 15, 26, 51;
        --primary-alpha: rgba(var(--primary-rgb), .08);
        --primary-alpha-2: rgba(var(--primary-rgb), .15);
        --accent: #25D366;
        --accent-light: #2EE670;
        --accent-dark: #1DA851;
        --accent-rgb: 37, 211, 102;
        --accent-alpha: rgba(var(--accent-rgb), .1);
        --bg: #F4F6FA;
        --surface: #FFFFFF;
        --text: #1A1A2E;
        --text-secondary: hsl(226, 14%, 41%);
        --text-tertiary: #9CA3B0;
        --border: #E4E8EF;
        --border-light: #F0F2F6;
        --danger: #EF4444;
        --danger-alpha: rgba(239, 68, 68, .1);
        --yt: #FF0000;
        --ig: #E4405F;
        --tt: #010101;
        --fb: #1877F2;
        --star-fill: #f57c0b;
        --star-empty: #D1D5DB;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, .07);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, .1);
        --shadow-xl: 0 24px 60px rgba(0, 0, 0, .14);
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 20px;
        --radius-2xl: 24px;
        --radius-full: 9999px;
        --success: #25D366;
        --sidebar-w: 240px;
        --header-h: 64px;
        --bottomnav-h: 72px;
        --safe-bottom: env(safe-area-inset-bottom, 0px);
        --tf: 150ms cubic-bezier(.4, 0, .2, 1);
        --tb: 250ms cubic-bezier(.4, 0, .2, 1);
        --ts: 400ms cubic-bezier(.4, 0, .2, 1);
        --tsp: 500ms cubic-bezier(.34, 1.56, .64, 1);
        --hdr-trans-text: #FFFFFF;
        --overlay-bg: rgba(0, 0, 0, .45);
        --glass-bg: rgba(255, 255, 255, .9);
        --glass-border: rgba(0, 0, 0, .06);
    }

    /* ========== DARK THEME ========== */
    [data-theme="dark"] {
        --bg: #0D0F14;
        --surface: #161922;
        --text: #E4E8F0;
        --text-secondary: #8B93A8;
        --text-tertiary: #525970;
        --border: #252A38;
        --border-light: #1C2030;
        --primary-alpha: rgba(var(--primary-rgb), .12);
        --primary-alpha-2: rgba(var(--primary-rgb), .22);
        --accent-alpha: rgba(var(--accent-rgb), .12);
        --danger-alpha: rgba(239, 68, 68, .12);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, .3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, .4);
        --shadow-xl: 0 24px 60px rgba(0, 0, 0, .5);
        --hdr-trans-text: #FFFFFF;
        --overlay-bg: rgba(0, 0, 0, .6);
        --glass-bg: rgba(22, 25, 34, .88);
        --glass-border: rgba(255, 255, 255, .06);
    }

    body.rm-tt *:not(img):not(.rm-splash):not(.rm-sk):not(.rm-hero-bg):not(.rm-loc-map):not(.rm-so-img):not(.rm-dm-img):not(.rm-lb-img-wrap) {
        transition: background-color .3s ease, color .25s ease, border-color .3s ease, box-shadow .3s ease;
    }

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

    /* Boxicons normalization (replaces lucide SVG icons with bx font icons) */
    i[class*="bx"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        flex-shrink: 0;
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.6;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }

    body::-webkit-scrollbar {
        display: none;
    }

    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

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

    img {
        display: block;
        max-width: 100%;
    }

    button {
        border: none;
        background: none;
        cursor: pointer;
        font-family: inherit;
    }

    input,
    textarea,
    select {
        font-family: inherit;
    }

    .rm-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .rm-reveal.rm-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .rm-stitle {
        font-size: 1.375rem;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -.02em;
        margin-bottom: 4px;
    }

    .rm-ssub {
        font-size: .875rem;
        color: var(--text-secondary);
        margin-bottom: 20px;
    }

    /* Splash */
    .rm-splash {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: opacity .6s, visibility .6s;
    }

    .rm-splash.rm-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .rm-splash-logo {
        width: 76px;
        height: 76px;
        background: #fff;
        border-radius: var(--radius-xl);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        animation: sp 1.2s ease-in-out infinite;
        box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    }

    .rm-splash-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
    }

    .rm-splash-text {
        color: #fff;
        font-size: 1.3rem;
        font-weight: 800;
        margin-top: 16px;
        letter-spacing: -.03em;
    }

    .rm-splash-loader {
        width: 40px;
        height: 3px;
        background: rgba(255, 255, 255, .2);
        border-radius: var(--radius-full);
        margin-top: 24px;
        overflow: hidden;
    }

    .rm-splash-loader::after {
        content: '';
        display: block;
        width: 50%;
        height: 100%;
        background: #fff;
        border-radius: var(--radius-full);
        animation: sld 1s ease-in-out infinite;
    }

    @keyframes sp {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.06);
        }
    }

    @keyframes sld {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(300%);
        }
    }

    /* Skeleton */
    .rm-sk {
        background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
        background-size: 200% 100%;
        animation: skA 1.5s ease-in-out infinite;
        border-radius: var(--radius-sm);
    }

    @keyframes skA {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .rm-sk-card {
        background: var(--surface);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .rm-sk-card .rm-sk-img {
        width: 100%;
        height: 180px;
    }

    .rm-sk-card .rm-sk-body {
        padding: 16px;
    }

    .rm-sk-line {
        height: 14px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .rm-sk-line.s {
        width: 60%;
    }

    .rm-sk-line.m {
        width: 80%;
    }

    .rm-sk-line.t {
        height: 20px;
        width: 40%;
        margin-bottom: 16px;
    }

    /* Header */
    .rm-hdr {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-h);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        transition: background var(--tb), box-shadow var(--tb);
    }

    .rm-hdr.solid {
        background: var(--glass-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 1px 0 var(--glass-border);
    }

    .rm-hdr.trans {
        background: transparent;
    }

    .rm-hdr-l {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .rm-hdr-logo {
        width: 36px;
        height: 36px;
        background: #fff;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }

    .rm-hdr-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 5px;
    }

    .rm-hdr-brand {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--hdr-trans-text);
        letter-spacing: -.03em;
    }

    .rm-hdr.solid .rm-hdr-brand {
        color: var(--text);
    }

    .rm-hdr-r {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .rm-ib {
        width: 40px;
        height: 40px;
        font-size: 40px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: background var(--tf);
    }

    .rm-ib i {
        width: 20px;
        height: 20px;
        font-size: 20px;
        color: var(--hdr-trans-text);
    }

    .rm-hdr.solid .rm-ib i {
        color: var(--text);
    }

    .rm-ib:active {
        background: rgba(128, 128, 128, .15);
    }

    .rm-theme-btn i {
        transition: transform .4s var(--tsp);
    }

    .rm-theme-btn:active i {
        transform: rotate(180deg) scale(.8);
    }

    /* Menu */
    .rm-ov {
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: var(--overlay-bg);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tb), visibility var(--tb);
        pointer-events: none;
    }

    .rm-ov.on {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .rm-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 80vw;
        z-index: 2001;
        background: var(--surface);
        transform: translateX(-100%);
        transition: transform var(--ts);
        display: flex;
        flex-direction: column;
        border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
        overflow: hidden;
    }

    .rm-menu.on {
        transform: translateX(0);
    }

    .rm-menu-hd {
        padding: 28px 20px 24px;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
        color: #fff;
    }

    .rm-menu-hd-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .rm-menu-hd-logo {
        width: 46px;
        height: 46px;
        background: #fff;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .rm-menu-hd-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

    .rm-menu-hd-txt h3 {
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .rm-menu-hd-txt p {
        font-size: .75rem;
        opacity: .7;
        margin-top: 2px;
    }

    .rm-menu-cls {
        position: absolute;
        top: 20px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 36px;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, .15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rm-menu-cls i {
        color: #fff;
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .rm-menu-bd {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
    }

    .rm-menu-bd::-webkit-scrollbar {
        display: none;
    }

    .rm-mi {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        font-size: .9375rem;
        font-weight: 500;
        color: var(--text);
        transition: background var(--tf), color var(--tf);
        cursor: pointer;
    }

    .rm-mi i {
        width: 20px;
        height: 20px;
        font-size: 20px;
        color: var(--text-secondary);
        flex-shrink: 0;
        transition: color var(--tf);
    }

    .rm-mi:active,
    .rm-mi.on {
        background: var(--primary-alpha);
        color: var(--primary);
    }

    .rm-mi.on i {
        color: var(--primary);
    }

    .rm-mdiv {
        height: 1px;
        background: var(--border-light);
        margin: 8px 16px;
    }

    .rm-menu-social {
        display: flex;
        gap: 8px;
        padding: 16px 20px;
        border-top: 1px solid var(--border-light);
    }

    .rm-menu-sb {
        width: 36px;
        height: 36px;
        font-size: 36px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform var(--tf);
    }

    .rm-menu-sb:active {
        transform: scale(.9);
    }

    .rm-menu-sb i {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    .rm-menu-sb.yt {
        background: rgba(255, 0, 0, .08);
        color: var(--yt);
    }

    .rm-menu-sb.ig {
        background: rgba(228, 64, 95, .08);
        color: var(--ig);
    }

    .rm-menu-sb.tt {
        background: rgba(0, 0, 0, .06);
        color: var(--tt);
    }

    .rm-menu-sb.fb {
        background: rgba(24, 119, 242, .08);
        color: var(--fb);
    }

    .rm-menu-ft {
        padding: 12px 20px;
        border-top: 1px solid var(--border-light);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .rm-menu-ft p {
        font-size: .6875rem;
        color: var(--text-tertiary);
    }

    .rm-menu-theme {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        border-radius: var(--radius-md);
        font-size: .8125rem;
        font-weight: 600;
        color: var(--text-secondary);
        background: var(--bg);
        border: 1px solid var(--border);
        cursor: pointer;
        transition: all var(--tf);
    }

    .rm-menu-theme:active {
        transform: scale(.97);
    }

    .rm-menu-theme i {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    /* Hero */
    .rm-hero {
        position: relative;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .rm-hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .rm-hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

    .rm-hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(var(--primary-dark-rgb), .1) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .72) 100%);
    }

    .rm-hero-ct {
        position: relative;
        z-index: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 20px 48px;
        padding-top: calc(var(--header-h) + 24px);
    }

    .rm-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, .12);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: var(--radius-full);
        padding: 6px 14px;
        font-size: .7rem;
        font-weight: 700;
        color: #fff;
        width: fit-content;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .rm-hero-badge i {
        width: 14px;
        height: 14px;
        font-size: 14px;
        color: var(--accent-light);
    }

    .rm-hero-t {
        font-size: clamp(1.8rem, 5vw + 1rem, 3.5rem);
        font-weight: 900;
        color: #fff;
        line-height: 1.1;
        letter-spacing: -.04em;
        margin-bottom: 14px;
    }

    .rm-hero-d {
        font-size: .9375rem;
        color: rgba(255, 255, 255, .78);
        line-height: 1.65;
        margin-bottom: 32px;
        max-width: 400px;
    }

    .rm-hero-acts {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    /* Buttons */
    .rm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: .9375rem;
        font-weight: 600;
        border-radius: var(--radius-lg);
        padding: 14px 28px;
        position: relative;
        overflow: hidden;
        transition: transform var(--tf), box-shadow var(--tf);
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
    }

    .rm-btn:active {
        transform: scale(.97);
    }

    .rm-btn i {
        width: 18px;
        height: 18px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .rm-btn-p {
        background: var(--surface);
        color: var(--primary);
        box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    }

    .rm-btn-a {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 4px 20px rgba(var(--accent-rgb), .35);
    }

    .rm-btn-o {
        background: transparent;
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, .3);
    }

    .rm-btn-o:active {
        background: rgba(255, 255, 255, .1);
    }

    .rm-btn-op {
        background: transparent;
        color: var(--primary);
        border: 1.5px solid var(--primary-alpha-2);
    }

    .rm-btn-op:active {
        background: var(--primary-alpha);
    }

    .rm-btn-sm {
        font-size: .8125rem;
        padding: 10px 18px;
        border-radius: var(--radius-md);
    }

    .rm-btn-sm i {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }

    .rm-ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, .35);
        transform: scale(0);
        animation: rp .6s ease-out forwards;
        pointer-events: none;
    }

    .rm-btn-a .rm-ripple,
    .rm-btn-p .rm-ripple {
        background: rgba(0, 0, 0, .1);
    }

    @keyframes rp {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    .rm-sec {
        padding: 32px 20px 48px;
    }

    /* Motor Section */
    .rm-ms-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .rm-fc {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .rm-fc::-webkit-scrollbar {
        display: none;
    }

    .rm-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--radius-full);
        font-size: .8125rem;
        font-weight: 600;
        white-space: nowrap;
        background: var(--surface);
        color: var(--text-secondary);
        border: 1.5px solid var(--border);
        transition: all var(--tf);
        cursor: pointer;
        flex-shrink: 0;
    }

    .rm-chip:active {
        transform: scale(.96);
    }

    .rm-chip.on {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 2px 10px rgba(var(--primary-rgb), .28);
    }

    .rm-mg {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Motor Card */
    .rm-mc {
        flex: 1 1 260px;
        /* flex-grow (bagian "1" pertama) di-nolkan lagi khusus desktop lewat media query di
           bawah — di layar sempit tetap 1 (kartu wajar melebar penuh), tapi di desktop kartu
           kalau isinya cuma dikit tidak melar aneh memenuhi baris. */
        background: var(--surface);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform var(--tb), box-shadow var(--tb);
        cursor: pointer;
        position: relative;
    }

    .rm-mc:active {
        transform: scale(.98);
        box-shadow: var(--shadow-md);
    }

    @media(hover:hover) {
        .rm-mc:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
    }

    .rm-mc-img {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
        background: var(--border-light);
    }

    .rm-mc-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

    @media(hover:hover) {
        .rm-mc:hover .rm-mc-img img {
            transform: scale(1.06);
        }
    }

    .rm-mc-st {
        position: absolute;
        top: 12px;
        left: 12px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        border-radius: var(--radius-full);
        font-size: .6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        backdrop-filter: blur(8px);
    }

    .rm-mc-st.av {
        background: rgba(var(--accent-rgb), .15);
        color: #FFEB3B;
        border: 1px solid rgba(var(--accent-rgb), .2);
    }

    .rm-mc-st.un {
        background: rgba(239, 68, 68, .15);
        color: var(--danger);
        border: 1px solid rgba(239, 68, 68, .2);
    }

    .rm-mc-st .dot {
        width: 6px;
        height: 6px;
        font-size: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .rm-mc-fav {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 34px;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, .88);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform var(--tf);
    }

    .rm-mc-fav:active {
        transform: scale(.88);
    }

    .rm-mc-fav i {
        width: 16px;
        height: 16px;
        font-size: 16px;
        color: var(--text-tertiary);
        transition: color var(--tf), fill var(--tf);
    }

    .rm-mc-fav.fv i {
        color: var(--danger);
        fill: var(--danger);
    }

    /* ===== PERBAIKAN: Body & Foot Kartu Motor ===== */
    .rm-mc-body {
        padding: 16px 20px 12px 20px;
        /* Jarak kiri/kanan diperlebar agar tidak mepet */
    }

    .rm-mc-name {
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -.01em;
        margin-bottom: 4px;
    }

    .rm-mc-specs {
        display: flex;
        gap: 12px;
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

    .rm-mc-sp {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: .75rem;
        color: var(--text-secondary);
    }

    .rm-mc-sp i {
        width: 13px;
        height: 13px;
        font-size: 13px;
        color: var(--text-tertiary);
    }

    .rm-mc-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-top: 1px solid var(--border-light);
        gap: 12px;
    }

    .rm-mc-price {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        min-width: 0;
    }

    .rm-mc-price-v {
        font-size: 1.125rem;
        font-weight: 800;
        color: var(--primary);
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    .rm-mc-price-l {
        font-size: .6875rem;
        color: var(--text-tertiary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .rm-mc-price-v span {
        font-size: .75rem;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .rm-bp {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 18px;
        background: var(--accent);
        color: #fff;
        font-size: .8125rem;
        font-weight: 600;
        border-radius: var(--radius-md);
        position: relative;
        overflow: hidden;
        transition: transform var(--tf), box-shadow var(--tf);
        box-shadow: var(--shadow-sm);
        flex-shrink: 0;
        /* Tombol tidak mengecil */
        white-space: nowrap;
    }

    .rm-bp:active {
        transform: scale(.96);
    }

    .rm-bp i {
        width: 15px;
        height: 15px;
        font-size: 15px;
    }

    .rm-bp:disabled {
        background: var(--border);
        color: var(--text-tertiary);
        box-shadow: none;
        cursor: not-allowed;
    }

    /* Services */
    .rm-sv-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .rm-sv-card {
        flex: 1 1 160px;
        background: var(--surface);
        border-radius: var(--radius-lg);
        padding: 22px;
        box-shadow: var(--shadow-sm);
        transition: transform var(--tf), box-shadow var(--tf);
    }

    .rm-sv-card:active {
        transform: scale(.97);
    }

    @media(hover:hover) {
        .rm-sv-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
    }

    .rm-sv-ic {
        width: 48px;
        height: 48px;
        font-size: 48px;
        border-radius: var(--radius-md);
        background: var(--primary-alpha);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 14px;
    }

    .rm-sv-ic i {
        width: 24px;
        height: 24px;
        font-size: 24px;
        color: var(--primary);
    }

    .rm-sv-t {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
        letter-spacing: -.01em;
    }

    .rm-sv-d {
        font-size: .8125rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    /* Mode HP: kartu Layanan slide masuk bergantian dari kiri & kanan saat muncul di layar,
       menggantikan animasi fade-up bawaan (.rm-stag) yang jalan saat halaman dimuat. */
    @media(max-width:639px) {
        #svGrid.rm-stag>* {
            animation: none;
            opacity: 0;
            transform: translateX(-40px);
            transition: opacity .5s ease, transform .5s ease;
        }

        #svGrid.rm-stag>*:nth-child(even) {
            transform: translateX(40px);
        }

        #svGrid.rm-visible.rm-stag>* {
            opacity: 1;
            transform: translateX(0);
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(1) {
            transition-delay: .05s;
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(2) {
            transition-delay: .1s;
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(3) {
            transition-delay: .15s;
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(4) {
            transition-delay: .2s;
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(5) {
            transition-delay: .25s;
        }

        #svGrid.rm-visible.rm-stag>*:nth-child(6) {
            transition-delay: .3s;
        }
    }

    @media(min-width:640px) {
        .rm-sv-grid {
            gap: 14px;
        }

        .rm-sv-card {
            padding: 24px;
        }
    }

    @media(min-width:1024px) {
        .rm-sv-grid {
            gap: 16px;
        }

        .rm-sv-card {
            padding: 28px;
        }
    }

    /* Blog */
    .rm-bl-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .rm-bl-card {
        flex: 1 1 280px;
        background: var(--surface);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: transform var(--tb), box-shadow var(--tb);
    }

    .rm-bl-card:active {
        transform: scale(.98);
    }

    @media(hover:hover) {
        .rm-bl-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
    }

    .rm-bl-img {
        width: 100%;
        height: 200px;
        overflow: hidden;
        background: var(--border-light);
    }

    .rm-bl-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    @media(hover:hover) {
        .rm-bl-card:hover .rm-bl-img img {
            transform: scale(1.05);
        }
    }

    .rm-bl-body {
        padding: 16px;
    }

    .rm-bl-cat {
        display: inline-block;
        padding: 3px 10px;
        border-radius: var(--radius-full);
        font-size: .6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        background: var(--primary-alpha);
        color: var(--primary);
        margin-bottom: 10px;
    }

    .rm-bl-t {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -.01em;
        margin-bottom: 8px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        /* Standar CSS modern (mencegah warning) */
        overflow: hidden;
    }

    .rm-bl-ex {
        font-size: .8125rem;
        color: var(--text-secondary);
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        /* Standar CSS modern */
        overflow: hidden;
        margin-bottom: 14px;
    }

    .rm-bl-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: .6875rem;
        color: var(--text-tertiary);
        font-weight: 500;
    }

    @media(min-width:1280px) {
        .rm-bl-grid {
            gap: 20px;
        }
    }

    /* About */
    .rm-ab-card {
        background: var(--surface);
        border-radius: var(--radius-xl);
        padding: 24px;
        box-shadow: var(--shadow-sm);
    }

    .rm-ab-txt {
        font-size: .9375rem;
        color: var(--text-secondary);
        line-height: 1.75;
        margin-bottom: 24px;
    }

    .rm-feats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rm-feat {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
        background: var(--bg);
        border-radius: var(--radius-md);
        transition: transform var(--tf);
    }

    .rm-feat:active {
        transform: scale(.97);
    }

    .rm-feat-ic {
        width: 38px;
        height: 38px;
        font-size: 38px;
        border-radius: var(--radius-sm);
        background: var(--primary-alpha);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .rm-feat-ic i {
        width: 18px;
        height: 18px;
        font-size: 18px;
        color: var(--primary);
    }

    .rm-feat-tx h4 {
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 2px;
    }

    .rm-feat-tx p {
        font-size: .6875rem;
        color: var(--text-tertiary);
        line-height: 1.4;
    }

    @media(min-width:640px) {
        .rm-feats {
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }
    }

    @media(min-width:1024px) {
        .rm-ab-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            padding: 44px 48px;
            align-items: start;
        }

        .rm-ab-txt {
            font-size: 1.0625rem;
            line-height: 1.85;
            margin-bottom: 0;
        }

        .rm-feats {
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .rm-feat {
            padding: 20px;
            border-radius: var(--radius-lg);
        }

        .rm-feat-ic {
            width: 46px;
            height: 46px;
            font-size: 46px;
            border-radius: var(--radius-md);
        }

        .rm-feat-ic i {
            width: 22px;
            height: 22px;
            font-size: 22px;
        }

        .rm-feat-tx h4 {
            font-size: .9375rem;
        }

        .rm-feat-tx p {
            font-size: .75rem;
        }
    }

    @media(min-width:1280px) {
        .rm-ab-card {
            gap: 64px;
            padding: 52px 56px;
        }

        .rm-ab-txt {
            font-size: 1.125rem;
        }
    }

    /* Gallery */
    .rm-gal-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rm-gal-item {
        flex: 1 1 130px;
        position: relative;
        border-radius: var(--radius-md);
        overflow: hidden;
        cursor: pointer;
        aspect-ratio: 1/1;
        background: var(--border-light);
        transition: transform var(--tf);
    }

    .rm-gal-item:active {
        transform: scale(.96);
    }

    .rm-gal-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

    @media(hover:hover) {
        .rm-gal-item:hover img {
            transform: scale(1.08);
        }
    }

    .rm-gal-cap {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        color: #fff;
        font-size: .7rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(6px);
        transition: all var(--tb);
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, .5));
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .rm-gal-item:hover .rm-gal-cap {
        opacity: 1;
        transform: translateY(0);
    }

    /* Di desktop, jumlah kolom grid Produk/Layanan/Blog/Gallery mengikuti jumlah datanya (class
       "rm-few" ditambahkan lewat JS kalau datanya <=2 — lihat toggleGridDensity() di script) —
       supaya data sedikit tidak melar/terlalu kecil memenuhi 4 kolom penuh: <=2 data pakai 2
       kolom, >=3 data pakai 4 kolom. Di layar sempit (mobile) tetap melebar penuh seperti biasa. */
    @media (min-width: 1024px) {

        .rm-mg:not(.rm-few) .rm-mc,
        .rm-bl-grid:not(.rm-few) .rm-bl-card {
            flex: 0 1 calc(25% - 15px);
        }

        .rm-mg.rm-few .rm-mc,
        .rm-bl-grid.rm-few .rm-bl-card {
            flex: 0 1 calc(50% - 10px);
        }

        .rm-sv-grid:not(.rm-few) .rm-sv-card {
            flex: 0 1 calc(25% - 12px);
        }

        .rm-sv-grid.rm-few .rm-sv-card {
            flex: 0 1 calc(50% - 8px);
        }

        .rm-gal-grid:not(.rm-few) .rm-gal-item {
            flex: 0 1 calc(25% - 9px);
        }

        .rm-gal-grid.rm-few .rm-gal-item {
            flex: 0 1 calc(50% - 6px);
        }
    }

    @media(min-width:640px) {
        .rm-gal-grid {
            gap: 10px;
        }
    }

    /* Lightbox */
    .rm-lb {
        position: fixed;
        inset: 0;
        z-index: 6000;
        background: rgba(0, 0, 0, .92);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tb), visibility var(--tb);
        pointer-events: none;
    }

    .rm-lb.on {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .rm-lb-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 44px;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, .12);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .rm-lb-close i {
        color: #fff;
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .rm-lb-counter {
        position: absolute;
        top: 20px;
        left: 20px;
        color: rgba(255, 255, 255, .6);
        font-size: .8125rem;
        font-weight: 600;
        z-index: 2;
    }

    .rm-lb-img-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 60px 16px 80px;
        overflow: hidden;
    }

    .rm-lb-img-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: var(--radius-md);
        user-select: none;
        -webkit-user-drag: none;
    }

    .rm-lb-caption {
        position: absolute;
        bottom: 80px;
        left: 20px;
        right: 20px;
        text-align: center;
        color: rgba(255, 255, 255, .8);
        font-size: .875rem;
        font-weight: 500;
        z-index: 2;
    }

    .rm-lb-nav {
        position: absolute;
        bottom: 20px;
        display: flex;
        gap: 12px;
        z-index: 2;
    }

    .rm-lb-nav button {
        width: 48px;
        height: 48px;
        font-size: 48px;
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, .12);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rm-lb-nav button i {
        color: #fff;
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .rm-lb-dots {
        position: absolute;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 2;
    }

    .rm-lb-dot {
        width: 6px;
        height: 6px;
        font-size: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .3);
        transition: all var(--tf);
        cursor: pointer;
    }

    .rm-lb-dot.on {
        background: #fff;
        width: 20px;
        border-radius: var(--radius-full);
    }

    /* Desktop Modal */
    .rm-dm-ov {
        position: fixed;
        inset: 0;
        z-index: 3500;
        background: var(--overlay-bg);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tb), visibility var(--tb);
        pointer-events: none;
    }

    .rm-dm-ov.on {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .rm-dm {
        background: var(--surface);
        border-radius: var(--radius-2xl);
        width: 100%;
        max-width: 760px;
        max-height: 88vh;
        overflow: hidden;
        transform: scale(.9) translateY(12px);
        transition: transform var(--tsp);
        position: relative;
        box-shadow: var(--shadow-xl);
    }

    .rm-dm-ov.on .rm-dm {
        transform: scale(1) translateY(0);
    }

    .rm-dm-close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 3;
        width: 38px;
        height: 38px;
        font-size: 38px;
        border-radius: var(--radius-full);
        background: rgba(0, 0, 0, .45);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rm-dm-close i {
        color: #fff;
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .rm-dm-body {
        display: flex;
        overflow: hidden;
        max-height: 88vh;
    }

    .rm-dm-img {
        width: 42%;
        flex-shrink: 0;
        overflow: hidden;
        background: var(--border-light);
    }

    .rm-dm-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        user-select: none;
        -webkit-user-drag: none;
        -moz-user-drag: none;
        pointer-events: none;
        touch-action: none;
    }

    .rm-dm-info {
        flex: 1;
        padding: 32px 28px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .rm-dm-info::-webkit-scrollbar {
        display: none;
    }

    .rm-dm-name {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -.03em;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .rm-dm-cat {
        display: inline-flex;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        font-size: .6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        background: var(--primary-alpha);
        color: var(--primary);
        margin-bottom: 16px;
        width: fit-content;
    }

    .rm-dm-price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 20px;
    }

    .rm-dm-price {
        font-size: 1.75rem;
        font-weight: 900;
        color: var(--primary);
    }

    .rm-dm-per {
        font-size: .8125rem;
        color: var(--text-tertiary);
        font-weight: 500;
    }

    .rm-dm-specs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .rm-dm-spec {
        background: var(--bg);
        border-radius: var(--radius-sm);
        padding: 12px 8px;
        text-align: center;
    }

    .rm-dm-spec i {
        width: 18px;
        height: 18px;
        font-size: 18px;
        color: var(--primary);
        margin-bottom: 4px;
    }

    .rm-dm-spec .v {
        display: block;
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
    }

    .rm-dm-spec .l {
        display: block;
        font-size: .6rem;
        color: var(--text-tertiary);
        margin-top: 1px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .rm-dm-desc-title {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
    }

    .rm-dm-desc {
        font-size: .8125rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: auto;
        padding-bottom: 20px;
    }

    /* Blog detail overrides */
    .rm-dm-date {
        font-size: .75rem;
        color: var(--text-tertiary);
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .rm-dm-date i {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }

    .rm-dm-content {
        font-size: .875rem;
        color: var(--text-secondary);
        line-height: 1.8;
        margin-bottom: auto;
        padding-bottom: 20px;
    }

    .rm-dm-content p {
        margin-bottom: 12px;
    }

    .rm-dm-content strong {
        color: var(--text);
    }

    .rm-dm-author {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
        margin-bottom: auto;
    }

    .rm-dm-author img {
        width: 36px;
        height: 36px;
        font-size: 36px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--border-light);
    }

    .rm-dm-author-nm {
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
    }

    .rm-dm-foot {
        display: flex;
        gap: 10px;
        padding-top: 20px;
        border-top: 1px solid var(--border-light);
        flex-shrink: 0;
    }

    @media(max-width:1023px) {

        .rm-dm-ov {
            display: none !important;
        }
    }

    /* Bottom Sheet */
    .rm-so-ov {
        position: fixed;
        inset: 0;
        z-index: 3000;
        background: var(--overlay-bg);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tb), visibility var(--tb);
        pointer-events: none;
    }

    .rm-so-ov.on {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .rm-so {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3001;
        background: var(--surface);
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        max-height: 90vh;
        max-height: 90dvh;
        transform: translateY(100%);
        transition: transform var(--ts);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .rm-so.on {
        transform: translateY(0);
    }

    .rm-so-hd {
        display: flex;
        justify-content: center;
        padding: 12px 0 4px;
        flex-shrink: 0;
    }

    .rm-so-bar {
        width: 36px;
        height: 4px;
        border-radius: var(--radius-full);
        background: var(--border);
    }

    .rm-so-bd {
        flex: 1;
        overflow-y: auto;
        padding: 0 20px 32px;
    }

    .rm-so-bd::-webkit-scrollbar {
        display: none;
    }

    .rm-so-img {
        width: 100%;
        height: 240px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 20px;
        background: var(--border-light);
    }

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

    .rm-so-name {
        font-size: 1.375rem;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -.02em;
        margin-bottom: 8px;
    }

    .rm-so-pr {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 20px;
    }

    .rm-so-pv {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--primary);
    }

    .rm-so-pp {
        font-size: .8125rem;
        color: var(--text-tertiary);
        font-weight: 500;
    }

    .rm-so-sg {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .rm-so-si {
        background: var(--bg);
        border-radius: var(--radius-md);
        padding: 14px 10px;
        text-align: center;
    }

    .rm-so-si i {
        width: 20px;
        height: 20px;
        font-size: 20px;
        color: var(--primary);
        margin-bottom: 6px;
    }

    .rm-so-si .v {
        display: block;
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
    }

    .rm-so-si .l {
        display: block;
        font-size: .625rem;
        color: var(--text-tertiary);
        margin-top: 2px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .rm-so-dt {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
    }

    .rm-so-dd {
        font-size: .875rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .rm-so-ft {
        flex-shrink: 0;
        padding: 16px 20px;
        padding-bottom: calc(16px + var(--safe-bottom));
        border-top: 1px solid var(--border-light);
        display: flex;
        gap: 10px;
        background: var(--surface);
    }

    /* Testimoni */
    .rm-ts-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .rm-ts-scroll::-webkit-scrollbar {
        display: none;
    }

    .rm-ts-card {
        min-width: 300px;
        max-width: 300px;
        background: var(--surface);
        border-radius: var(--radius-xl);
        padding: 22px;
        box-shadow: var(--shadow-sm);
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .rm-ts-stars {
        display: flex;
        gap: 3px;
        margin-bottom: 14px;
    }

    .rm-ts-stars i {
        width: 18px;
        height: 18px;
        font-size: 18px;
        color: var(--star-fill);
        fill: var(--star-fill);
        filter: drop-shadow(0 1px 2px rgba(245, 158, 11, .3));
    }

    .rm-ts-stars i.empty {
        color: var(--star-empty);
        fill: var(--star-empty);
        filter: none;
    }

    .rm-ts-q {
        font-size: .875rem;
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 18px;
        font-style: italic;
    }

    .rm-ts-au {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rm-ts-av {
        width: 40px;
        height: 40px;
        font-size: 40px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--border-light);
    }

    .rm-ts-nm {
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
    }

    .rm-ts-rl {
        font-size: .6875rem;
        color: var(--text-tertiary);
    }

    /* Location */
    .rm-loc-card {
        background: var(--surface);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .rm-loc-map {
        width: 100%;
        height: 220px;
        background: var(--border-light);
        position: relative;
        overflow: hidden;
    }

    .rm-loc-map img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(.85);
    }

    .rm-loc-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: pb 2s ease-in-out infinite;
    }

    .rm-loc-pin-ic {
        width: 44px;
        height: 44px;
        font-size: 44px;
        background: var(--primary);
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(var(--primary-rgb), .45);
    }

    .rm-loc-pin-ic i {
        transform: rotate(45deg);
        color: #fff;
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .rm-loc-pin-sh {
        width: 20px;
        height: 6px;
        background: rgba(0, 0, 0, .15);
        border-radius: 50%;
        margin-top: 4px;
    }

    @keyframes pb {

        0%,
        100% {
            transform: translate(-50%, -100%);
        }

        50% {
            transform: translate(-50%, -112%);
        }
    }

    .rm-loc-info {
        padding: 22px;
    }

    .rm-loc-det {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }

    .rm-loc-det:last-child {
        margin-bottom: 0;
    }

    .rm-loc-det-ic {
        width: 38px;
        height: 38px;
        font-size: 38px;
        border-radius: var(--radius-sm);
        background: var(--primary-alpha);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .rm-loc-det-ic i {
        width: 16px;
        height: 16px;
        font-size: 16px;
        color: var(--primary);
    }

    .rm-loc-det-tx h4 {
        font-size: .8125rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 2px;
    }

    .rm-loc-det-tx p {
        font-size: .8125rem;
        color: var(--text-secondary);
        line-height: 1.55;
    }

    /* Social */
    .rm-social-card {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
        border-radius: var(--radius-xl);
        padding: 32px 24px;
        color: #fff;
        text-align: center;
        box-shadow: 0 8px 32px rgba(var(--primary-rgb), .3);
    }

    .rm-social-t {
        font-size: 1.125rem;
        font-weight: 800;
        margin-bottom: 6px;
        letter-spacing: -.02em;
    }

    .rm-social-d {
        font-size: .8125rem;
        opacity: .7;
        margin-bottom: 24px;
    }

    .rm-social-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .rm-social-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 18px 8px;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, .1);
        backdrop-filter: blur(8px);
        transition: transform var(--tf);
    }

    .rm-social-link:active {
        transform: scale(.94);
    }

    .rm-social-link i {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }

    .rm-social-link span {
        font-size: .6875rem;
        font-weight: 600;
        opacity: .9;
    }

    @media(hover:hover) {
        .rm-social-link.yt:hover {
            background: rgba(255, 0, 0, .2);
        }

        .rm-social-link.ig:hover {
            background: rgba(228, 64, 95, .2);
        }

        .rm-social-link.tt:hover {
            background: rgba(255, 255, 255, .18);
        }

        .rm-social-link.fb:hover {
            background: rgba(24, 119, 242, .2);
        }
    }

    /* Toast */
    .rm-tc {
        position: fixed;
        top: calc(var(--header-h) + 12px);
        left: 16px;
        right: 16px;
        z-index: 5000;
        display: flex;
        flex-direction: column;
        gap: 8px;
        pointer-events: none;
    }

    .rm-toast {
        background: var(--surface);
        border-radius: var(--radius-lg);
        padding: 14px 16px;
        box-shadow: var(--shadow-lg);
        display: flex;
        align-items: center;
        gap: 12px;
        transform: translateY(-20px);
        opacity: 0;
        animation: tI .4s var(--tsp) forwards;
        pointer-events: auto;
        border-left: 4px solid var(--accent);
    }

    .rm-toast.err {
        border-left-color: var(--danger);
    }

    .rm-toast.tOut {
        animation: tO .3s ease forwards;
    }

    .rm-toast-ic {
        width: 32px;
        height: 32px;
        font-size: 32px;
        border-radius: var(--radius-sm);
        background: var(--accent-alpha);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .rm-toast.err .rm-toast-ic {
        background: var(--danger-alpha);
    }

    .rm-toast-ic i {
        width: 16px;
        height: 16px;
        font-size: 16px;
        color: var(--accent);
    }

    .rm-toast.err .rm-toast-ic i {
        color: var(--danger);
    }

    .rm-toast-tx {
        flex: 1;
        font-size: .8125rem;
        font-weight: 500;
        color: var(--text);
        line-height: 1.4;
    }

    @keyframes tI {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes tO {
        to {
            transform: translateY(-20px);
            opacity: 0;
        }
    }

    /* FAB */
    .rm-fab {
        position: fixed;
        bottom: calc(var(--bottomnav-h) + 16px + var(--safe-bottom));
        right: 16px;
        z-index: 900;
        width: 56px;
        height: 56px;
        font-size: 56px;
        border-radius: var(--radius-full);
        background: var(--accent);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        overflow: hidden;
    }

    .rm-fab:active {
        transform: scale(.9);
    }

    .rm-fab i {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }

    .rm-fab-p {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid var(--accent);
        animation: fp 2s ease-out infinite;
    }

    @keyframes fp {
        0% {
            transform: scale(1);
            opacity: .5;
        }

        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    /* Bottom Nav */
    .rm-bn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottomnav-h);
        padding-bottom: var(--safe-bottom);
        z-index: 950;
        background: var(--glass-bg);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--glass-border);
        display: flex;
        align-items: stretch;
    }

    .rm-bn-i {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-tertiary);
        transition: color var(--tf);
        position: relative;
        cursor: pointer;
        user-select: none;
    }

    .rm-bn-i i {
        width: 22px;
        height: 22px;
        font-size: 22px;
        transition: transform var(--tf);
    }

    .rm-bn-i span {
        font-size: .625rem;
        font-weight: 600;
        letter-spacing: .02em;
    }

    .rm-bn-i.on {
        color: var(--primary);
    }

    .rm-bn-i.on i {
        transform: scale(1.12);
    }

    .rm-bn-i.on::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--primary);
        border-radius: 0 0 var(--radius-full) var(--radius-full);
    }

    /* Scroll To Top */
    .rm-stt {
        position: fixed;
        bottom: calc(var(--bottomnav-h) + 20px + var(--safe-bottom));
        left: 16px;
        z-index: 960;
        width: 42px;
        height: 42px;
        font-size: 42px;
        border-radius: var(--radius-full);
        background: var(--surface);
        box-shadow: var(--shadow-md);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translateY(16px);
        transition: opacity var(--tb), visibility var(--tb), transform var(--tb);
        pointer-events: none;
        border: 1px solid var(--border-light);
    }

    .rm-stt.vis {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .rm-stt:active {
        background: var(--border-light);
        transform: scale(.88);
    }

    .rm-stt i {
        width: 20px;
        height: 20px;
        font-size: 20px;
        color: var(--text-secondary);
    }

    .rm-fsp {
        height: calc(var(--bottomnav-h) + var(--safe-bottom) + 20px);
    }

    .rm-empty {
        width: 100%;
        text-align: center;
        padding: 60px 20px;
        grid-column: 1/-1;
    }

    .rm-empty i {
        width: 48px;
        height: 48px;
        font-size: 48px;
        color: var(--text-tertiary);
        margin: 0 auto 12px;
        display: block;
    }

    .rm-empty p {
        color: var(--text-secondary);
        font-size: .9375rem;
        font-weight: 500;
    }

    .rm-stag>* {
        opacity: 0;
        animation: fiu .5s ease forwards;
    }

    .rm-stag>*:nth-child(1) {
        animation-delay: .04s;
    }

    .rm-stag>*:nth-child(2) {
        animation-delay: .08s;
    }

    .rm-stag>*:nth-child(3) {
        animation-delay: .12s;
    }

    .rm-stag>*:nth-child(4) {
        animation-delay: .16s;
    }

    .rm-stag>*:nth-child(5) {
        animation-delay: .2s;
    }

    .rm-stag>*:nth-child(6) {
        animation-delay: .24s;
    }

    .rm-stag>*:nth-child(7) {
        animation-delay: .28s;
    }

    .rm-stag>*:nth-child(8) {
        animation-delay: .32s;
    }

    .rm-stag>*:nth-child(9) {
        animation-delay: .36s;
    }

    .rm-stag>*:nth-child(10) {
        animation-delay: .4s;
    }

    .rm-stag>*:nth-child(11) {
        animation-delay: .44s;
    }

    .rm-stag>*:nth-child(12) {
        animation-delay: .48s;
    }

    .rm-stag>*:nth-child(13) {
        animation-delay: .52s;
    }

    .rm-stag>*:nth-child(14) {
        animation-delay: .56s;
    }

    .rm-stag>*:nth-child(15) {
        animation-delay: .6s;
    }

    .rm-stag>*:nth-child(16) {
        animation-delay: .64s;
    }

    .rm-stag>*:nth-child(17) {
        animation-delay: .68s;
    }

    .rm-stag>*:nth-child(18) {
        animation-delay: .72s;
    }

    @keyframes fiu {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive */
    @media(min-width:640px) {
        .rm-hero-ct {
            padding-left: 40px;
            padding-right: 40px;
        }

        .rm-sec {
            padding: 48px 32px;
        }

        .rm-ts-card {
            min-width: 340px;
            max-width: 340px;
        }

        .rm-loc-map {
            height: 280px;
        }
    }

    @media(min-width:1024px) {
        .rm-mg {
            gap: 20px;
        }

        .rm-hero-ct {
            padding-left: 80px;
            padding-right: 80px;
        }

        .rm-sec {
            padding: 64px 60px;
        }

        .rm-gal-grid {
            gap: 12px;
        }

        .rm-loc-map {
            height: 320px;
        }

        .rm-social-card {
            max-width: 640px;
            margin: 0 auto;
        }

        .rm-bn {
            display: none;
        }

        .rm-fab {
            bottom: 24px;
        }

        .rm-stt {
            bottom: 24px;
        }

        .rm-fsp {
            height: 40px;
        }

        .rm-dm {
            max-width: 820px;
        }
    }

    @media(min-width:1280px) {
        .rm-hero-ct {
            padding-left: 120px;
            padding-right: 120px;
        }
    }

    /* Mobile: pusatkan teks hero secara vertikal, jangan mepet ke bawah layar */
    @media(max-width:639px) {
        .rm-hero-ct {
            justify-content: center;
            padding-bottom: 24px;
        }
    }

    /* Extra-small phones */
    @media(max-width:359px) {
        .rm-hero-ct {
            padding-left: 16px;
            padding-right: 16px;
        }

        .rm-sec {
            padding: 24px 16px 40px;
        }

        .rm-mc-specs {
            gap: 8px;
        }
    }

    /* Prevent content from over-stretching on ultra-wide screens */
    @media(min-width:1600px) {

        main,
        .rm-hdr-l,
        .rm-hdr-r {
            max-width: 1600px;
        }

        main {
            margin: 0 auto;
        }
    }

/* ========================================================================
   ADMIN PANEL (public/beoar5qql6) — semua selector di bawah ini diawali
   ".ad-" supaya tidak pernah bentrok dengan ".rm-" di halaman publik.
   Warna, radius, shadow, dsb. dipakai bareng dari :root/[data-theme] di atas.
   ======================================================================== */

/* Form control di admin sengaja dipatok 14px (beda dari body publik yang pakai
   ukuran per-komponen) — discope ke body.ad-page supaya tidak mengubah halaman publik. */
body.ad-page button,
body.ad-page input,
body.ad-page select,
body.ad-page textarea {
    font-family: inherit;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

/* ===== LOGIN ===== */
.ad-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    padding: 20px;
}

.ad-login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .85);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.ad-login-back:hover {
    color: #fff;
    text-decoration: underline;
}

.ad-login-back i {
    font-size: 16px;
}

.ad-login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
}

.ad-login-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ad-login-sub {
    color: var(--text-secondary);
    margin: 0 0 24px;
    font-size: 14px;
}

.ad-login-error {
    color: var(--danger);
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 8px;
}

/* ===== FIELDS ===== */
.ad-field {
    margin-bottom: 16px;
}

.ad-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.ad-field input[type="text"],
.ad-field input[type="password"],
.ad-field input[type="number"],
.ad-field select,
.ad-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

.ad-field input:focus,
.ad-field select:focus,
.ad-field textarea:focus {
    border-color: var(--primary);
}

.ad-field textarea {
    resize: vertical;
    min-height: 80px;
}

.ad-image-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-icon-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-icon-select i {
    width: 38px;
    height: 38px;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-icon-select select {
    flex: 1;
}

.ad-image-preview {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--text-tertiary);
    font-size: 22px;
}

.ad-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-image-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-image-status {
    font-size: 12px;
    color: var(--text-secondary);
    min-height: 15px;
}

.ad-pass-wrap {
    position: relative;
}

.ad-pass-wrap input {
    padding-right: 42px !important;
}

.ad-pass-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.ad-pass-toggle:hover {
    background: var(--primary-alpha);
    color: var(--primary);
}

.ad-field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ad-field-checkbox input {
    width: 18px;
    height: 18px;
}

/* ===== BUTTONS ===== */
.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}

.ad-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .25);
}

.ad-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .35);
    transform: translateY(-1px);
}

.ad-btn-primary:active {
    transform: translateY(0) scale(.97);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .25);
}

.ad-btn-ghost {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.ad-btn-ghost:hover {
    background: var(--bg);
    border-color: var(--text-tertiary);
}

.ad-btn-ghost:active {
    transform: scale(.97);
}

.ad-btn-block {
    width: 100%;
    justify-content: center;
}

.ad-btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.ad-btn-icon {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.ad-btn-icon:hover {
    background: var(--primary-alpha);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), .2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ad-btn-icon:active {
    transform: translateY(0) scale(.92);
}

.ad-btn-icon.success:hover {
    background: rgba(var(--accent-rgb), .12);
    color: var(--success);
    border-color: rgba(var(--accent-rgb), .3);
}

.ad-btn-icon.danger:hover {
    background: var(--danger-alpha);
    color: var(--danger);
    border-color: rgba(239, 68, 68, .3);
}

/* ===== APP LAYOUT ===== */
.ad-app {
    display: flex;
    min-height: 100vh;
}

.ad-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.ad-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
}

.ad-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    overflow-y: auto;
}

.ad-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    text-align: left;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.ad-nav-item i {
    font-size: 18px;
}

.ad-nav-item:hover {
    background: var(--bg);
}

.ad-nav-item.on {
    background: var(--primary-alpha);
    color: var(--primary);
    font-weight: 700;
}

.ad-logout {
    margin: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: var(--danger-alpha);
    color: var(--danger);
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.ad-main {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

.ad-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.ad-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ad-topbar h1 {
    font-size: 22px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

.ad-sidebar-backdrop {
    display: none;
}

/* ===== FORM CARD (e.g. Ganti Password) ===== */
.ad-form-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    max-width: 420px;
}

.ad-field-hint {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

/* ===== DASHBOARD STATS ===== */
.ad-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ad-stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.ad-stat-card .num {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
}

.ad-stat-card .lbl {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

/* ===== VISITOR CHART ===== */
.ad-chart-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-top: 20px;
}

.ad-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.ad-chart-head h2 {
    margin: 0;
    font-size: 16px;
}

.ad-chart-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

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

.ad-select-sm {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

.ad-chart-wrap {
    position: relative;
    width: 100%;
}

.ad-chart-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}

.ad-chart-gridline {
    stroke: var(--border);
    stroke-width: 1;
}

.ad-chart-axis-text {
    fill: var(--text-tertiary);
    font-size: 9px;
}

.ad-chart-area {
    fill: var(--primary);
    fill-opacity: .1;
}

.ad-chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.ad-chart-crosshair {
    stroke: var(--text-tertiary);
    stroke-width: 1;
    opacity: 0;
}

.ad-chart-dot {
    fill: var(--primary);
    stroke: var(--surface);
    stroke-width: 2;
}

.ad-chart-hover-dot {
    fill: var(--primary);
    stroke: var(--surface);
    stroke-width: 2;
    opacity: 0;
}

.ad-chart-hit {
    fill: transparent;
    cursor: crosshair;
}

.ad-chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--text);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transform: translate(-50%, -110%);
    opacity: 0;
    transition: opacity .1s;
    z-index: 5;
}

.ad-chart-tooltip.show {
    opacity: 1;
}

.ad-chart-tooltip .v {
    font-weight: 700;
}

.ad-chart-tooltip .d {
    color: var(--text-tertiary);
    margin-left: 6px;
}

.ad-chart-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.ad-chart-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ad-chart-table-wrap .ad-table {
    min-width: 0;
}

/* ===== TABLE ===== */
.ad-search-wrap {
    position: relative;
    max-width: 320px;
    margin-bottom: 14px;
}

.ad-search-wrap i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.ad-search-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

.ad-search-wrap input:focus {
    border-color: var(--primary);
}

.ad-table-wrap {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.ad-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.ad-table th, .ad-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.ad-table td {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-table th {
    color: var(--text-secondary);
    font-weight: 700;
    background: var(--bg);
    white-space: nowrap;
}

.ad-table tr:last-child td {
    border-bottom: none;
}

.ad-table .col-actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.ad-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ad-badge.on {
    background: rgba(var(--accent-rgb), .12);
    color: #1DA851;
}

.ad-badge.off {
    background: var(--danger-alpha);
    color: var(--danger);
}

.ad-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-tertiary);
}

/* ===== MODAL ===== */
.ad-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.ad-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ad-modal form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ad-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.ad-modal-head h2 {
    margin: 0;
    font-size: 18px;
}

.ad-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
}

.ad-modal-body {
    padding: 22px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.ad-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
}

/* ===== TOAST (admin) ===== */
.ad-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    /* Sengaja warna tetap (bukan var(--text)) — toast ini dirancang sebagai "snackbar" gelap
       dengan teks putih di KEDUA mode terang & gelap. var(--text) ikut berbalik jadi terang di
       mode gelap sementara warna teksnya tetap putih, jadi nyaris tidak kelihatan. */
    background: #1A1A2E;
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .25s, opacity .25s;
    z-index: 200;
}

.ad-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ad-toast.error {
    background: var(--danger);
}

@media (max-width: 860px) {
    .ad-menu-toggle {
        display: inline-flex;
    }

    .ad-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: 260px;
        max-width: 82vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 150;
        box-shadow: var(--shadow-lg);
    }

    .ad-sidebar.open {
        transform: translateX(0);
    }

    .ad-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 20, 30, .45);
        z-index: 140;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    .ad-sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    .ad-main {
        padding: 16px;
    }

    .ad-topbar h1 {
        font-size: 18px;
    }

    .ad-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 420px) {
    .ad-btn span, #addBtn {
        font-size: 13px;
    }

    .ad-login-card {
        padding: 28px 22px;
    }
}

/* ===== MOBILE: forms, tap targets, modal, table-as-cards ===== */
@media (max-width: 600px) {
    /* Prevent iOS Safari from auto-zooming when a field is focused */
    .ad-field input[type="text"],
    .ad-field input[type="password"],
    .ad-field input[type="number"],
    .ad-field select,
    .ad-field textarea {
        font-size: 16px;
    }

    .ad-btn-icon {
        padding: 9px;
        min-width: 38px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ad-table .col-actions {
        gap: 8px;
    }

    .ad-modal-overlay {
        padding: 12px;
    }

    .ad-modal-head {
        padding: 14px 16px;
    }

    .ad-modal-body {
        padding: 16px;
    }

    /* Turn the resource table into a stacked card list (chart's mini table is unaffected) */
    .ad-table-wrap {
        overflow-x: visible;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .ad-table-wrap .ad-table {
        min-width: 0;
        width: 100%;
        display: block;
    }

    .ad-table-wrap .ad-table thead {
        display: none;
    }

    .ad-table-wrap .ad-table tbody {
        display: block;
    }

    .ad-table-wrap .ad-table tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        margin-bottom: 12px;
    }

    .ad-table-wrap .ad-table tr:last-child {
        margin-bottom: 0;
    }

    .ad-table-wrap .ad-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }

    .ad-table-wrap .ad-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--text-tertiary);
    }

    .ad-table-wrap .ad-table td.col-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .ad-table-wrap .ad-table td.col-actions::before {
        content: none;
    }
}

/* ========== KERANJANG BELANJA ========== */
.rm-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tf);
}

.rm-cart-btn i {
    font-size: 22px;
    color: var(--hdr-trans-text);
}

.rm-hdr.solid .rm-cart-btn i {
    color: var(--text);
}

.rm-cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.rm-cart-badge[hidden] {
    display: none;
}

.rm-bn-badge {
    top: 6px;
    right: calc(50% - 22px);
}

.rm-cart-ov {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tb), visibility var(--tb);
}

.rm-cart-ov.on {
    opacity: 1;
    visibility: visible;
}

/* Mobile: bottom sheet. Desktop (>=1024px): drawer di sisi kanan. */
.rm-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3501;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform var(--ts);
}

.rm-cart.on {
    transform: none;
}

@media (min-width: 1024px) {
    .rm-cart {
        left: auto;
        top: 0;
        width: 420px;
        max-height: none;
        border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
        transform: translateX(100%);
    }
}

.rm-cart-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.rm-cart-hd h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

.rm-cart-hd h2 i {
    color: var(--primary);
}

.rm-cart-x {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-secondary);
}

.rm-cart-x:hover {
    background: var(--border-light);
}

.rm-cart-bd {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    min-height: 120px;
}

.rm-cart-it {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.rm-cart-it:last-child {
    border-bottom: 0;
}

.rm-cart-it img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--border-light);
}

.rm-cart-info {
    flex: 1;
    min-width: 0;
}

.rm-cart-name {
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.3;
}

.rm-cart-price {
    font-size: .75rem;
    color: var(--text-secondary);
    margin: 2px 0 8px;
}

.rm-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .875rem;
}

.rm-cart-row strong {
    color: var(--primary);
}

.rm-cart-rm {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 18px;
}

.rm-cart-rm:hover {
    background: var(--danger-alpha);
}

.rm-qty {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
}

.rm-qty button {
    width: 32px;
    height: 34px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.rm-qty button:hover {
    background: var(--primary-alpha);
}

.rm-qty input {
    width: 48px;
    height: 34px;
    border: 0;
    text-align: center;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    -moz-appearance: textfield;
}

.rm-qty input::-webkit-outer-spin-button,
.rm-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rm-cart-ft {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px;
    padding-bottom: calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.rm-cart-ft[hidden] {
    display: none;
}

.rm-cart-sum {
    display: flex;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--text-secondary);
}

.rm-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.rm-cart-total strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.rm-cart-inp {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    resize: vertical;
}

.rm-cart-inp:focus {
    outline: none;
    border-color: var(--primary);
}

.rm-cart-ft .rm-btn {
    width: 100%;
    margin-top: 4px;
}

.rm-cart-ft .rm-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.rm-cart-hint {
    font-size: .6875rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* ===== DETAIL PESANAN (admin) ===== */
.ad-modal.ad-modal-lg {
    max-width: 760px;
}

.ad-detail-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 12px;
    margin: 0 0 18px;
    font-size: 14px;
}

.ad-detail-grid dt {
    color: var(--text-secondary);
}

.ad-detail-grid dd {
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

.ad-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.ad-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ad-detail-table th,
.ad-detail-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.ad-detail-table td:nth-child(2) {
    white-space: normal;
}

.ad-detail-table th {
    background: var(--primary-alpha);
    color: var(--text);
    font-weight: 600;
}

.ad-detail-table .num {
    text-align: right;
}

.ad-detail-table tfoot td {
    font-weight: 700;
    border-bottom: 0;
}

.ad-detail-table tfoot tr.sub td {
    font-weight: 500;
    color: var(--text-secondary);
    padding-top: 6px;
    padding-bottom: 6px;
}

.ad-detail-table tfoot tr:not(.sub) td {
    border-top: 1px solid var(--border);
}

.ad-detail-table tfoot td:last-child {
    text-align: right;
    color: var(--primary);
}

.ad-detail-sub {
    margin: 22px 0 10px;
    font-size: 15px;
}

@media (max-width: 639px) {
    .ad-detail-grid {
        grid-template-columns: 96px 1fr;
        font-size: 13px;
    }
}

/* Dua field berdampingan di form Setting (mis. Logo & Gambar Latar Utama) */
.ad-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

@media (max-width: 639px) {
    .ad-field-row {
        grid-template-columns: 1fr;
    }
}
