/* GLOBAL STYLING & VARIABLES DEF */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #060608;
    --card-bg: rgba(14, 14, 18, 0.7);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(16px);
    --shadow-premium: 0 15px 45px 0 rgba(0, 0, 0, 0.65);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --neon-qris: #00e5ff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 90px;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 20% 15%, rgba(255, 193, 7, 0.02) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(0, 229, 255, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* LIVE BROADCAST ANNOUNCEMENT BAR */
.live-announcement-bar {
    background: linear-gradient(90deg, #ff9800, #ffc107);
    color: #000000;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 8px 15px;
    box-shadow: 0 4px 15px rgba(255,152,0,0.25);
    z-index: 998;
    position: relative;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.broadcast-icon {
    font-size: 0.95rem;
    animation: bounceIcon 1.5s infinite alternate;
}

@keyframes bounceIcon {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* LOADING SCREEN SETUP */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container { text-align: center; }
.premium-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 0.9s cubic-bezier(0.4, 0.1, 0.4, 0.9) infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 1.15rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* STICKY HEADER LAYOUT */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper { display: flex; align-items: center; gap: 12px; }
.logo-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.brand-info { display: flex; flex-direction: column; }
.brand-title { font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.brand-dev { font-size: 0.75rem; color: var(--text-secondary); }

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.hamburger-btn:hover { background: rgba(255, 255, 255, 0.06); }

/* SIDEBAR AND DRAWER MECHANISM */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -290px;
    width: 290px;
    height: 100%;
    background: rgba(9, 9, 12, 0.94);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--card-border);
    z-index: 2001;
    transition: var(--transition-smooth);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active { right: 0; }
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.sidebar-header h3 { font-size: 1.05rem; font-weight: 500; }
.close-sidebar { background: none; border: none; color: var(--text-secondary); font-size: 1.25rem; cursor: pointer; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.nav-item i { width: 22px; text-align: center; font-size: 1rem; }
.nav-item:hover, .nav-item.active { background: rgba(255, 255, 255, 0.07); color: var(--text-primary); }
.admin-nav-btn { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 15px; padding-top: 16px; color: #ffc107 !important; font-weight: 500; }

/* CONTENT WRAPPER */
.content-container { max-width: 820px; margin: 0 auto; padding: 30px 16px; }
.app-section { display: none; }
.app-section.active { display: block; }

/* TRANSPARENT GLASS CARDS */
.transparent-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.transparent-card:hover { border-color: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.section-title { font-size: 1.35rem; font-weight: 600; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--text-primary); padding-left: 12px; }

/* PREMIUM HERO BANNER */
.premium-banner {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.85) 0%, rgba(6, 6, 8, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 38px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.premium-banner h1 { font-size: 1.55rem; font-weight: 700; margin-bottom: 10px; }
.premium-banner p { font-size: 0.9rem; color: var(--text-secondary); }
.headline-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* INTERACTIVE FORMS */
.tool-header { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-group label { font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); }
.input-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.input-group input:focus { outline: none; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }

/* RIPPLE BUTTON ENGINE */
.ripple-btn {
    position: relative;
    overflow: hidden;
    background: var(--text-primary);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.ripple-btn:hover { opacity: 0.94; box-shadow: 0 4px 18px rgba(255, 255, 255, 0.14); }
.ripple-span { position: absolute; border-radius: 50%; background: rgba(0, 0, 0, 0.14); transform: scale(0); animation: ripple-effect 0.55s linear; pointer-events: none; }
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

/* CANVAS RESPONSIVE PREVIEW */
.preview-box { margin-top: 20px; text-align: center; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 12px; display: none; }
.preview-box.active { display: block; }
.preview-box img { max-width: 100%; border-radius: 10px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.05); }
.download-btn { background: rgba(255,255,255,0.07); color: var(--text-primary); border: 1px solid var(--card-border); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* SWAP FILE DESIGN & QRIS EFFECT COMPONENT */
.product-swap-hero { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%); }
.product-file-icon { width: 56px; height: 56px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: #ffc107; }
.product-notice-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.product-notice-info p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }

.qris-trigger-wrapper { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.qris-trigger-label { font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); }
.qris-payment-toggle-btn {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon-qris);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.qris-payment-toggle-btn:hover { background: rgba(0, 229, 255, 0.15); box-shadow: 0 0 15px rgba(0,229,255,0.2); }

/* COOL HIGH TECH QRIS CONTAINER EXPAND ANIMATION */
.cool-qris-modal-container {
    margin-bottom: 20px;
    animation: zoomInGlow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes zoomInGlow {
    from { opacity: 0; transform: scale(0.92); filter: blur(4px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.qris-neon-box {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 18px;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
    border: 2px solid var(--neon-qris);
}

.qris-header-pill { background: #000; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 12px; letter-spacing: 1px; }
.qris-matrix-img { width: 100%; height: auto; display: block; border-radius: 8px; margin-bottom: 12px; }
.qris-price-tag { font-size: 0.85rem; color: #333; }
.qris-price-tag strong { font-size: 1.1rem; color: #000; }

.style-upload-field input { padding: 10px; font-size: 0.82rem; }
.action-checkout-btn { background: #ffc107; color: #000; font-weight: 700; margin-top: 10px; }

/* STATUS MESSAGES BOXES */
.status-box { margin-top: 16px; padding: 12px; border-radius: 12px; font-size: 0.86rem; text-align: center; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); }

/* TRANSACTIONS LOG VIEWPORT */
.history-list-wrapper { display: flex; flex-direction: column; gap: 14px; }
.empty-info { text-align: center; color: var(--text-muted); font-size: 0.88rem; padding: 25px 0; }
.tx-card { display: flex; flex-direction: column; gap: 10px; }
.tx-row-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; }
.tx-id { font-size: 0.82rem; font-weight: 600; }
.status-badge { font-size: 0.72rem; padding: 3px 9px; border-radius: 16px; font-weight: 500; }
.status-badge.pending { background: rgba(255, 193, 7, 0.14); color: #ffc107; }
.status-badge.selesai { background: rgba(40, 167, 69, 0.14); color: #28a745; }
.status-badge.ditolak { background: rgba(220, 53, 69, 0.14); color: #dc3545; }
.tx-details-grid { font-size: 0.82rem; color: var(--text-secondary); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* SYSTEM PANELS AND GENERAL SETTINGS SETUP */
.option-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.badge-premium { background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; }
.actions-wrapper { margin-top: 18px; display: flex; gap: 10px; }
.action-btn { padding: 10px 15px; font-size: 0.84rem; }
.font-light-btn { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--card-border); }
.about-logo { width: 56px; height: 56px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); font-size: 1.4rem; font-weight: 700; border-radius: 14px; display: flex; justify-content: center; align-items: center; margin: 0 auto 16px; }
.about-table { width: 100%; margin-bottom: 12px; font-size: 0.88rem; }
.about-table td { padding: 6px 4px; }
.about-table td:first-child { color: var(--text-secondary); width: 35%; }
.about-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }

/* MOBILE RESPONSIVE BOTTOM TOOLBAR */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    z-index: 999;
}

.bottom-nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 0.7rem; gap: 5px; flex: 1; transition: var(--transition-smooth); }
.bottom-nav-item i { font-size: 1.1rem; }
.bottom-nav-item.active { color: var(--text-primary); }

/* TRANSITIONS ANIM */
.fade-in { animation: fadeInAnimation 0.38s ease-out both; }
@keyframes fadeInAnimation { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }

/* ADMINISTRATOR LAYER VIEW MODAL & ROWS */
.admin-body { padding-bottom: 0px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 15px; margin-bottom: 0; }
.stat-icon { width: 42px; height: 42px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1rem; }
.stat-icon.alert-icon { color: #ffc107; }
.stat-icon.success-icon { color: #28a745; }
.stat-icon.user-icon { color: #00e5ff; }
.stat-data h3 { font-size: 1.25rem; font-weight: 600; }
.stat-data span { font-size: 0.72rem; color: var(--text-secondary); }
.table-responsive { width: 100%; overflow-x: auto; }
.premium-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; text-align: left; }
.premium-table th, .premium-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.premium-table th { color: var(--text-secondary); font-weight: 500; }

.admin-btn-group { display: flex; gap: 5px; }
.admin-action-btn { padding: 5px 9px; font-size: 0.7rem; border-radius: 6px; font-weight: 500; cursor: pointer; border: 1px solid var(--card-border); }
.admin-action-btn.view { background: rgba(255,255,255,0.07); color: #fff; }
.admin-action-btn.confirm { background: rgba(40,167,69,0.14); color: #28a745; border-color: rgba(40,167,69,0.2); }
.admin-action-btn.reject { background: rgba(220,53,69,0.14); color: #dc3545; border-color: rgba(220,53,69,0.2); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); z-index: 3000; display: flex; justify-content: center; align-items: center; padding: 16px; }
.modal-content { max-width: 480px; width: 100%; margin-bottom: 0; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.close-modal { background: none; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; }
.modal-proof-img { max-width: 100%; max-height: 380px; border-radius: 8px; display: block; margin: 0 auto; }

/* DESKTOP RESPONSIVE CONFIG ENGINE */
@media(min-width: 769px) {
    body { padding-bottom: 0px; }
    .bottom-nav { display: none; }
    .main-header { position: fixed; top: 0; left: 0; height: 100vh; width: 250px; border-bottom: none; border-right: 1px solid var(--card-border); background: rgba(7, 7, 9, 0.88); }
    .header-container { flex-direction: column; height: 100%; padding: 30px 16px; justify-content: flex-start; gap: 35px; }
    .hamburger-btn { display: none; }
    
    .sidebar-menu { position: fixed; top: 110px; left: 0; width: 250px; height: calc(100vh - 110px); right: auto; border-left: none; background: none; backdrop-filter: none; padding: 0 16px; }
    .sidebar-header { display: none; }
    .content-container { margin-left: 270px; padding-top: 35px; max-width: 880px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
