/* MASTER988: presentation layer only. */
:root {
    --bg: #f3f7fc;
    --ink: #142f53;
    --muted: #59708d;
    --line: #d0def0;
    --panel: #fff;
    --accent: #2563dc;
    --button: #fff;
    --radius: 12px;
    --font: Arial, Helvetica, sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.7 var(--font);
    -webkit-text-size-adjust: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
.button {
    cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
header {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.nav {
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 85px;
    padding: 12px 4%;
}
.brand {
    display: inline-flex;
    flex-shrink: 0;
}
.logo {
    width: 155px;
    height: 48px;
    object-fit: contain;
}
.navlinks {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-left: auto;
    font-size: 12px;
}
.navlinks a {
    padding: 9px 0;
    color: var(--muted);
}
.navlinks a:hover,
.navlinks a[aria-current] {
    color: var(--accent);
}
.menu {
    display: none;
    margin-left: auto;
}
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}
.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--button);
}
button:hover,
.button:hover {
    filter: brightness(0.96);
}
main {
    max-width: 1280px;
    padding: 0 4%;
    margin: auto;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(38px, 4.7vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 700;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}
h2 {
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
h3 {
    font-size: 21px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
p {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}
.hero,
.produk {
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: center;
}
.hero-copy,
.produk-copy {
    min-width: 0;
    grid-column: 1;
    grid-row: 1/3;
}
.hero-copy p,
.produk-copy p {
    font-size: 16px;
    max-width: 500px;
}
.hero-media,
.produk-media {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
}
.banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 0;
    background: var(--panel);
}
.actions {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
    align-self: start;
}
.actions > * {
    min-width: 0;
    padding: 11px 6px;
    font-size: 11px;
}
.section {
    padding: 52px 0;
    border-bottom: 1px solid var(--line);
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}
.section-heading h2 {
    margin-bottom: 0;
}
.section-heading > a {
    font-size: 12px;
    color: var(--accent);
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px #102f5812;
}
.card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}
.card-body {
    padding: 20px;
}
.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.badge {
    font-size: 9px;
    border: 1px solid var(--line);
    border-radius: 25px;
    padding: 3px 7px;
    flex-shrink: 0;
}
.price {
    font-size: 23px;
    color: var(--accent);
    font-weight: 700;
    margin: 15px 0;
}
.card-body > p {
    font-size: 12px;
}
.card button,
.card .button {
    width: 100%;
    padding: 10px 12px;
}
.tools {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}
.tools input {
    flex: 1;
    min-width: 0;
}
.tools select {
    max-width: 45%;
}
input,
select,
textarea {
    padding: 12px 15px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    max-width: 100%;
}
.review-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.steps > div,
.review {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    min-width: 0;
}
.review small {
    color: var(--muted);
}
.stars {
    color: var(--accent);
    letter-spacing: 3px;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.prose {
    max-width: 850px;
}
.prose article {
    margin: 28px 0;
}
.notice {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    font-size: 13px;
}
.footer {
    max-width: 1280px;
    margin: auto;
    padding: 45px 4% 25px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 35px;
}
.footer-top > div {
    min-width: 0;
}
.footer-links {
    display: flex;
    align-content: start;
    gap: 14px 22px;
    flex-wrap: wrap;
    font-size: 12px;
    max-width: 530px;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 10px;
    color: var(--muted);
}
dialog {
    max-width: 500px;
    width: calc(100% - 30px);
    max-height: 90dvh;
    overflow: auto;
    padding: 30px;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
}
dialog::backdrop {
    background: #06172ebd;
    backdrop-filter: blur(5px);
}
dialog .close {
    float: right;
    padding: 5px 12px;
    min-height: 36px;
}
dialog form,
form {
    display: grid;
    gap: 18px;
    min-width: 0;
}
label {
    display: grid;
    gap: 7px;
}
label input,
label textarea {
    width: 100%;
}
textarea {
    min-height: 150px;
    resize: vertical;
}
.empty {
    padding: 25px;
}
.mobile-note {
    font-size: 11px;
}
.catalog-wrap {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
}
.catalog-aside {
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-self: start;
}
.catalog-aside h3 {
    font-size: 24px;
}
.catalog-aside p {
    font-size: 12px;
}
[hidden] {
    display: none !important;
}
@media (max-width: 1000px) {
    .navlinks {
        gap: 13px;
        font-size: 11px;
    }
    .nav {
        gap: 15px;
    }
    .hero,
    .produk {
        gap: 0 30px;
    }
    .catalog-wrap {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 20px;
    }
    .catalog-aside {
        padding: 18px;
    }
    .catalog-wrap .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    html {
        scroll-padding-top: 80px;
    }
    .nav {
        min-height: 72px;
        padding: 10px 5%;
        flex-wrap: wrap;
    }
    .logo {
        width: 145px;
        height: 46px;
    }
    .menu {
        display: inline-flex;
        min-height: 40px;
        padding: 8px 13px;
    }
    .navlinks {
        display: none;
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }
    .navlinks.open {
        display: flex;
    }
    .navlinks a {
        font-size: 13px;
        padding: 11px 10px;
    }
    .hero,
    .produk {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 30px 0;
    }
    .hero-copy p,
    .produk-copy p {
        font-size: 14px;
    }
    .hero-media,
    .produk-media {
        width: 100%;
        max-width: 560px;
        align-self: center;
    }
    .actions {
        width: 100%;
        max-width: 560px;
        margin: -8px auto 0;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .actions > * {
        font-size: 11px;
        padding: 11px 5px;
    }
    .grid,
    .catalog-wrap .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .card-body {
        padding: 14px;
    }
    .card h3 {
        font-size: 18px;
    }
    .card-body p {
        font-size: 11px;
    }
    .card .price {
        font-size: 20px;
    }
    .meta {
        font-size: 8px;
        flex-wrap: wrap;
    }
    .badge {
        font-size: 8px;
    }
    .card button {
        font-size: 10px;
    }
    .section {
        padding: 35px 0;
    }
    .section-heading {
        align-items: start;
        flex-wrap: wrap;
        gap: 15px;
    }
    .section-heading h2 {
        font-size: 29px;
    }
    .tools {
        gap: 8px;
    }
    .tools input,
    .tools select {
        font-size: 14px;
        padding: 11px;
    }
    .review-grid,
    .steps,
    .split {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer {
        padding-top: 35px;
    }
    .footer-links {
        font-size: 11px;
    }
    .catalog-wrap {
        display: block;
    }
    .catalog-aside {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: center;
        margin-bottom: 25px;
    }
    .catalog-aside p {
        margin-bottom: 0;
    }
    .catalog-aside h3 {
        margin-bottom: 10px;
    }
    .catalog-aside .eyebrow {
        margin-bottom: 8px;
    }
    h1 {
        font-size: 40px;
    }
}
@media (max-width: 360px) {
    .grid,
    .catalog-wrap .grid {
        gap: 10px;
    }
    .card-body {
        padding: 11px;
    }
    .card h3 {
        font-size: 16px;
    }
    .price {
        font-size: 18px;
    }
    .badge {
        padding: 2px 5px;
    }
    .navlinks {
        font-size: 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* 02: Gaming Dashboard */
:root {
    --bg: #07111e;
    --panel: #102037;
    --ink: #edf6ff;
    --muted: #99b2cd;
    --line: #284460;
    --accent: #55bdff;
    --button: #09213a;
    --radius: 13px;
    --font: "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}
body {
    background: radial-gradient(ellipse at 90% 5%, #143b60, transparent 50%), var(--bg);
}
header {
    background: #0b192b;
}
.navlinks a[aria-current] {
    background: #153b5f;
    border-radius: 7px;
    padding: 9px 12px;
}
.hero-media,
.produk-media {
    border: 1px solid #3b658a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px #0003;
}
.actions > * {
    background: #0c2945;
    border-color: #365f80;
    color: #d8efff;
}
.actions > .primary {
    background: #55bdff;
    color: #09213a;
}
.card {
    background: linear-gradient(145deg, #152e49, #0e1f33);
}
.card-body {
    padding: 18px;
}
.price {
    color: #64dcff;
}
.badge {
    color: #7ad0ff;
    background: #173c5e;
}
.card button {
    background: #1c4062;
    border-color: #305b80;
}
.tools {
    padding: 12px;
    background: #0b1b2d;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.steps > div,
.review {
    background: #0d1e32;
}
.footer {
    background: #0a1829;
    max-width: none;
    padding-inline: max(4%, calc((100% - 1178px) / 2));
}
@media (max-width: 760px) {
    body {
        padding-bottom: 75px;
    }
    .nav {
        flex-wrap: nowrap;
    }
    .menu {
        display: none;
    }
    .navlinks,
    .navlinks.open {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        background: #0b1d33;
        border-top: 1px solid #355674;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        width: 100%;
        margin: 0;
        z-index: 60;
        scrollbar-width: none;
    }
    .navlinks a {
        flex: 0 0 16.666%;
        min-width: 60px;
        padding: 7px 2px;
        text-align: center;
        font-size: 8px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .navlinks a:before {
        display: block;
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 5px;
        color: #70c9ff;
        content: "◈";
    }
    .navlinks a:nth-child(2):before {
        content: "▦";
    }
    .navlinks a:nth-child(3):before {
        content: "◎";
    }
    .navlinks a:nth-child(4):before {
        content: "≡";
    }
    .navlinks a:nth-child(5):before {
        content: "✓";
    }
    .navlinks a:nth-child(6):before {
        content: "✉";
    }
    .navlinks a[aria-current] {
        padding: 7px 2px;
        background: #183c5d;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-copy .eyebrow {
        font-size: 9px;
    }
    .hero-media {
        border-radius: 13px;
    }
    .card-body {
        padding: 13px;
    }
    .tools {
        padding: 9px;
    }
    .card:hover {
        transform: none;
    }
    .footer {
        padding-bottom: 25px;
    }
    .catalog-aside {
        background: #122b44;
    }
}

/* Purple theme and shared account access */
:root {
    --bg: #1b0b30;
    --panel: #2b1547;
    --ink: #f7f0ff;
    --muted: #c6afde;
    --line: #51336e;
    --accent: #bc8bff;
    --button: #210c39;
}
body {
    background: radial-gradient(ellipse at 90% 5%, #502377, transparent 50%), var(--bg);
}
header {
    background: #24103c;
}
.navlinks a[aria-current] {
    background: #4a256b;
}
.hero-media,
.produk-media {
    border-color: #74479b;
}
.card {
    background: linear-gradient(145deg, #3b2059, #28123f);
}
.price {
    color: #d3a8ff;
}
.badge {
    color: #e2c6ff;
    background: #4a256b;
}
.card button {
    background: #4b286c;
    border-color: #75489a;
}
.tools {
    background: #27113f;
}
.steps > div,
.review {
    background: #2b1547;
}
.footer {
    background: #210e36;
}
.catalog-aside {
    background: #32194e;
}
.global-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    gap: 12px;
}
.global-actions > * {
    background: #462365;
    border-color: #8053a4;
    color: #f5eaff;
    font-size: 14px;
    min-height: 48px;
}
.global-actions > .primary {
    background: #ad73f4;
    border-color: #ad73f4;
    color: #210c39;
}
@media (max-width: 760px) {
    .global-actions {
        margin: 20px 0 0;
        gap: 8px;
    }
    .global-actions > * {
        font-size: 12px;
        padding: 11px 6px;
    }
    .navlinks,
    .navlinks.open {
        background: #24103c;
        border-color: #714398;
    }
    .navlinks a:before {
        color: #c697ff;
    }
    .navlinks a[aria-current] {
        background: #4a256b;
    }
}
.actions.global-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
}

.actions.global-actions > [data-action="app"] {
    grid-column: 1 / -1;
}

.actions.global-actions > button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Light mode: white surfaces with purple accents. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #271c35;
  --muted: #685b75;
  --line: #e6dcf0;
  --accent: #7435b8;
  --button: #ffffff;
}
body { background: #ffffff; }
header { background: #ffffff; }
.navlinks a[aria-current] { background: #f0e7fa; color: #6829a5; }
.hero-media, .produk-media {
  background: #ffffff;
  border-color: #e2d3ef;
  box-shadow: 0 12px 32px #5220800c;
}
.card { background: #ffffff; border-color: #e6dcf0; }
.card:hover { box-shadow: 0 12px 24px #52208012; }
.price { color: #7435b8; }
.badge { color: #6829a5; background: #f4ecfc; border-color: #e3d2f3; }
.actions > *, .global-actions > *, .card button, .card .button {
  background: #7435b8;
  border-color: #7435b8;
  color: #ffffff;
}
.actions > .primary, .global-actions > .primary {
  background: #7435b8;
  border-color: #7435b8;
  color: #ffffff;
}
.tools { background: #faf7fd; border-color: #e6dcf0; }
.steps > div, .review, .notice, .catalog-aside {
  background: #faf7fd;
  border-color: #e6dcf0;
}
input, select, textarea { background: #ffffff; color: #271c35; border-color: #dfd1eb; }
input::placeholder, textarea::placeholder { color: #786b84; opacity: 1; }
.footer { background: #faf7fd; }
dialog { background: #ffffff; color: #271c35; }
dialog::backdrop { background: #21102e66; }
@media (max-width: 760px) {
  .navlinks, .navlinks.open { background: #ffffff; border-color: #e6dcf0; }
  .navlinks a:before { color: #7435b8; }
  .navlinks a[aria-current] { background: #f0e7fa; color: #6829a5; }
  .catalog-aside { background: #faf7fd; }
}
header {
  background: #16002d;
  border-bottom-color: #30203f;
}

header .navlinks a {
  color: #654080;
}

header .menu {
  background: #000000;
  color: #ffffff;
  border-color: #654080;
}