/* =============================================
   GAMESTORE — Esports Modern Theme
   Clean, tegas, kompetitif. Aksen hijau neon.
   ============================================= */

:root {
    --primary: #16e07a;
    --primary-dark: #0fb863;
    --primary-soft: rgba(22, 224, 122, 0.12);
    --on-primary: #07170d;
    --secondary: #0bcf86;
    --dark: #0a0d10;
    --dark2: #11151a;
    --dark3: #161b22;
    --card: #12161b;
    --card2: #181d24;
    --text: #eef2f5;
    --text-muted: #8a94a3;
    --success: #16e07a;
    --warning: #f5a623;
    --danger: #ff4d5e;
    --info: #3b9eff;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(22, 224, 122, 0.4);
    --radius: 8px;
    --radius-tag: 4px;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --font-head: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   SITE HEADER — Glass HUD, futuristik & simpel
   Sticky, blur kaca, aksen neon dinamis (mengikuti
   warna toko dari admin lewat --primary/--secondary)
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 13, 16, 0.78);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* Garis glow tipis di dasar header — elemen signature */
.header-scan {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--primary) 90%, #fff 10%) 50%,
        transparent 100%);
    animation: headerScanPulse 3.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes headerScanPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* --- BARIS 1: Logo + Search + Aksi --- */
.header-top {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.header-top-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 9px color-mix(in srgb, var(--primary) 65%, transparent));
}
.logo-text {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(120deg, var(--text) 20%, var(--primary) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* Search Bar — pill kaca dengan glow saat fokus */
.header-search {
    flex: 1;
    min-width: 0;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.search-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: color-mix(in srgb, var(--dark3) 94%, var(--primary) 3%);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding-left: 15px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.search-wrap:focus-within {
    border-color: color-mix(in srgb, var(--primary) 60%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
    background: var(--dark3);
}
.search-wrap svg {
    color: #fff;
    flex-shrink: 0;
}

.search-wrap:focus-within svg {
    color: #fff !important;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 11px 10px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    margin: 3px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.search-btn:hover { filter: brightness(1.12); transform: scale(1.05); }

/* Action buttons — pil kaca ringkas, satu baris ikon + label */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.action-btn:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 9%, transparent);
    border-color: var(--border);
}
.action-wa {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}
.action-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); color: #fff; }

/* Grup ikon bulat: Keranjang + Cek Order, ditempel dekat profil/masuk */
.hdr-icon-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dark3) 92%, var(--primary) 3%);
    border: 1px solid var(--border);
    margin-right: 2px;
}
.hdr-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.hdr-icon-btn:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.hdr-icon-btn::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #0d1016;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 50;
}
.hdr-icon-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- BARIS 2: Navigasi --- */
.header-nav {
    background: color-mix(in srgb, var(--dark3) 96%, var(--primary) 4%);
    border-bottom: 1px solid var(--border);
}
.header-nav-inner {
    display: flex;
    align-items: center;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}
.nav-item::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 0; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 70%, transparent);
    transition: width 0.25s ease;
}
.nav-item:hover { color: var(--text); border-bottom-color: transparent; }
.nav-item:hover::after { width: 55%; }
.nav-active { color: var(--primary) !important; border-bottom-color: transparent !important; }
.nav-active::after { width: 55% !important; }

/* Mega dropdown */
.nav-mega-wrap { position: relative; }
.nav-mega-btn { user-select: none; }

.mega-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    z-index: 500;
    min-width: 420px;
    animation: megaFadeIn 0.15s ease;
}
.mega-dropdown.open { display: block; }
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mega-inner {
    display: flex;
    gap: 0;
    padding: 20px;
}
.mega-col {
    flex: 1;
    min-width: 160px;
}
.mega-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.mega-link:hover { background: var(--dark2); color: var(--text); }
.mega-link-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.mega-link-all {
    margin-top: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}
.mega-link-all:hover { background: var(--primary-soft); color: var(--primary); }
.mega-divider {
    width: 1px;
    background: var(--border);
    margin: 0 16px;
    align-self: stretch;
}

/* Legacy compat — btn-wa masih dipakai di footer */
.btn-wa {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: var(--radius-tag);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}
.btn-wa:hover { opacity: 0.85; }

/* ====== FLASH MESSAGE ====== */
.flash {
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.flash-success { background: rgba(22, 224, 122, 0.12); border-bottom: 2px solid var(--success); color: var(--success); }
.flash-error { background: rgba(255, 77, 94, 0.12); border-bottom: 2px solid var(--danger); color: var(--danger); }

/* ====== HERO ====== */
.hero {
    background:
        radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 55%, #0c0f12 100%);
    background-size: 24px 24px, 100% 100%;
    padding: 90px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, rgba(22, 224, 122, 0.16), transparent 70%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
    opacity: 0.8;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.18;
    margin-bottom: 16px;
    position: relative;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ====== HERO MINI (Banner ringkas Beranda — fokus produk) ====== */
.hero-mini {
    background:
        radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 55%, #0c0f12 100%);
    background-size: 24px 24px, 100% 100%;
    padding: 52px 0 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-mini::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(22, 224, 122, 0.16), transparent 70%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}
.hero-mini::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
    opacity: 0.8;
}
.hero-mini h1 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    position: relative;
}
.hero-mini h1 span { color: var(--primary); }
.hero-mini p { color: var(--text-muted); font-size: 0.95rem; position: relative; }
.hero-mini .mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    background: var(--primary-soft);
    border: 1px solid var(--border-strong);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: var(--radius-tag);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 16px rgba(22, 224, 122, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 224, 122, 0.35); color: var(--on-primary); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success {
    background: var(--success);
    color: var(--on-primary);
}
.btn-success:hover { opacity: 0.85; color: var(--on-primary); }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.btn-block { width: 100%; justify-content: center; }

/* ====== STATS BAR ====== */
.stats-bar {
    background: var(--card);
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.stats-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ====== SECTION ====== */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); }

/* ====== KATEGORI TABS ====== */
.kategori-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}
.tab-btn {
    padding: 9px 22px;
    border-radius: var(--radius-tag);
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}
.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: var(--on-primary);
}

/* ====== PRODUCT CARD ====== */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.produk-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    position: relative;
}
.produk-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s;
}
.produk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.produk-card:hover::before { opacity: 1; }
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--dark3), var(--card2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: var(--radius-tag);
    letter-spacing: 0.05em;
}
.card-badge.new { background: var(--primary); color: var(--on-primary); }
.card-badge.promo { background: var(--warning); color: #1a1300; }
.card-body { padding: 16px; }
.card-kategori { font-family: var(--font-head); font-size: 0.78rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.card-stok { font-size: 0.75rem; color: var(--text-muted); }
.card-stok.habis { color: var(--danger); }

/* ====== PRODUCT DETAIL ====== */
.detail-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card2);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid var(--border);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-badge { padding: 5px 14px; border-radius: var(--radius-tag); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.meta-badge.kategori { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border); }
.meta-badge.stok-ok { background: rgba(22, 224, 122, 0.12); color: var(--success); border: 1px solid rgba(22, 224, 122, 0.3); }
.meta-badge.stok-habis { background: rgba(255, 77, 94, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 94, 0.3); }
.detail-price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.detail-desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.detail-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.detail-box h4 { font-family: var(--font-head); font-size: 0.85rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.detail-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* ====== FORM ====== */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group label span { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark2);
    border: 2px solid var(--border);
    border-radius: var(--radius-tag);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }

/* ====== CHECKOUT SUMMARY ====== */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.order-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.order-summary h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.qris-box { text-align: center; padding: 24px; }
.qris-box img { width: 200px; height: 200px; object-fit: contain; border-radius: 8px; background: white; padding: 8px; }
.qris-placeholder { width: 200px; height: 200px; background: white; border-radius: 8px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #333; font-weight: 600; text-align: center; padding: 16px; }

/* ====== UPLOAD ====== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: rgba(22, 224, 122, 0.05); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-area p { color: var(--text-muted); font-size: 0.9rem; }
.upload-preview { max-width: 200px; border-radius: 8px; margin-top: 12px; display: none; }

/* ====== CEK ORDER ====== */
.cek-order-card { max-width: 500px; margin: 0 auto; }
.order-status-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.status-icon { font-size: 4rem; margin-bottom: 16px; }
.status-badge {
    display: inline-block;
    padding: 7px 22px;
    border-radius: var(--radius-tag);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}
.status-menunggu { background: rgba(245, 166, 35, 0.12); color: var(--warning); border: 1px solid rgba(245, 166, 35, 0.3); }
.status-diproses { background: rgba(59, 158, 255, 0.12); color: var(--info); border: 1px solid rgba(59, 158, 255, 0.3); }
.status-selesai { background: rgba(22, 224, 122, 0.12); color: var(--success); border: 1px solid rgba(22, 224, 122, 0.3); }
.status-dibatalkan { background: rgba(255, 77, 94, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 94, 0.3); }
.order-detail-list { text-align: left; margin-top: 24px; }
.order-detail-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.order-detail-item:last-child { border-bottom: none; }
.order-detail-item .label { color: var(--text-muted); }

/* ====== FOOTER ====== */
.footer {
    background: var(--dark2);
    border-top: 2px solid var(--primary);
    padding: 48px 0 24px;
    margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.footer h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--primary); }
.btn-wa-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-tag);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 12px;
    transition: opacity 0.2s;
}
.btn-wa-footer:hover { opacity: 0.85; color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ====== ADMIN ====== */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: var(--dark2);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-logo h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.sidebar-logo small { color: var(--text-muted); font-size: 0.75rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(22, 224, 122, 0.08);
    color: var(--text);
    border-left-color: var(--primary);
}
.admin-main { margin-left: 250px; padding: 32px; flex: 1; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.admin-header p { color: var(--text-muted); }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-card .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ====== TABLE ====== */
.table-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
table { width: 100%; border-collapse: collapse; }
table th { padding: 12px 16px; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.875rem; vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(22, 224, 122, 0.04); }

/* ====== BADGE ====== */
.badge { display: inline-block; padding: 4px 11px; border-radius: var(--radius-tag); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-success { background: rgba(22, 224, 122, 0.12); color: var(--success); }
.badge-warning { background: rgba(245, 166, 35, 0.12); color: var(--warning); }
.badge-danger { background: rgba(255, 77, 94, 0.12); color: var(--danger); }
.badge-info { background: rgba(59, 158, 255, 0.12); color: var(--info); }
.badge-purple { background: rgba(59, 158, 255, 0.12); color: var(--info); }

/* ====== PAGE HEADER ====== */
.page-header {
    background: linear-gradient(135deg, var(--dark2), var(--dark3));
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    margin-bottom: 0;
}
.page-header h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; }
.page-header p { color: var(--text-muted); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .header-top-inner { grid-template-columns: auto 1fr; gap: 12px; }
}
@media (max-width: 768px) {
    .detail-layout, .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .main-nav { gap: 0; overflow-x: auto; }
    .nav-item { padding: 10px 10px; font-size: 0.75rem; }
    .mega-dropdown { min-width: 280px; left: 0; right: 0; }
    .mega-inner { flex-direction: column; }
    .mega-divider { width: 100%; height: 1px; margin: 12px 0; }
    .admin-layout { flex-direction: column; }
    .sidebar { position: static; width: 100%; height: auto; }
    .admin-main { margin-left: 0; padding: 20px; }
    .action-btn span { display: none; }

    /* --- Header mobile: satu baris ikon rapi, dipindah ke sini
       supaya jadi satu sumber aturan (dulu duplikat di includes/header.php
       dan saling tabrakan dengan aturan display:none di atas). --- */
    .header-top { padding: 12px 0; }
    .header-top-inner {
        display: flex; flex-wrap: wrap;
        justify-content: space-between; align-items: center; gap: 10px;
    }
    .site-logo { order: 1; flex-shrink: 0; }
    .site-logo span { width: 145px !important; height: 36px !important; overflow: visible !important; }
    .site-logo img { height: 68px !important; margin: -16px 0 !important; }
    .header-actions {
        order: 2; display: flex !important; flex-wrap: nowrap; align-items: center;
        gap: 6px !important; flex-shrink: 0;
        overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    }
    .header-actions::-webkit-scrollbar { display: none !important; height: 0 !important; }
    .header-actions .action-wa span,
    .header-actions .action-login span { display: none !important; }
    .header-actions .action-wa,
    .header-actions .action-login {
        padding: 0 !important; border-radius: 50% !important;
        width: 38px; height: 38px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        background: color-mix(in srgb, var(--dark3, #161b22) 90%, var(--primary) 4%) !important;
        border: 1px solid var(--border, #2A303C) !important;
        box-shadow: none !important;
    }
    .header-actions .action-wa { background: linear-gradient(135deg, #22c55e, #16a34a) !important; border: none !important; }
    .hdr-icon-group { padding: 3px; gap: 2px; flex-shrink: 0; }
    .hdr-icon-btn { width: 34px; height: 34px; }
    .hdr-icon-btn::after { display: none; }
    .profile-name { display: none !important; }
    .action-profile { padding: 3px !important; border-radius: 50% !important; border: 1px solid var(--border, #2A303C); flex-shrink: 0; }
    #profileArrow { display: none !important; }
    .header-search { order: 3; width: 100% !important; flex: 0 0 100%; margin: 0; }
    .search-wrap { width: 100%; }
    .header-nav {
        overflow-x: auto; overflow-y: hidden;
        white-space: nowrap; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .header-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
    .header-nav-inner { padding: 0 12px !important; }
    .main-nav { display: flex; gap: 20px; padding: 12px 0; align-items: center; }
    .nav-item { font-size: 13.5px !important; padding: 4px 0 !important; }
}


/* Dropdown legacy compat (tidak dipakai di header baru, tapi jaga-jaga) */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { background: none; border: none; color: inherit; font-size: 0.85rem; font-family: inherit; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; padding: 0; font-weight: 600; }
.nav-dropdown-menu { display: none; }
.nav-dropdown-menu.open { display: block; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* =============================================
   BANNER PENGUMUMAN
   ============================================= */
.banner-pengumuman {
    background: var(--primary);
    color: var(--on-primary);
    text-align: center;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}