
:root {
    --bg: #f5f1e8;
    --card: #fffdf7;
    --soft: #f0ebe0;
    --text: #1f2733;
    --muted: #59606e;
    --brand: #e4572e;
    --brand-2: #1f7a8c;
    --accent: #8d5a2b;
    --line: #e5dbcb;
    --surface-2: #f7f1e6;
    --shadow: 0 18px 50px rgba(24, 33, 46, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --maxw: 1180px;
    --leading: 1.65;
    --fs-base: 16px;
    --fs-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: var(--leading);
    font-size: var(--fs-base);
    min-height: 100%;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(255, 220, 193, 0.45), transparent 45%),
        radial-gradient(100% 100% at 90% 20%, rgba(165, 215, 213, 0.45), transparent 40%),
        linear-gradient(135deg, #fdfaf3 0%, #f2ecdf 50%, #f7f2e9 100%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .015) 0, rgba(0, 0, 0, .015) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .015) 0, rgba(0, 0, 0, .015) 1px, transparent 1px, transparent 60px);
    opacity: .85;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.015em;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

.blur {
    backdrop-filter: blur(16px);
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
}

.topbar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin-top: 12px;
    background: rgba(255, 253, 247, .94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(35, 26, 6, .08);
}

.brand {
    display: flex;
    align-items: center;
}

.brand-img {
    display: block;
    height: 50px;
    width: auto;
    max-width: 220px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.01em;
}

.nav a.active {
    background: linear-gradient(135deg, #e4572e, #f3a712);
    color: #fff;
    border: none;
    box-shadow: 0 12px 28px rgba(228, 87, 46, .35);
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.searchbar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.searchbar input {
    all: unset;
    width: 100%;
    color: var(--text);
    font-size: 14px;
}

.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--text);
    color: #fff;
    box-shadow: 0 12px 24px rgba(24, 33, 46, .18);
}

.btn.brand {
    background: linear-gradient(135deg, #e4572e, #f3a712);
    color: #ffffff;
    border: none;
    box-shadow: 0 14px 32px rgba(228, 87, 46, .35);
}

.btn.ghost {
    background: rgba(31, 122, 140, .08);
    border-color: #1f7a8c;
    color: #1f7a8c;
}

.btn.ghost:hover {
    background: #1f7a8c;
    color: #fff;
    transform: translateY(-1px);
}

.toggle {
    min-width: 70px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .01em;
}

/* Header ticker */
header .ticker-wrap {
    position: relative;
    overflow: hidden;
    background: transparent;
    margin-top: 10px;
}

header .ticker-wrap .container {
    padding: 0 20px;
}

header .ticker {
    display: flex;
    white-space: nowrap;
    gap: 44px;
    padding: 12px 4px;
    animation: scroll-left 34s linear infinite;
    color: var(--text);
    font-weight: 700;
    min-width: max-content;
    letter-spacing: .01em;
}

@media (max-width: 640px) {
    header .ticker {
        gap: 28px;
        animation-duration: 42s;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

header .ticker:hover {
    animation-play-state: paused;
}

header .ticker .tick {
    white-space: nowrap;
    color: var(--text);
    opacity: .9;
}

/* Hero */
.hero-neon {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(200% 120% at 10% 20%, rgba(228, 87, 46, .12), transparent 45%),
        radial-gradient(160% 120% at 90% 0%, rgba(31, 122, 140, .12), transparent 40%),
        #fffaf3;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

:root:not(.light-theme) .hero-neon {
    background:
        radial-gradient(180% 120% at 20% 20%, rgba(228, 87, 46, .14), transparent 45%),
        radial-gradient(180% 120% at 90% 0%, rgba(59, 192, 228, .14), transparent 40%),
        #0f1729;
}

.hero-neon::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px dashed rgba(24, 33, 46, .08);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: stretch;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 122, 140, .12);
    border: 1px solid var(--line);
    color: #1f4d5a;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 700;
}

.hero-text h1 {
    margin: 0;
    font-size: 32px;
    color: var(--text);
    max-width: 640px;
}

.hero-lead {
    opacity: .9;
    max-width: 680px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.hero-metrics .metric {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 12px 28px rgba(24, 33, 46, .08);
}

.hero-metrics .metric small {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}

.hero-metrics .metric strong {
    display: block;
    font-size: 22px;
    color: var(--text);
    margin: 4px 0 2px;
}

.hero-metrics .metric span {
    color: var(--muted);
    font-size: 13px;
}

.hero-logo {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(228, 87, 46, .08), rgba(31, 122, 140, .08));
    pointer-events: none;
}

.hero-ticket {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0f3f4a, #1f7a8c);
    color: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(31, 122, 140, .35);
}

.ticket-head {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .82;
}

.ticket-body {
    margin: 10px 0 6px;
}

.ticket-amount {
    font-family: 'DM Mono', 'Space Grotesk', monospace;
    font-size: 26px;
    font-weight: 700;
}

.ticket-meta {
    color: #d8f3ff;
}

.ticket-foot {
    font-size: 13px;
    color: #fbe0cf;
    border-top: 1px dashed rgba(255, 255, 255, .35);
    padding-top: 8px;
    margin-top: 6px;
}

.hero-sticker {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-sticker span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    box-shadow: 0 8px 18px rgba(24, 33, 46, .1);
    font-weight: 700;
}

:root:not(.light-theme) .hero-sticker span {
    background: #18243a;
    color: #e9edf5;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

.hero-stats-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-stats-single .donut {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: conic-gradient(#1f7a8c 0 70%, #e4572e 70% 88%, #f3a712 88% 100%);
    margin-inline: auto;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 38px rgba(24, 33, 46, .16);
    position: relative;
}

.hero-stats-single .donut::after {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
}

.hero-stats-single .legend {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--text);
}

.legend-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.legend-item.slot { color: #1f7a8c; }
.legend-item.casino { color: #e4572e; }
.legend-item.togel { color: #f3a712; }
:root:not(.light-theme) .legend-item.slot { color: #63d7ff; }
:root:not(.light-theme) .legend-item.casino { color: #ff9f68; }
:root:not(.light-theme) .legend-item.togel { color: #ffd166; }

:root:not(.light-theme) .legend-item {
    background: #18243a;
    color: #e9edf5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    border-color: #24364e;
}

.wave-sep {
    display: none;
}

/* Sections */
.section {
    margin: 26px 0;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--text);
}

#toolbar {
    position: sticky;
    top: 76px;
    z-index: 35;
    backdrop-filter: blur(8px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 12px 28px rgba(24, 33, 46, .12);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(24, 33, 46, .16);
    border-color: rgba(24, 33, 46, .18);
}

.thumb {
    position: relative;
    overflow: hidden;
}

.thumb img {
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    transition: transform .35s ease;
}

.card:hover .thumb img {
    transform: scale(1.02);
}

.pill {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    color: var(--text);
    backdrop-filter: blur(4px);
}

.body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    height: 100%;
}

.meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.title {
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.excerpt {
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #0a0a0a;
}

.actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.actions-row .btn {
    padding: 10px 12px;
}

.btn.view {
    background: #1f7a8c;
    color: #ffffff;
    border: none;
}

.btn.view:hover {
    box-shadow: 0 10px 22px rgba(31, 122, 140, .28);
}

.btn.share {
    background: #fff;
    border: 1px solid var(--text);
    color: #0a0a0a;
}

/* Slider */
.slider {
    position: relative;
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.slider-track>* {
    scroll-snap-align: start;
}

@media(min-width:860px) {
    .slider-track {
        grid-auto-columns: 30%;
    }
}

.dotnav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d8c7b3;
}

/* Lightbox */
dialog {
    border: none;
    padding: 0;
    border-radius: 16px;
    max-width: min(960px, 96vw);
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow);
}

dialog::backdrop {
    background: rgba(0, 0, 0, .35);
}

.lightbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.lightbox-body {
    padding: 12px;
}

.x {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* Utilities */
.hide {
    display: none !important;
}

.floating-cta {
    position: fixed;
    right: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 50;
}

.whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0bab64, #3bb78f);
    color: #042012;
    box-shadow: var(--shadow);
    font-weight: 800;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, .08);
}

.backtop {
    position: fixed;
    right: 16px;
    bottom: 84px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(24, 33, 46, .14);
}

.searchbar svg path {
    fill: var(--muted);
}

/* Kategori */
#kategori {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff, #f2ede1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 22px rgba(24, 33, 46, .08);
}

.cat-carousel {
    display: flex;
    gap: 10px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.cat-btn {
    scroll-snap-align: center;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: 0 10px 20px rgba(24, 33, 46, .08);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.cat-btn > div:last-child {
    font-size: 13px;
    line-height: 1.25;
}


.cat-btn:hover {
    transform: translateY(-1px);
}

.cat-btn.on {
    outline: none;
    background: linear-gradient(135deg, #1f7a8c, #e4572e);
    color: #fff;
    border: none;
    box-shadow: 0 12px 28px rgba(228, 87, 46, .28);
}

.cat-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--soft);
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

/* Dense mode */
.grid.dense {
    gap: 12px;
}

.grid.dense .body {
    padding: 12px 14px;
}

.grid.dense .thumb img {
    height: 160px;
    aspect-ratio: auto;
}

.grid.dense .title {
    -webkit-line-clamp: 1;
}

.grid.dense .excerpt {
    display: none;
}

/* Read more + sticky actions + media/related */
.btn.read {
    background: linear-gradient(135deg, #1f7a8c, #3bc0e4);
    color: #04140c;
    border: none;
}

.btn.read:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    padding: 8px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.btn.wa {
    background: linear-gradient(135deg, #0bab64, #3bb78f);
    color: #04140c;
    border: 0;
}

.media-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
}

@media(max-width:900px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

.media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f6f2e9;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.badge-corner {
    position: absolute;
    left: 10px;
    top: 10px;
}

.stat-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.stat-list .stat {
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
}

.big-money {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .3px;
    color: var(--text);
}

.pn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.pn a {
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.related .slider-track {
    grid-auto-columns: 70%;
}

@media(min-width:860px) {
    .related .slider-track {
        grid-auto-columns: 28%;
    }
}

/* Rails */
:root {
    --content-w: calc(var(--maxw) + 32px);
}

body.has-rails::before,
body.has-rails::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: max(0px, (100vw - var(--content-w)) / 2);
    background: linear-gradient(180deg, rgba(255, 248, 235, .9), rgba(245, 236, 218, .7));
    pointer-events: none;
    z-index: 0;
}

body.has-rails::before {
    left: 0;
}

body.has-rails::after {
    right: 0;
}

header.topbar,
main.container,
footer.container,
.floating-cta,
.backtop,
dialog {
    position: relative;
    z-index: 1;
}

/* WD panel */
.wd-panel {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .wd-panel {
        grid-template-columns: 1fr;
    }
}

.wd-table {
    overflow: auto;
    max-height: 420px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.wd-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
    font-size: 14px;
}

.wd-table thead th {
    position: sticky;
    top: 0;
    color :#0bab64;
    z-index: 1;
    background: #fff;
    text-align: left;
    font-weight: 800;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
}

.wd-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    color: var(--text);
}

.wd-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .08);
}

.wd-table tbody tr:hover {
    background: rgba(228, 87, 46, .08);
}

.wd-table td.amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wd-table td.user,
.wd-table td.game {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-mini {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    background: #e4572e;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(228, 87, 46, .28);
}

.btn-mini:hover {
    filter: brightness(1.05);
}

/* Flip clock */
.wd-clock {
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fba433;
    box-shadow: 0 10px 24px rgba(24, 33, 46, .1);
}

.wd-clock-date {
    color: #222323;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.wd-flip {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wd-flip .digit {
    width: 50px;
    height: 68px;
    perspective: 320px;
}

.wd-flip .panel {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #222323;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .04), 0 8px 18px rgba(24, 33, 46, .08);
    font: 800 32px/1 'DM Mono', 'Space Grotesk', monospace;
    transform-style: preserve-3d;
}

.wd-flip .panel.flip {
    animation: flip .6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(-90deg);
    }

    100% {
        transform: rotateX(0deg);
    }
}

.wd-flip .colon {
    width: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    color: #9ca3af;
}

@media (max-width: 520px) {
    .wd-flip .digit {
        width: 42px;
        height: 58px;
    }

    .wd-flip .panel {
        font-size: 28px;
        border-radius: 10px;
    }
}

/* Misc */
.categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn:focus-visible,
a:focus-visible {
    outline: 2px solid #1f7a8c;
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --radius: 16px;
        --radius-sm: 10px;
        --maxw: 100%;
    }

    .topbar .row {
        padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
    }

    .container {
        padding-inline: 14px;
    }

    .nav {
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 7px 10px;
        font-size: 13px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .thumb img {
        height: 210px;
        aspect-ratio: auto;
    }

    .slider-track {
        grid-auto-columns: 86%;
    }

    .floating-cta {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .backtop {
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

    footer {
        padding: 20px 0;
    }
}

/* Light/dark theme toggle */
:root.light-theme {
    --bg: #f5f1e8;
    --card: #fffdf7;
    --soft: #f0ebe0;
    --text: #1f2733;
    --muted: #59606e;
}

:root:not(.light-theme) {
    --bg: #0a101c;
    --card: #121b2c;
    --soft: #0e1626;
    --text: #e9edf5;
    --muted: #9fb4d0;
    --line: #1f3047;
    --surface-2: #0f1a2b;
    background-color: var(--bg);
}

:root:not(.light-theme) body {
    color: var(--text);
}

:root:not(.light-theme) body::before {
    background: radial-gradient(120% 120% at 10% 0%, rgba(228, 87, 46, .12), transparent 45%),
        radial-gradient(100% 100% at 90% 20%, rgba(31, 122, 140, .16), transparent 40%),
        linear-gradient(135deg, #0f1424 0%, #0c111d 50%, #0c1222 100%);
}

:root:not(.light-theme) .topbar .row,
:root:not(.light-theme) #toolbar,
:root:not(.light-theme) .hero-neon,
:root:not(.light-theme) .card,
:root:not(.light-theme) .wd-panel,
:root:not(.light-theme) .wd-table,
:root:not(.light-theme) #kategori,
:root:not(.light-theme) dialog {
    background-color: var(--card);
    border-color: var(--line);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

:root:not(.light-theme) .nav a {
    background: #18243a;
    color: var(--text);
    border-color: var(--line);
}

:root:not(.light-theme) .nav a.active {
    background: linear-gradient(135deg, #1f7a8c, #3bc0e4);
}

:root:not(.light-theme) body::after {
    opacity: .3;
}

.muted {
    color: var(--muted);
}

.ph {
    background: var(--soft);
}


.sticky-cta-mobile {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 86px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1f7a8c, #3bc0e4);
    color: #fff;
    border-radius: 999px;
    border: none;
    box-shadow: 0 14px 28px rgba(24, 33, 46, .2);
    font-weight: 800;
    z-index: 52;
    display: none;
}

@media (max-width: 640px) {
    .sticky-cta-mobile { display: inline-flex; align-items: center; gap: 8px; }
}
