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

:root {
    --bg-primary: #050810;
    --bg-secondary: #0a0e1a;
    --bg-card: #0d1730;
    --bg-card2: #0f1e3a;
    --blue-electric: #00aaff;
    --blue-bright: #00ccff;
    --blue-glow: #0066cc;
    --gold: #ffd700;
    --gold2: #ffaa00;
    --white: #ffffff;
    --text-dim: #8899bb;
    --border-blue: #1a3a6a;
    --success: #00cc66;
    --danger: #ff3344;
    --warning: #ffcc00;
}

body {
    background-color: var(--bg-primary);
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-bottom: 80px;
    background-image:
        radial-gradient(ellipse at top, #0a1a3a 0%, #050810 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300aaff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #050d20 0%, #0a1535 50%, #060d22 100%);
    border-bottom: 2px solid var(--blue-electric);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--blue-electric);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title .name {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
}

.header-title .sub {
    font-size: 11px;
    color: var(--blue-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lang-toggle {
    background: var(--blue-glow);
    border: 1px solid var(--blue-electric);
    border-radius: 20px;
    padding: 4px 12px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}

.lang-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* MARQUEE */
.marquee-wrapper {
    background: linear-gradient(90deg, #0a1535, #0f1e45, #0a1535);
    border-top: 1px solid var(--border-blue);
    border-bottom: 1px solid var(--border-blue);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.marquee-track .sep {
    color: var(--blue-bright);
    margin: 0 12px;
}

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

/* NOTICE BANNER */
.notice-banner {
    margin: 14px 12px;
    background: linear-gradient(135deg, #0d1a35 0%, #102040 100%);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notice-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--blue-electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notice-brand {
    font-size: 14px;
    font-weight: 800;
    color: var(--blue-bright);
}

.notice-triangle {
    font-size: 48px;
    text-align: center;
    margin: 8px 0;
    filter: drop-shadow(0 0 10px #ff6600);
}

.notice-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
    margin: 8px 0;
}

.notice-highlight {
    background: linear-gradient(135deg, #cc0000, #ff2200);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin: 8px 0;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.notice-sub {
    text-align: center;
    font-size: 12px;
    color: var(--white);
    font-weight: 600;
    margin-top: 8px;
}

/* SECTION TITLE */
.section-title {
    padding: 0 12px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 20px;
}

.product-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
    border: 1px solid var(--border-blue);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.0), rgba(0, 170, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before,
.product-card:active::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--blue-electric);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
    transform: translateY(-2px);
}

.product-card.selected {
    border-color: var(--blue-electric);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

.product-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--blue-electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
}

.product-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-blue);
}

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

.product-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sub {
    font-size: 11px;
    color: var(--blue-bright);
    font-weight: 600;
}

.product-badge {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #070f25 0%, #050810 100%);
    border-top: 2px solid var(--blue-electric);
    display: flex;
    box-shadow: 0 -4px 20px rgba(0, 170, 255, 0.3);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-dim);
    transition: all 0.2s ease;
    gap: 4px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--blue-bright);
}

.nav-item .nav-icon {
    font-size: 22px;
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-item.cs {
    color: var(--success);
}

.nav-item.cs:hover {
    color: #00ff88;
}

/* PAGES */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ORDER FORM PAGE */
.order-page {
    padding: 16px 12px;
}

.product-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
    border: 1px solid var(--border-blue);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.1);
}

.product-hero img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--blue-electric);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.product-hero-info .name {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
}

.product-hero-info .sub {
    font-size: 13px;
    color: var(--blue-bright);
    margin-top: 4px;
}

/* FORM */
.form-section {
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-blue);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--blue-electric);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.25);
}

.form-group select option {
    background: var(--bg-card);
}

/* DENOMINATION GRID */
.denom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.denom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.denom-card:hover,
.denom-card.selected {
    border-color: var(--blue-electric);
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
}

.denom-card.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    color: var(--blue-electric);
    font-size: 12px;
    font-weight: 900;
}

.denom-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 3px;
}

.denom-price {
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
}

/* PAYMENT OPTIONS */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-card:hover,
.payment-card.selected {
    border-color: var(--blue-electric);
    background: rgba(0, 170, 255, 0.1);
}

.payment-card.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    color: var(--blue-electric);
    font-size: 12px;
}

.payment-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.payment-sub {
    font-size: 10px;
    color: var(--text-dim);
}

/* SUBMIT BUTTON */
.submit-btn,
.btn-order {
    width: 100%;
    background: linear-gradient(135deg, var(--blue-glow) 0%, var(--blue-electric) 50%, #0088dd 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
    text-decoration: none;
    display: block;
    text-align: center;
}

.submit-btn:hover,
.btn-order:hover {
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.7);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* HISTORY PAGE */
.history-page {
    padding: 16px 12px;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.history-empty .icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.history-empty p {
    font-size: 14px;
}

.order-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
    border: 1px solid var(--border-blue);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-product-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
}

.order-date {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 204, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.status-success {
    background: rgba(0, 204, 102, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 204, 102, 0.3);
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-blue);
}

.order-detail-item .label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.order-detail-item .value {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.order-trx {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-blue);
    font-size: 12px;
    color: var(--text-dim);
}

.order-trx strong {
    color: var(--gold);
}

/* SUCCESS PAGE */
.success-page {
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--success);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 204, 102, 0.6);
}

.success-sub {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.trx-box {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.trx-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.trx-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.trx-warning {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 51, 68, 0.3);
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    color: #ff6677;
    margin-top: 16px;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--blue-electric);
    border-radius: 12px;
    padding: 14px 30px;
    color: var(--blue-bright);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: linear-gradient(180deg, #0d1a35 0%, #070f22 100%);
    border: 1px solid var(--border-blue);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 2px solid var(--blue-electric);
    width: 100%;
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 170, 255, 0.2);
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border-blue);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 20px;
}

/* GLOW LINE */
.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-electric), transparent);
    margin: 16px 0;
    border-radius: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-blue);
    border-radius: 2px;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid rgba(0, 204, 102, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 51, 68, 0.1);
    border: 1px solid rgba(255, 51, 68, 0.3);
    color: var(--danger);
}

/* ── SITE FOOTER ── */
.site-footer {
    margin: 0 12px 20px;
    background: linear-gradient(180deg, #080f22 0%, #050810 100%);
    border: 1px solid #1a3a6a;
    border-radius: 20px;
    padding: 28px 20px 20px;
    text-align: center;
}

.footer-logo-wrap {
    margin-bottom: 14px;
}

.footer-logo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00aaff;
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.5), 0 0 48px rgba(0, 170, 255, 0.2);
}

.footer-brand {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(0, 170, 255, 0.8);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 12px;
    color: #8899bb;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0 4px;
}

.footer-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.footer-link {
    font-size: 12px;
    color: #8899bb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #00ccff;
}

.footer-sep {
    color: #2a4a7a;
    font-size: 14px;
}

.footer-payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fpay-card {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.fpay-icon {
    font-size: 14px;
}

.fpay-qris {
    background: linear-gradient(135deg, #0055cc, #0099ff);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 153, 255, 0.4);
}

.fpay-dana {
    background: #0082c8;
    color: #ffffff;
}

.fpay-gopay {
    background: #00880a;
    color: #ffffff;
}

.fpay-ovo {
    background: #4c3494;
    color: #ffffff;
}

.fpay-shopeepay {
    background: #ee4d2d;
    color: #ffffff;
}

.footer-qris-note {
    font-size: 11px;
    color: #00cc66;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 8px 14px;
    background: rgba(0, 204, 102, 0.08);
    border: 1px solid rgba(0, 204, 102, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.footer-copy {
    font-size: 11px;
    color: #445566;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid #0f1e3a;
}
