/* =====================================================
   TURTLE STORE - tampilan.css
   Font Barlow, Warna Biru Royal (#094da6), Ukuran Teks Persis Contoh
   ===================================================== */

@view-transition {
    navigation: none;
}

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --ink: #111827;
    --ink-soft: #4b5563;
    --ink-faint: #6b7280;
    --line: #dfe6ef;
    --accent: #094da6;
    --accent-dark: #06397d;
    --accent-soft: #e8f0fe;
    --amber: #d97706;
    --amber-soft: #fef3c7;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --nav-h: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.kunci-halaman {
    width: 100%;
    contain: layout paint;
}

.konten-web {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header-tetap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transform: translateZ(0);
    will-change: transform;
}

.header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.header-search {
    position: relative;
    flex: 1;
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s, background .2s;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

/* =====================================================
   BANNER
   ===================================================== */
.banner {
    margin-top: 14px;
    position: relative;
    contain: layout paint;
}

.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: var(--radius);
    aspect-ratio: 835 / 330;
    background: var(--accent-soft);
    touch-action: pan-x;
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
    transform: translateZ(0);
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: width .25s, background .25s;
}

.banner-dots .dot.aktif {
    width: 18px;
    background: #fff;
}

/* =====================================================
   FEATURES BAR
   ===================================================== */
.features-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 14px;
    padding: 16px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 2px 6px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    border-right: 1px solid #e5e7eb;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    width: auto;
    height: 24px;
    display: grid;
    place-items: center;
    background: transparent;
    font-size: 19px;
}

.text-blue {
    background: transparent;
    color: #2563eb;
}

.text-yellow {
    background: transparent;
    color: #facc15;
}

.text-teal {
    background: transparent;
    color: #6366f1;
}

/* =====================================================
   PILIH GAME
   ===================================================== */
.game-select-section {
    margin-top: 26px;
}

.section-title h2,
.flashsale-title h2,
.akun-lainnya-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.game-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.game-select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
    touch-action: manipulation;
}

.game-select-card:hover {
    border-color: #b4c8e4;
}

.game-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--bg);
}

.game-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-box {
    background: var(--amber-soft);
}

.flash-icon-btn {
    color: var(--amber);
    font-size: 22px;
}

.pelajar-box {
    background: #ece9fb;
}

.pelajar-icon-btn {
    color: #5b4bc4;
    font-size: 22px;
}

.game-select-card.active-game {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================================================
   KATALOG
   ===================================================== */
.flashsale-section {
    margin-top: 26px;
}

.flashsale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flashsale-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 13px;
}

.flashsale-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
}

.katalog-akun {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.katalog-kosong {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-faint);
    padding: 48px 16px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* ---------- KARTU AKUN ---------- */
.akun-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid #dfe6ef;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .03);
    touch-action: manipulation;
    transform: translateZ(0);
    backface-visibility: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
}

.akun-thumb {
    position: relative;
    aspect-ratio: 6 / 7;
    background: #0f172a;
    overflow: hidden;
}

.akun-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}

.badge-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #094da6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
    z-index: 5;
}

.badge-tag.hot,
.badge-tag.sale,
.badge-tag.flash {
    background: #dc2626;
}

.badge-tag.new,
.badge-tag.baru,
.badge-tag.limited,
.badge-tag.sultan {
    background: #094da6;
}

.badge-tag.best,
.badge-tag.terlaris {
    background: #d97706;
}

.akun-body {
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px 11px;
    flex: 1;
    background: #ffffff;
}

.tier-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #094da6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.akun-judul {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.card-deskripsi-awal {
    font-size: 11.5px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.card-deskripsi-awal:empty {
    display: none;
}

.harga-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: auto;
}

.harga-coret {
    font-size: 11.5px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1.2;
}

.harga-coret:empty {
    display: none;
}

.harga-asli {
    font-size: 17px;
    font-weight: 800;
    color: #094da6;
    letter-spacing: -0.2px;
    line-height: 1.2;
}