:root {
    --primary: #c0182e;       /* merah crimson logo */
    --primary-dark: #8f1020;
    --secondary: #00b4ff;     /* biru elektrik logo */
    --background: #080c1a;    /* navy dark, warna latar logo */
    --surface: #111627;
    --surface-hover: #1a2035;
    --text: #f0f4ff;
    --text-muted: #8899bb;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    background: #7b00ff; /* ungu dari lingkaran logo */
    top: -200px;
    left: -200px;
}

body::after {
    background: #00b4ff; /* biru elektrik logo */
    bottom: -200px;
    right: -200px;
}

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

/* Navbar */
.navbar {
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 5% 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(248, 37, 255, 0.1);
    border: 1px solid rgba(248, 37, 255, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    width: 500px;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) perspective(1000px) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-10deg) rotateX(5deg); }
    100% { transform: translateY(0px) perspective(1000px) rotateY(-10deg) rotateX(5deg); }
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 5%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 35px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 8px;
}

/* Filter Tabs */
.filter-tabs {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 5px;
    border-radius: 14px;
    display: flex;
    gap: 4px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(192, 24, 46, 0.35);
}

/* Game Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ====== Marquee / Ticker Section ====== */
.marquee-section {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem;
    /* Fade edges kiri & kanan */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-row {
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: default;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}

/* Kiri ke Kanan */
.marquee-ltr {
    animation: scrollLTR 30s linear infinite;
}

/* Kanan ke Kiri */
.marquee-rtl {
    animation: scrollRTL 30s linear infinite;
}

@keyframes scrollLTR {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRTL {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-card {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.marquee-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(248, 37, 255, 0.2);
    border-color: rgba(248, 37, 255, 0.5);
}

.card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: block;
    group: hover;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(248,37,255,0.2) 0%, rgba(0,240,255,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(248, 37, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(248, 37, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, var(--surface) 80%, transparent);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-action {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.card:hover .card-action {
    opacity: 1;
    transform: translateX(0);
}

/* Product Grid for inner page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-item {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.product-item > * {
    position: relative;
    z-index: 1;
}

.product-item:hover, .product-item:has(input[type="radio"]:checked) {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-item:hover::before, .product-item:has(input[type="radio"]:checked)::before {
    opacity: 0.15;
}

.product-item:has(input[type="radio"]:checked) {
    border: 1px solid var(--secondary);
}

.product-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-item:has(input[type="radio"]:checked) .product-name {
    color: var(--secondary);
}

.product-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 700;
}

.product-item:has(input[type="radio"]:checked) .product-price {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 37, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
}

.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Panels */
.glass-panel {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 20px;
}

/* Tables (for Admin) */
.table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.25rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
th { background: rgba(0, 0, 0, 0.2); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;}
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Footer */
footer {
    background: rgba(9, 9, 11, 0.9);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* responsive */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero-image img { width: 100%; }
}

/* Utility */
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }

/* ====== Search Bar ====== */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-bottom: 0.5rem;
    z-index: 200;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 1.2rem;
    gap: 0.8rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s;
}

.search-box:focus-within .search-icon {
    color: var(--secondary);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 1rem 0;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-clear:hover {
    background: rgba(248, 37, 255, 0.2);
    color: var(--primary);
}

/* Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.search-dropdown.open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.search-dropdown::-webkit-scrollbar { width: 4px; }
.search-dropdown::-webkit-scrollbar-track { background: transparent; }
.search-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    cursor: pointer;
}

.search-item:last-child { border-bottom: none; }

.search-item:hover,
.search-item.active {
    background: rgba(0, 240, 255, 0.08);
}

.search-item-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-name mark {
    background: transparent;
    color: var(--secondary);
    font-weight: 800;
}

.search-item-pub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-item-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.search-item:hover .search-item-arrow,
.search-item.active .search-item-arrow {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(0);
}

.search-no-result {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== Modal Cara Beli ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-box {
    background: rgba(18, 18, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 540px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(248, 37, 255, 0.08);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(248, 37, 255, 0.15);
    color: var(--primary);
    border-color: rgba(248, 37, 255, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.modal-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps */
.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    transition: background 0.2s ease;
    position: relative;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    position: absolute;
    top: 1rem;
    left: -0.5rem;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(248, 37, 255, 0.4);
}

.step-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

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

.step-divider {
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(248,37,255,0.3), rgba(0,240,255,0.3));
    margin-left: 2.7rem;
}

.modal-footer-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
