:root {
    --stbm-tosca: #0f766e;
    --stbm-tosca-dark: #115e59;
    --stbm-teal: #0d9488;
    --stbm-sky: #0284c7;
    --stbm-bg: #f1f5f9;
    --stbm-white: #ffffff;
    --stbm-dark: #0f172a;
    --stbm-body: #334155;
    --stbm-muted: #64748b;
    --stbm-border: #cbd5e1;
    --stbm-line: #e2e8f0;
}

/* 1. Ironclad Anti-Overflow Reset */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--stbm-bg);
    color: var(--stbm-dark);
    line-height: 1.65;
    font-size: 16px;
}
main, section, article, aside, nav, header, footer, div {
    min-width: 0;
}
img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}
p, h1, h2, h3, h4, li, td, th, code, a, span {
    overflow-wrap: anywhere;
    word-break: break-word;
}
code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.88em;
}
a {
    color: var(--stbm-tosca);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.stbm-wadah {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Responsive Header */
.stbm-kepala {
    background: linear-gradient(90deg, #0f766e 0%, #0369a1 100%);
    color: #fff;
    padding: 18px 0;
    border-bottom: 3px solid #f59e0b;
}
.stbm-kepala-baris {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.stbm-identitas {
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.stbm-lambang {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13.5px;
    flex-shrink: 0;
}
.stbm-judul-situs {
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.stbm-sub-situs {
    font-size: 12.5px;
    color: #ccfbf1;
    display: block;
    line-height: 1.3;
}
.stbm-cari {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 330px;
}
.stbm-cari input {
    border: none;
    outline: none;
    padding: 9px 14px;
    border-radius: 8px;
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    font-size: 14px;
    color: var(--stbm-dark);
}
.stbm-cari button {
    background: #f59e0b;
    color: #0f172a;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 3. Menu Kategori (Wrap di Desktop, Swipe Halus di HP) */
.stbm-menu {
    background: #fff;
    border-bottom: 1px solid var(--stbm-line);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.stbm-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.stbm-menu-list li {
    flex-shrink: 0;
}
.stbm-menu-list a {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid var(--stbm-line);
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.stbm-menu-list a:hover {
    background: #ccfbf1;
    color: var(--stbm-tosca-dark);
    border-color: #99f6e4;
}
.stbm-menu-list a.aktif {
    background: var(--stbm-tosca);
    color: #ffffff;
    border-color: var(--stbm-tosca);
}

/* 4. Sambutan Beranda */
.stbm-spanduk {
    background: #ffffff;
    border: 1px solid var(--stbm-line);
    border-left: 5px solid var(--stbm-tosca);
    border-radius: 14px;
    padding: 26px 30px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.stbm-spanduk h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    color: var(--stbm-dark);
    line-height: 1.28;
}
.stbm-spanduk p {
    margin: 0;
    color: var(--stbm-body);
    max-width: 820px;
    font-size: clamp(0.92rem, 1.4vw, 1rem);
}

/* 5. Kartu Aplikasi Simetris (3 Kolom Desktop -> 2 Kolom Tablet -> 1 Kolom HP) */
.stbm-kisi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0 48px;
}
.stbm-kartu {
    background: var(--stbm-white);
    border: 1px solid var(--stbm-line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.stbm-kartu:hover {
    border-color: #5eead4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}
.stbm-kartu-atas {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 12px;
    min-width: 0;
}
.stbm-ikon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--stbm-line);
    background: #f1f5f9;
}
.stbm-kartu-info {
    min-width: 0;
    flex: 1;
}
.stbm-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stbm-kartu h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.stbm-kartu h2 a {
    color: var(--stbm-dark);
}
.stbm-ringkas {
    font-size: 13.8px;
    color: var(--stbm-body);
    margin: 0 0 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.stbm-kartu-bawah {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}
.stbm-kartu-dev {
    color: var(--stbm-muted);
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* 6. Halaman Ulasan Detail (Strict minmax(0, 1fr)!) */
.stbm-jejak {
    font-size: 13px;
    color: var(--stbm-muted);
    margin: 18px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.stbm-tata-ulasan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
    margin-bottom: 50px;
}
.stbm-konten {
    background: #fff;
    border: 1px solid var(--stbm-line);
    border-radius: 16px;
    padding: 28px;
    min-width: 0;
    max-width: 100%;
}
.stbm-kepala-app {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--stbm-line);
    margin-bottom: 20px;
}
.stbm-kepala-app img {
    width: 80px;
    height: 84px;
    height: 80px;
    border-radius: 18px;
    border: 1px solid var(--stbm-line);
    flex-shrink: 0;
    object-fit: cover;
}
.stbm-konten h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.3rem, 2.4vw, 1.68rem);
    line-height: 1.3;
    color: var(--stbm-dark);
}
.stbm-mobile-cta {
    display: none;
    margin: 0 0 20px;
}
.stbm-manfaat {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
}
.stbm-manfaat strong {
    color: var(--stbm-tosca);
    display: block;
    margin-bottom: 8px;
    font-size: 15.5px;
}
.stbm-manfaat ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14.3px;
    color: #134e4a;
}
.stbm-manfaat li {
    margin-bottom: 6px;
}

.stbm-subjudul {
    font-size: clamp(1.12rem, 1.8vw, 1.25rem);
    color: var(--stbm-tosca);
    margin: 26px 0 12px;
    border-bottom: 1px solid var(--stbm-line);
    padding-bottom: 6px;
}

/* Tabel Spesifikasi Responsif & Tidak Pernah Melebar */
.stbm-tabel {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}
.stbm-tabel th, .stbm-tabel td {
    border: 1px solid var(--stbm-line);
    padding: 10px 13px;
    text-align: left;
    vertical-align: top;
}
.stbm-tabel th {
    background: #f8fafc;
    width: 36%;
    color: var(--stbm-body);
    font-weight: 600;
}
.stbm-tabel td {
    width: 64%;
}

/* Galeri Tangkapan Layar Terkunci Rapi */
.stbm-layar {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px;
}
.stbm-layar img {
    height: 220px;
    width: auto;
    max-width: 78vw;
    border-radius: 10px;
    border: 1px solid var(--stbm-line);
    flex-shrink: 0;
    object-fit: cover;
}

.stbm-aside {
    position: sticky;
    top: 68px;
    min-width: 0;
}
.stbm-samping {
    background: #fff;
    border: 1px solid var(--stbm-line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
}
.stbm-tombol-play {
    display: block;
    text-align: center;
    background: var(--stbm-tosca);
    color: #fff !important;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.stbm-tombol-play:hover {
    background: var(--stbm-tosca-dark);
}

.stbm-kaki {
    background: #0f172a;
    color: #cbd5e1;
    padding: 38px 0 28px;
    font-size: 13.5px;
    margin-top: 40px;
}
.stbm-kaki a {
    color: #5eead4;
}
.stbm-kaki-kolom {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & HP)
   ========================================================================= */
@media (max-width: 1024px) {
    .stbm-kisi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stbm-tata-ulasan {
        grid-template-columns: minmax(0, 1fr);
    }
    .stbm-aside {
        position: static;
    }
    .stbm-mobile-cta {
        display: block;
    }
}

@media (max-width: 820px) {
    .stbm-kepala-baris {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .stbm-cari {
        max-width: 100%;
    }
    .stbm-menu-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .stbm-menu-list::-webkit-scrollbar {
        display: none;
    }
    .stbm-kaki-kolom {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .stbm-wadah {
        padding: 0 14px;
    }
    .stbm-spanduk {
        padding: 20px 18px;
        margin: 16px 0;
    }
    .stbm-kisi {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .stbm-konten {
        padding: 18px 15px;
    }
    .stbm-kepala-app {
        gap: 13px;
    }
    .stbm-kepala-app img {
        width: 64px;
        height: 64px;
    }
    .stbm-tabel, .stbm-tabel tbody, .stbm-tabel tr, .stbm-tabel th, .stbm-tabel td {
        display: block;
        width: 100%;
    }
    .stbm-tabel tr {
        margin-bottom: 10px;
        border: 1px solid var(--stbm-line);
        border-radius: 8px;
        overflow: hidden;
    }
    .stbm-tabel th {
        border: none;
        border-bottom: 1px solid var(--stbm-line);
        padding: 7px 12px;
        font-size: 12.5px;
    }
    .stbm-tabel td {
        border: none;
        padding: 8px 12px;
    }
    .stbm-layar img {
        height: 190px;
    }
}
