
/* =========================
   VARZEPRESET — DESIGN SYSTEM
========================= */

:root {
    --bg: #090B10;
    --surface: #11151D;
    --border: #252B36;
    --text: #F1F4F9;
    --muted: #929BAA;
    --blue: #528BFF;
    --blue-hover: #3D79F0;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar */

.navbar {
    width: 100%;
    min-height: 76px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.logo span {
    color: var(--blue);
    font-size: 13px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-button {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.nav-button:hover {
    border-color: var(--blue);
}

/* Hero */

.hero {
    min-height: 470px;
    padding: 110px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eyebrow {
    margin-bottom: 22px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.12;
    letter-spacing: -2.8px;
    font-weight: 750;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 20px;
    background: var(--blue);
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.primary-button:hover {
    background: var(--blue-hover);
}

/* Sections */

.presets-section,
.about-section {
    padding: 65px 8%;
    border-top: 1px solid var(--border);
}

.section-heading h2,
.about-section h2 {
    font-size: 24px;
    letter-spacing: -0.6px;
}

.section-heading p,
.about-section p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.preset-grid {
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

/* Footer */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 28px max(6%, calc((100% - 1100px) / 2));
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    background: rgba(17, 21, 29, .62);
}


/* Preset cards */

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.preset-card {
    min-width: 0;
}

.preset-preview {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.preset-preview img,
.preset-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.preset-preview:hover img,
.preset-preview:hover video {
    transform: scale(1.025);
}

.preview-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 7px;
    background: rgba(9, 11, 16, 0.9);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.preset-info {
    padding-top: 13px;
}

.preset-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.preset-heading h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.preset-price {
    flex-shrink: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.preset-creator {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

/* Mobile catalog */

@media (max-width: 600px) {
    .preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .preset-heading {
        flex-direction: column;
        gap: 3px;
    }
}


/* Responsive */

@media (max-width: 600px) {
    .navbar {
        min-height: 68px;
        padding: 0 5%;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: 410px;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.8px;
    }

    .hero-description {
        max-width: 290px;
        font-size: 14px;
    }

    .presets-section,
    .about-section {
        padding: 45px 5%;
    }
}


/* ========================================
   VARZEPRESET — PREMIUM PRODUCT DETAIL
======================================== */

.detail-page-body {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 12% 15%,
            rgba(82, 139, 255, 0.07),
            transparent 36%
        ),
        var(--bg);
}

/* MAIN CONTAINER */

.detail-page {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 36px 0 90px;
}

/* BREADCRUMB */

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 13px;
}

.detail-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
    color: var(--text);
}

.detail-breadcrumb > span:last-child {
    color: var(--text);
}

/* TWO-COLUMN LAYOUT */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 34px;
}

/* PREVIEW */

.detail-gallery {
    min-width: 0;
}

.detail-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #11151D;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.detail-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.32),
        transparent 25%,
        transparent 75%,
        rgba(0, 0, 0, 0.12)
    );
}

.detail-preview img,
.detail-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05070a;
}

.detail-preview video[hidden] {
    display: none;
}

.detail-preview-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    background: rgba(9, 11, 16, 0.78);
    color: #F1F4F9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.detail-gallery-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 3px;
    color: var(--muted);
    font-size: 12px;
}

.detail-gallery-caption p {
    margin: 0;
}

.detail-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #528BFF;
    box-shadow: 0 0 12px rgba(82, 139, 255, 0.5);
}

/* PRODUCT INFORMATION CARD */

.detail-info-card {
    min-width: 0;
    padding: 30px;
    background: linear-gradient(
        145deg,
        rgba(17, 21, 29, 0.98),
        rgba(13, 16, 23, 0.98)
    );
    border: 1px solid var(--border);
    border-radius: 18px;
}

.detail-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.detail-category span {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #528BFF;
}

.detail-category strong {
    color: var(--muted);
    font: inherit;
    letter-spacing: inherit;
}

.detail-info-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
}

/* CREATOR */

.detail-creator-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.detail-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(82, 139, 255, 0.35);
    border-radius: 12px;
    background: rgba(82, 139, 255, 0.12);
    color: #8DB3FF;
    font-size: 18px;
    font-weight: 750;
}

.detail-creator-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 11px;
}

.detail-creator {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* DIVIDER */

.detail-divider {
    height: 1px;
    margin: 25px 0;
    background: var(--border);
}

/* PRICE */

.detail-price-section {
    padding: 19px;
    border: 1px solid rgba(82, 139, 255, 0.17);
    border-radius: 12px;
    background: rgba(82, 139, 255, 0.045);
}

.detail-price-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.detail-price {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.detail-price-note {
    display: inline-block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

/* DESCRIPTION */

.detail-description-section {
    margin-top: 28px;
}

.detail-description-section h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.detail-description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

/* PURCHASE BUTTON */

.detail-purchase-area {
    margin-top: 28px;
}

.buy-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 51px;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: #528BFF;
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.65;
    cursor: not-allowed;
}

.buy-button:disabled {
    pointer-events: none;
}

.purchase-note {
    max-width: 290px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

/* TRUST INFORMATION */

.detail-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-trust-list > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.detail-check {
    color: #78A5FF;
    font-size: 13px;
    font-weight: 700;
}

/* BOTTOM PROMO */

.detail-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 60px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.detail-bottom .eyebrow {
    margin: 0 0 10px;
    color: #78A5FF;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.detail-bottom h2 {
    margin: 0;
    font-size: clamp(20px, 3vw, 27px);
    letter-spacing: -0.6px;
}

.detail-bottom > div > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.detail-bottom .primary-button {
    flex-shrink: 0;
    text-decoration: none;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .detail-preview {
        aspect-ratio: 16 / 10;
    }

    .detail-info-card {
        padding: 25px;
    }

    .detail-info-card h1 {
        font-size: 32px;
    }

    .detail-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 520px) {
    .detail-page {
        width: 90%;
        padding: 25px 0 55px;
    }

    .detail-breadcrumb {
        gap: 7px;
        margin-bottom: 22px;
        font-size: 11px;
    }

    .detail-preview {
        border-radius: 13px;
    }

    .detail-preview-badge {
        top: 12px;
        left: 12px;
        padding: 7px 9px;
        font-size: 9px;
    }

    .detail-info-card {
        padding: 21px;
        border-radius: 14px;
    }

    .detail-info-card h1 {
        font-size: 29px;
    }

    .detail-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }

    .detail-bottom .primary-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Halaman informasi, ketentuan, dan status pesanan */
.legal-page {
    width: min(780px, calc(100% - 36px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.legal-page h1 {
    margin: 10px 0 18px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.2;
    letter-spacing: -1.3px;
}

.legal-page > p:not(.eyebrow):not(.legal-updated) {
    color: var(--muted);
    line-height: 1.8;
}

.legal-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.legal-card h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.legal-card p {
    color: var(--muted);
    line-height: 1.8;
}

.legal-card p + p {
    margin-top: 12px;
}

.legal-updated {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
}

.footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 0;
}

.footer nav a {
    color: var(--muted);
    font-size: 13px;
}

.footer nav a:hover {
    color: var(--text);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px 32px;
}

.site-footer nav {
    margin: 0;
}

.site-footer .footer-brand p {
    margin-top: 5px;
    color: var(--muted);
}

.site-footer nav {
    justify-content: flex-end;
    margin: 0;
}

.site-footer .footer-copyright {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

@media (max-width: 620px) {
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

.payment-method {
    width: 100%;
    min-height: 46px;
    margin: 8px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.payment-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.payment-consent input {
    margin-top: 4px;
    accent-color: var(--blue);
}

.payment-consent a {
    color: var(--blue);
    text-decoration: underline;
}

.buy-button:disabled {
    opacity: .6;
    cursor: wait;
}

/* Profil kreator */
.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(82, 139, 255, .22);
    border-radius: 20px;
    background: radial-gradient(ellipse at 0% 0%, rgba(82, 139, 255, .16), transparent 60%), var(--surface);
}

.profile-hero h1 {
    margin: 5px 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.profile-hero .profile-avatar {
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 24px;
    flex: 0 0 auto;
}

.profile-status {
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

/* Dasbor kreator: ringkasan dan daftar preset */
.dashboard-page {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(82, 139, 255, .09), transparent 36%),
        var(--bg);
}

.dashboard-welcome {
    padding: 8px 0 4px;
}

.dashboard-welcome .eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(82, 139, 255, .25);
    border-radius: 999px;
    background: rgba(82, 139, 255, .08);
    color: #8db1ff;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.dashboard-profile {
    align-items: center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .16);
}

.dashboard-profile-link {
    justify-self: start;
    text-align: center;
    white-space: nowrap;
}

.dashboard-stat {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(82, 139, 255, .38);
}

.dashboard-stat h2 {
    color: var(--text);
}

.dashboard-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(17, 21, 29, .55);
}

.dashboard-page .preset-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.dashboard-page .preset-preview {
    border-radius: 8px;
}

.dashboard-page .preset-info {
    padding: 12px 2px 2px;
}

.preset-manage-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 11px;
    border: 1px solid rgba(82, 139, 255, .3);
    border-radius: 8px;
    background: rgba(82, 139, 255, .08);
    color: #9bbaff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}
.preset-manage-link:hover { background: rgba(82, 139, 255, .16); border-color: rgba(82, 139, 255, .6); }

.edit-preset-container {
    width: min(100% - 32px, 760px);
    margin: 42px auto 80px;
}
.edit-preset-container .create-preset-heading { margin-top: 12px; }
.edit-publish-toggle {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin-top: 22px !important;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
}
.edit-publish-toggle input {
    width: 18px;
    min-height: 18px !important;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}
.edit-publish-toggle span { font-size: 13px; }
.edit-file-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.edit-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 24px; }
.edit-actions button {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.edit-actions .primary-button { border: 0; border-radius: 10px; }
.edit-delete-button { border: 1px solid rgba(255, 133, 133, .35); border-radius: 10px; background: rgba(255, 100, 100, .07); color: #ff9999; }
.edit-delete-button:hover { background: rgba(255, 100, 100, .14); }
.edit-actions button:disabled { opacity: .6; cursor: wait; }
.edit-loading { padding: 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; line-height: 1.7; }
#edit-preset-message.is-success { color: #75d5a6; }
@media (max-width: 520px) { .edit-actions { flex-direction: column; } }

.dashboard-message[role="status"] {
    line-height: 1.6;
}

@media (max-width: 600px) {
    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-profile-link {
        width: 100%;
    }
}

.profile-status.is-verified {
    border-color: rgba(65, 194, 135, .35);
    color: #75d5a6;
    background: rgba(65, 194, 135, .08);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .8fr);
    gap: 20px;
    align-items: start;
}

.profile-section-heading h2,
.profile-account-card h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.profile-section-heading p,
.profile-help-card > p:last-of-type {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.profile-counter {
    align-self: flex-end;
    margin: -5px 2px 4px;
    color: var(--muted);
    font-size: 11px;
}

.profile-side-column {
    display: grid;
    gap: 14px;
}

.profile-card-label {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.profile-account-card dl {
    margin-top: 20px;
}

.profile-account-card dl div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.profile-account-card dt {
    color: var(--muted);
    font-size: 11px;
}

.profile-account-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.profile-dashboard-link,
.profile-help-card a {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
}

.profile-help-card a {
    display: inline-block;
}

.profile-logout {
    border-color: rgba(255, 133, 133, .24);
    color: #ff9999;
}

.profile-logout:hover {
    background: rgba(255, 133, 133, .07);
}

#profile-message.is-success {
    color: #75d5a6;
}

@media (max-width: 720px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 22px;
    }

    .profile-hero .profile-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 25px;
    }

    .profile-status {
        margin: 0;
    }
}


.admin-page {
    width: min(100% - 40px, 480px);
    margin: 70px auto;
}

.admin-login,
.admin-dashboard {
    margin-top: 30px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-login h1,
.admin-dashboard h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
}

.admin-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

#login-form label {
    margin-top: 8px;
    font-size: 13px;
}

#login-form input {
    width: 100%;
    padding: 12px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    outline: none;
}

#login-form input:focus {
    border-color: var(--blue);
}

#login-form .primary-button {
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    border: none;
}

#login-message {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

#dashboard-section .nav-button {
    margin-top: 24px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}


.admin-product-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.admin-section-heading h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.admin-section-heading p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.admin-product-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.admin-field input:focus,
.admin-field textarea:focus {
    border-color: var(--blue);
}

.admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.admin-checkbox input {
    width: 15px;
    height: 15px;
    accent-color: var(--blue);
}

.admin-submit {
    width: 100%;
    margin-top: 0;
    border: none;
    cursor: pointer;
}

.admin-message {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (min-width: 600px) {
    .admin-product-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .admin-field:has(#product-description),
    .admin-checkbox,
    .admin-submit,
    .admin-message {
        grid-column: 1 / -1;
    }
}


.admin-list-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.admin-product-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.admin-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.admin-product-thumb {
    width: 76px;
    height: 58px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
}

.admin-product-details {
    flex: 1;
    min-width: 0;
}

.admin-product-details h3 {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.admin-product-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-product-status {
    display: inline-block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.admin-delete-button {
    flex-shrink: 0;
    padding: 8px 11px;
    color: #ff7777;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.admin-delete-button:hover {
    border-color: #ff7777;
}

.admin-empty {
    padding: 20px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Polesan dasbor admin dan moderasi akun */
.admin-page:has(.admin-dashboard:not([hidden])) {
    width: min(100% - 32px, 1060px);
    margin: 42px auto 72px;
}

.admin-dashboard {
    padding: clamp(22px, 4vw, 40px);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.admin-dashboard > h1 { font-size: clamp(30px, 5vw, 44px); }
.admin-user-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-user-item {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 16px; border: 1px solid var(--border); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.admin-user-info { min-width: 0; }
.admin-user-info h3 { font-size: 14px; overflow-wrap: anywhere; }
.admin-user-info p { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-user-state { display: inline-block; margin-top: 7px; color: #75d5a6; font-size: 11px; }
.admin-user-state.is-banned { color: #ff9999; }
.admin-user-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.admin-user-actions select { max-width: 120px; padding: 9px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; }
.admin-ban-button, .admin-unban-button {
    padding: 9px 12px; color: #ff9999; background: rgba(255, 100, 100, .08);
    border: 1px solid rgba(255, 130, 130, .3); border-radius: 7px; cursor: pointer;
}
.admin-unban-button { color: #75d5a6; background: rgba(80, 200, 140, .08); border-color: rgba(80, 200, 140, .3); }
.profile-avatar-wrap { display: grid; justify-items: center; gap: 10px; }
.profile-avatar-wrap .profile-avatar { margin: 22px 0 0; overflow: hidden; }
.profile-avatar.has-photo { padding: 0; }
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-photo-button { padding: 8px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; cursor: pointer; }
.profile-photo-button:hover { border-color: var(--blue); }

@media (max-width: 600px) {
    .admin-user-item { align-items: flex-start; flex-direction: column; }
    .admin-user-actions { width: 100%; }
    .admin-user-actions select { flex: 1; max-width: none; }
}

.footer {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    width: min(1120px, calc(100% - 40px)); margin: 0 auto;
    padding: 24px 0 30px; border-top: 1px solid var(--border, #252B36);
    color: var(--muted, #929BAA); font-size: 12px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--text, #F1F4F9); }
@media (max-width: 520px) { .footer { align-items: flex-start; flex-direction: column; } }

@media (max-width: 480px) {
    .admin-product-item {
        gap: 10px;
        padding: 10px;
    }

    .admin-product-thumb {
        width: 58px;
        height: 50px;
    }

    .admin-delete-button {
        padding: 7px 8px;
    }
}


.explore-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.explore-header {
    margin-bottom: 32px;
}

.explore-eyebrow {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.explore-header h1 {
    font-size: clamp(30px, 5vw, 46px);
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.explore-header > p:last-child {
    color: var(--muted);
    margin-top: 12px;
    font-size: 14px;
}

.explore-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 12px;
    margin-bottom: 18px;
}

.explore-controls input,
.explore-controls select {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.explore-controls input:focus,
.explore-controls select:focus {
    border-color: var(--blue);
}

.explore-count {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.explore-empty {
    color: var(--muted);
    font-size: 14px;
    padding: 24px 0;
}

@media (max-width: 600px) {
    .explore-page {
        width: calc(100% - 28px);
        padding-top: 42px;
    }

    .explore-controls {
        grid-template-columns: 1fr;
    }
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-page > .logo {
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.auth-eyebrow {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.auth-card h1 {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -0.7px;
}

.auth-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    font-size: 12px;
    color: var(--text);
    margin-top: 5px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--blue);
}

.auth-forgot {
    align-self: flex-end;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    margin: 2px 0 8px;
}

.auth-forgot:hover,
.auth-switch a:hover {
    color: var(--blue);
}

.auth-submit {
    padding: 12px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.auth-submit:hover {
    background: var(--blue-hover, #3D79F0);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-message {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.auth-switch {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin-top: 24px;
}

.auth-switch a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-card h1 {
        font-size: 24px;
    }
}


.google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.google-login:hover {
    background: var(--bg);
    border-color: var(--blue);
}

.google-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-login svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* DASHBOARD */
.dashboard-page {
    background: #090B10;
    color: #F1F4F9;
    min-height: 100vh;
}

.dashboard-container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 64px 0;
}

.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-logout-button {
    margin-top: 18px;
    padding: 9px 14px;
    color: var(--muted, #929BAA);
    background: transparent;
    border: 1px solid var(--border, #252B36);
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.dashboard-logout-button:hover { color: var(--text, #F1F4F9); border-color: var(--blue, #528BFF); }
.dashboard-logout-button:disabled { opacity: .6; cursor: wait; }

.dashboard-welcome h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.dashboard-welcome h1 span {
    color: #528BFF;
}

.dashboard-welcome > p:last-child,
.dashboard-section-heading p {
    color: #929BAA;
}

.dashboard-profile,
.dashboard-stat {
    background: #11151D;
    border: 1px solid #252B36;
    border-radius: 16px;
    padding: 24px;
}

.dashboard-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.dashboard-label,
.dashboard-stat > p {
    color: #929BAA;
    font-size: 14px;
    margin: 0 0 10px;
}

.dashboard-profile p:last-child {
    overflow-wrap: anywhere;
}

.dashboard-user-id {
    font-size: 13px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.dashboard-stat h2 {
    font-size: 32px;
    margin: 0;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-section-heading h2 {
    margin: 0 0 8px;
}

.dashboard-section-heading p {
    margin: 0;
}

.dashboard-section-heading .primary-button {
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-message {
    color: #FF8585;
    margin-top: 20px;
}

#logout-button {
    cursor: pointer;
}

#logout-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 36px 0;
    }

    .dashboard-profile {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Edit Profile Page */
.profile-page {
    min-height: 100vh;
    background: var(--bg, #090B10);
    color: var(--text, #F1F4F9);
}

.profile-container {
    width: min(100% - 32px, 560px);
    margin: 48px auto 80px;
}

.profile-back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted, #929BAA);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.profile-back:hover {
    color: var(--text, #F1F4F9);
}

.profile-card {
    padding: 32px;
    background: var(--surface, #11151D);
    border: 1px solid var(--border, #252B36);
    border-radius: 20px;
}

.profile-card h1 {
    margin: 8px 0;
    font-size: clamp(28px, 5vw, 36px);
    letter-spacing: -1px;
}

.profile-subtitle {
    margin: 0;
    color: var(--muted, #929BAA);
    line-height: 1.7;
    font-size: 14px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 28px 0;
    border: 1px solid rgba(82, 139, 255, 0.45);
    border-radius: 22px;
    background: rgba(82, 139, 255, 0.12);
    color: #528BFF;
    font-size: 30px;
    font-weight: 700;
}

#profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#profile-form label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

#profile-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border, #252B36);
    border-radius: 10px;
    outline: none;
    background: #090B10;
    color: var(--text, #F1F4F9);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#profile-form input:focus {
    border-color: #528BFF;
}

#profile-form input:disabled {
    color: #929BAA;
    cursor: not-allowed;
    opacity: 0.8;
}

.profile-hint {
    margin: 0;
    color: var(--muted, #929BAA);
    font-size: 12px;
    line-height: 1.6;
}

.profile-save {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: none;
    cursor: pointer;
}

.profile-save:disabled {
    cursor: wait;
    opacity: 0.6;
}

.profile-divider {
    height: 1px;
    margin: 26px 0 20px;
    background: var(--border, #252B36);
}

.profile-logout {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border, #252B36);
    border-radius: 10px;
    background: transparent;
    color: #F1F4F9;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-logout:hover {
    background: #1A202B;
}

.profile-logout:disabled {
    cursor: wait;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .profile-container {
        margin-top: 28px;
    }

    .profile-card {
        padding: 22px;
        border-radius: 16px;
    }
}

/* Create Preset Page */
.create-preset-page {
    min-height: 100vh;
    background: var(--bg, #090B10);
    color: var(--text, #F1F4F9);
}

.create-preset-container {
    width: min(100% - 32px, 760px);
    margin: 42px auto 80px;
}

.create-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted, #929BAA);
    text-decoration: none;
    font-size: 14px;
}

.create-back:hover {
    color: var(--text, #F1F4F9);
}

.create-preset-heading {
    margin-bottom: 30px;
}

.create-preset-heading h1 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: -1.5px;
}

.create-preset-heading > p:last-child {
    color: var(--muted, #929BAA);
    line-height: 1.7;
}

.create-preset-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-form-section {
    padding: 26px;
    background: var(--surface, #11151D);
    border: 1px solid var(--border, #252B36);
    border-radius: 16px;
}

.create-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.create-step {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(82, 139, 255, 0.35);
    border-radius: 12px;
    background: rgba(82, 139, 255, 0.1);
    color: #528BFF;
    font-size: 13px;
    font-weight: 700;
}

.create-section-heading h2 {
    margin: 2px 0 6px;
    font-size: 18px;
}

.create-section-heading p {
    margin: 0;
    color: var(--muted, #929BAA);
    font-size: 13px;
    line-height: 1.6;
}

.create-preset-form label {
    display: block;
    margin: 20px 0 9px;
    font-size: 13px;
    font-weight: 600;
}

.create-preset-form input,
.create-preset-form textarea,
.create-preset-form select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border, #252B36);
    border-radius: 10px;
    outline: none;
    background: #090B10;
    color: var(--text, #F1F4F9);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.create-preset-form input {
    min-height: 48px;
}

.create-preset-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.7;
}

.create-preset-form input:focus,
.create-preset-form textarea:focus,
.create-preset-form select:focus {
    border-color: #528BFF;
}

.create-preset-form input::placeholder,
.create-preset-form textarea::placeholder {
    color: #687181;
}

.create-field-hint {
    margin: 9px 0 0;
    color: var(--muted, #929BAA);
    font-size: 12px;
    line-height: 1.7;
}

.create-preview-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px dashed var(--border, #252B36);
    border-radius: 12px;
    background: #090B10;
}

.create-preview-box img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.create-preview-box video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #05070a;
}

.create-preview-box video[hidden] {
    display: none;
}

.create-preview-box img[hidden],
.create-preview-box p[hidden] {
    display: none;
}

.create-preview-box p {
    padding: 20px;
    color: var(--muted, #929BAA);
    font-size: 13px;
    text-align: center;
}

.create-publish-note {
    padding: 18px 20px;
    border: 1px solid var(--border, #252B36);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.create-publish-note strong {
    font-size: 13px;
}

.create-publish-note p {
    margin: 8px 0 0;
    color: var(--muted, #929BAA);
    font-size: 13px;
    line-height: 1.8;
}

.create-form-actions {
    display: flex;
    gap: 12px;
}

.create-form-actions button {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.create-draft-button {
    padding: 12px 18px;
    border: 1px solid var(--border, #252B36);
    border-radius: 10px;
    background: var(--surface, #11151D);
    color: var(--text, #F1F4F9);
}

.create-draft-button:hover {
    background: #1A202B;
}

.create-publish-button {
    padding: 12px 18px;
}

.create-form-actions .primary-button,
.dashboard-section-heading .primary-button {
    margin-top: 0;
}

.create-form-actions button {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    border-radius: 10px;
}
.create-form-actions .primary-button { border: 1px solid var(--blue); }

.create-form-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 520px) {
    .create-preset-container {
        margin-top: 28px;
    }

    .create-form-section {
        padding: 20px;
    }

    .create-form-actions {
        flex-direction: column-reverse;
    }

    .create-form-actions button {
        width: 100%;
    }
}
