@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
    --color-bg: #071c2a;
    --color-bg-soft: #0b2435;
    --color-panel: #123348;
    --color-panel-2: #1d4d6d;
    --color-brand: #2f9ac8;
    --color-brand-soft: rgba(47, 154, 200, 0.18);
    --color-accent: #f2b537;
    --color-text: #ffffff;
    --color-text-soft: #bfd7e3;
    --color-text-muted: #8eaebe;
    --color-line: rgba(255, 255, 255, 0.1);
    --color-line-strong: rgba(255, 255, 255, 0.18);
    --color-success: #42d8a6;
    --color-warning: #f2b537;
    --color-danger: #ff6f86;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.22);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.38);
    --radius-card: 24px;
    --radius-panel: 32px;
    --radius-pill: 999px;
    --product-card-min: 270px;
    --product-card-max: 320px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 56px;
    --space-9: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--color-text);
    font-family: "Barlow", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47, 154, 200, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(242, 181, 55, 0.16), transparent 22%),
        linear-gradient(135deg, #05131d 0%, #071c2a 35%, #0b2435 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, transparent 70%, rgba(242, 181, 55, 0.16) 70%, rgba(242, 181, 55, 0.16) 73%, transparent 73%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 120px 120px, 120px 120px;
    opacity: 0.36;
}

body::after {
    width: 420px;
    height: 420px;
    top: 12%;
    right: -120px;
    background: radial-gradient(circle, rgba(47, 154, 200, 0.26), transparent 70%);
    filter: blur(26px);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

main {
    display: block;
}

.container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: var(--space-8) 0;
}

/* =========================================
   NAVBAR & NAVIGATION
   ========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(7, 28, 42, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* KIRI: BRAND */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #fff, #8cdcff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    flex-shrink: 0;
}

/* TENGAH: MENU */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.navbar-link {
    padding: 8px 16px;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.navbar-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-link.is-active {
    color: var(--color-brand);
    background: rgba(47, 154, 200, 0.1);
}

.navbar-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 4px;
    background: var(--color-brand);
}

/* KANAN: USER INFO & ACTIONS */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-user-info:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.navbar-user-info.is-active {
    background: rgba(47, 154, 200, 0.08);
    border-color: rgba(47, 154, 200, 0.4);
    box-shadow: 0 0 15px rgba(47, 154, 200, 0.2);
}

.navbar-user-info.is-active .navbar-user-name {
    color: #8cdcff;
}

.navbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f9ac8, #123348);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.btn-logout {
    border-color: rgba(255, 111, 134, 0.3);
    color: #ffb3c0;
}

.btn-logout:hover {
    background: rgba(255, 111, 134, 0.1);
    border-color: rgba(255, 111, 134, 0.5);
    color: #fff;
}

/* RESPONSIVE: HAMBURGER TOGGLE */
.navbar-toggle-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar-toggle-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .navbar-toggle-btn {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(7, 28, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        visibility: hidden;
    }

    .navbar-user {
        display: none; /* Can be handled inside menu or hidden on mobile for simplicity, but let's hide navbar-user entirely except inside menu or just let user focus on menu */
    }

    .navbar-toggle-checkbox:checked ~ .navbar-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-user {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 24px;
        right: 24px;
        justify-content: space-between;
        background: rgba(18, 51, 72, 0.9);
        padding: 16px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1002;
    }

    .navbar-toggle-checkbox:checked ~ .navbar-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar-toggle-checkbox:checked ~ .navbar-toggle-btn span:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle-checkbox:checked ~ .navbar-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.top-links,
.guest-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--color-text);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(47, 154, 200, 0.28), rgba(47, 154, 200, 0.18)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.06em;
}

.logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.nav-link,
.chip,
.status-pill,
.role-admin,
.role-user {
    border-radius: var(--radius-pill);
}

.nav-link {
    padding: 10px 16px;
    color: var(--color-text-soft);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.user-chip {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.user-chip-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.user-chip-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-chip-copy strong {
    font-size: 0.95rem;
}

.user-chip-copy span {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 18px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #04131d;
    background: linear-gradient(135deg, #56c5f5 0%, var(--color-brand) 52%, #2d8ab4 100%);
    box-shadow: 0 16px 30px rgba(47, 154, 200, 0.28);
}

.btn-outline {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    color: var(--color-text);
    background: linear-gradient(135deg, #ff7288, #df5069);
    box-shadow: 0 16px 28px rgba(223, 80, 105, 0.24);
}

.btn-small {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-soft);
    font-size: 0.86rem;
}

.hero-shell {
    padding: 28px 0 36px;
}

.hero-panel,
.page-banner,
.form-card,
.card,
.history-panel,
.account-sidebar,
.account-section,
.dashboard-stat {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-panel);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(7, 28, 42, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.hero-panel::before,
.page-banner::before,
.form-card::before,
.card::before,
.account-sidebar::before,
.account-section::before,
.dashboard-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 32%);
    pointer-events: none;
}

.hero-panel {
    min-height: calc(100vh - 128px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 30px;
    align-items: stretch;
    padding: clamp(28px, 4vw, 48px);
}

.hero-copy,
.page-banner-copy,
.account-sidebar,
.account-section,
.card-body,
.history-hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow,
.history-kicker,
.history-panel-kicker,
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #d7eefd;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.poster-title,
.section-header h1,
.section-header h2,
.history-hero h1,
.history-panel-header h2,
.account-title {
    letter-spacing: -1px;
    line-height: 0.92;
}

.poster-title {
    margin-top: 22px;
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: clamp(5rem, 10vw, 8.8rem);
    line-height: 0.88;
}

.poster-title span {
    display: block;
}

.hero-description,
.section-header p,
.card-body p,
.muted,
.history-hero p,
.history-panel-header p,
.account-subtitle,
.footer-brand p {
    color: var(--color-text-soft);
    line-height: 1.75;
}

.hero-description {
    max-width: 560px;
    margin: 20px 0 24px;
    font-size: 1.04rem;
}

.hero-meta,
.hero-actions,
.toolbar,
.pagination,
.action-group,
.history-form-actions,
.top-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat,
.history-stat-card,
.dashboard-stat,
.account-mini-card {
    padding: 18px;
    border-radius: var(--radius-card);
    background: rgba(6, 22, 33, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stat span,
.history-stat-card span,
.dashboard-stat span,
.account-mini-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.hero-stat strong,
.history-stat-card strong,
.dashboard-stat strong,
.account-mini-card strong {
    font-size: clamp(1.25rem, 2vw, 2rem);
}

.hero-visual {
    position: relative;
    min-height: 100%;
    border-radius: calc(var(--radius-panel) - 10px);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 28, 42, 0.04), rgba(7, 28, 42, 0.72)),
        linear-gradient(90deg, transparent 0%, transparent 68%, rgba(242, 181, 55, 0.85) 68%, rgba(242, 181, 55, 0.85) 73%, transparent 73%);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: auto -20% -16% 12%;
    height: 220px;
    background: radial-gradient(circle, rgba(47, 154, 200, 0.28), transparent 68%);
    filter: blur(24px);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 280px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(6, 22, 33, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-overlay-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.hero-overlay-card p {
    color: var(--color-text-soft);
    line-height: 1.6;
    font-size: 0.92rem;
}

.section-header {
    margin-bottom: 26px;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(3rem, 5vw, 4.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    max-width: 760px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered p {
    margin-inline: auto;
}

.page-banner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    padding: clamp(24px, 3vw, 36px);
    margin-bottom: 24px;
}

.page-banner-copy h1 {
    font-size: clamp(3.6rem, 7vw, 6.6rem);
    font-family: "Bebas Neue", "Impact", sans-serif;
    margin: 18px 0 12px;
    line-height: 0.9;
}

.page-banner-visual {
    border-radius: 28px;
    overflow: hidden;
    min-height: 260px;
    background:
        linear-gradient(180deg, rgba(7, 28, 42, 0.12), rgba(7, 28, 42, 0.76)),
        linear-gradient(90deg, transparent 0%, transparent 76%, rgba(242, 181, 55, 0.8) 76%, rgba(242, 181, 55, 0.8) 80%, transparent 80%);
    position: relative;
}

.page-banner-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--product-card-min)), var(--product-card-max)));
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.card,
.form-card,
.account-section {
    border-radius: var(--radius-card);
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-strong);
}

.card-media {
    position: relative;
    min-height: 280px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
    margin: 14px;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 19, 29, 0.02), rgba(5, 19, 29, 0.86));
}

.card-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.category-card .card-body {
    padding-top: 0;
}

.category-label {
    position: absolute;
    inset: auto 22px 20px 22px;
    z-index: 1;
}

.category-label h3,
.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.category-label p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #8cdcff;
}

.price span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-good,
.status-done {
    color: #083321;
    background: rgba(66, 216, 166, 0.95);
}

.badge-warn,
.status-waiting {
    color: #362100;
    background: rgba(242, 181, 55, 0.95);
}

.status-confirmed {
    color: #02141d;
    background: rgba(143, 232, 255, 0.95);
}

.status-active {
    color: #fff;
    background: rgba(155, 89, 182, 0.95);
}

.status-orange {
    color: #fff;
    background: rgba(230, 126, 34, 0.95);
}

.badge-danger,
.status-cancelled {
    color: #fff4f6;
    background: rgba(255, 111, 134, 0.95);
}

.form-card,
.account-section,
.history-panel {
    padding: 28px;
}

.section-mini-header {
    margin-bottom: 18px;
}

.section-mini-header h2,
.history-panel-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 10px;
    margin-bottom: 8px;
    font-weight: 800;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.input-group label {
    color: #d9eef7;
    font-weight: 600;
    font-size: 0.94rem;
}

.input-group input,
.input-group textarea,
.input-group select,
.custom-dropdown-trigger {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 18, 27, 0.76);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: rgba(86, 197, 245, 0.85);
    box-shadow: 0 0 0 4px rgba(47, 154, 200, 0.14);
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #7d9dad;
}

.grid-2,
.grid-3,
.detail-grid,
.checkout-grid,
.admin-layout,
.history-hero,
.account-layout,
.account-grid {
    display: grid;
    gap: 18px;
}

.grid-2,
.detail-grid,
.checkout-grid,
.history-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-layout {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}

.account-layout {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
}

.account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-image-wrap {
    padding: 22px;
    border-radius: 28px;
    background: rgba(4, 18, 27, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-image-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.info-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-soft);
    line-height: 1.6;
}

.info-item strong {
    color: var(--color-text);
}

.status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status-radio {
    display: none;
}

.status-box {
    min-width: 130px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-soft);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.status-box:hover,
.status-radio:checked + .status-box {
    color: #04131d;
    background: linear-gradient(135deg, #63cffc, var(--color-brand));
    border-color: transparent;
    transform: translateY(-2px);
}

.filter-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-action .btn {
    margin-left: auto;
}

.product-filter-card {
    padding: 22px 24px;
}

.product-filter-card .section-mini-header {
    margin-bottom: 14px;
}

.product-filter-card .section-mini-header h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.product-filter-card .section-mini-header p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 14px 16px;
    flex-wrap: wrap;
}

.product-filter-form .filter-layout {
    flex: 1 1 720px;
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1fr);
    gap: 14px 16px;
    align-items: end;
}

.product-filter-form .input-group {
    gap: 8px;
    margin-bottom: 0;
}

.product-filter-form .input-group label {
    font-size: 0.88rem;
}

.product-filter-form .input-group input {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
}

.product-filter-form .status-filter {
    gap: 10px;
}

.product-filter-form .status-box {
    min-width: 112px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.product-filter-form .filter-action {
    margin-left: auto;
}

.product-filter-form .filter-action .btn {
    min-height: 46px;
    padding: 11px 18px;
    margin-left: 0;
    border-radius: 14px;
    white-space: nowrap;
}

.toolbar {
    margin-bottom: 18px;
    align-items: center;
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(255, 111, 134, 0.12);
    border-color: rgba(255, 111, 134, 0.34);
}

.alert-success {
    background: rgba(66, 216, 166, 0.12);
    border-color: rgba(66, 216, 166, 0.32);
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 18, 27, 0.5);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

th {
    color: #98e6ff;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.table-subtext {
    margin-top: 6px;
    color: var(--color-text-muted);
    line-height: 1.55;
    font-size: 0.86rem;
}

.history-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-hero {
    padding: 30px;
    border-radius: var(--radius-panel);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(7, 28, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-hero h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
    margin: 16px 0 10px;
    font-family: "Bebas Neue", "Impact", sans-serif;
}

.history-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.history-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.history-empty {
    text-align: center;
    align-items: center;
}

.history-empty h2 {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.pagination {
    margin-top: 20px;
    justify-content: center;
}

.role-admin,
.role-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.role-admin {
    color: #362100;
    background: rgba(242, 181, 55, 0.95);
}

.role-user {
    color: #03141c;
    background: rgba(143, 232, 255, 0.95);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.dashboard-stat {
    padding: 22px;
}

.dashboard-stat strong {
    display: block;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.account-sidebar,
.account-section {
    padding: 28px;
}

.account-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.account-avatar {
    width: 180px;
    height: 180px;
    border-radius: 36px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.account-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
}

.account-subtitle {
    margin-bottom: 18px;
}

.account-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.account-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.account-mini-card {
    width: 100%;
}

.account-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-note {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.footer {
    margin-top: 36px;
    padding: 36px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 12, 18, 0.46);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.footer h2 {
    font-size: 2rem;
    margin: 14px 0 10px;
    letter-spacing: -0.04em;
}

.footer h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-soft);
}

.footer-links a:hover {
    color: #9fe6ff;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

@media (max-width: 1080px) {
    .hero-panel,
    .page-banner,
    .history-hero,
    .detail-grid,
    .checkout-grid,
    .admin-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kategori-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .produk-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 300px));
    }

    .product-filter-form .filter-layout {
        grid-template-columns: minmax(220px, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar {
        padding: 14px 0;
    }

    .topbar-inner,
    .topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions,
    .top-links,
    .guest-actions {
        width: 100%;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-stats,
    .account-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .history-stat-grid {
        grid-template-columns: 1fr;
    }

    .history-panel-header,
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-filter-form {
        align-items: stretch;
    }

    .product-filter-form .filter-layout,
    .product-filter-form .filter-action {
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .container,
    .topbar-inner {
        width: min(1240px, calc(100% - 28px));
    }

    .section {
        padding: 54px 0;
    }

    .hero-panel,
    .page-banner,
    .form-card,
    .history-panel,
    .account-sidebar,
    .account-section {
        padding: 22px;
    }

    .kategori-grid,
    .dashboard-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .produk-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .product-filter-card {
        padding: 20px;
    }

    .product-filter-form {
        gap: 12px;
    }

    .product-filter-form .filter-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-filter-form .status-filter {
        gap: 8px;
    }

    .product-filter-form .status-box {
        min-width: calc(50% - 4px);
    }

    .product-filter-form .filter-action .btn {
        width: 100%;
    }

    .card-media {
        min-height: 230px;
        margin: 12px 12px 0;
    }

    .poster-title {
        font-size: clamp(4.2rem, 20vw, 5.5rem);
    }

    .page-banner-copy h1,
    .history-hero h1 {
        font-size: clamp(3rem, 18vw, 4.2rem);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-box {
        min-width: calc(50% - 6px);
    }

    .user-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .card-meta,
    .pagination,
    .action-group,
    .history-form-actions,
    .top-links {
        flex-direction: column;
        align-items: stretch;
    }

    .card-meta .btn,
    .pagination .btn,
    .action-group .btn,
    .action-group form,
    .action-group form .btn,
    .history-form-actions .btn,
    .top-links .btn {
        width: 100%;
    }

    .badge {
        top: 18px;
        right: 18px;
    }
}
