* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 11px;
}

.container {
    width: 100%;
    max-width:550px;
    height: 100vh;
    max-height: 880px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    padding: 10px 14px 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
    border-radius: 28px;
}

.header,
.welcome,
.product-list,
.steps,
.footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 5px;
}


.datetime {
    text-align: right;
}

.datetime .time {
    font-size: 17px;
    font-weight: 700;
    color: #1a2a3a;
    line-height: 1.1;
}

.datetime .date {
    font-size: 10px;
    color: #5a6a7a;
    font-weight: 500;
}

.welcome {
    margin: 5px 0 10px 10px;
    text-align: left;
}

.welcome p {
    font-size: 12px;
    color: #1a2a3a;
    font-weight: 500;
    margin-top: -5px;
}

.welcome h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0a1a2a;
    margin-top: -3px;
}

.sub-welcome {
    font-size: 11px;
    color: #5a6a7a;
    font-weight: 400;
    margin-top: 0px;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;;
    gap: 10px;
    margin: 4px 0 6px ;
    flex: 1;
}

.product-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 102, 161, 0,12);
    border: 1px solid #d4edf7;
    cursor: pointer;
    transition:transform 0.15s;
    position: relative;
}
.product-item:active {
    transform; scale(0.97);
}
.badge-number{
    position: absolute;
    top: -6px;
    left: -6px;
    background: #0066a1;
    color: white;
    font-size: 13px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0, 60, 110, 0.25);
    border: 2px solid white;
    z-index: 2;
}


.product-item:hover {
    border-color: #0066a1;
    transform: scale(1.02);
}

.product-item .icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.product-item .icon img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.product-item .info {
    width: 100%;
}

.product-item .name {
    margin-bottom: 2px;
    font-size: 14px;
    color: #0a1a2a;
    font-weight: 700;
}

.product-item .volume {
    font-size: 11px;
    color: #5a6a7a;
    margin-bottom: 6px;
}

.product-item .price {
    font-weight: 700;
    font-size: 20px;
    color: #003d66;
    margin: 6px 0 10px;
    background: rgba(0, 102, 161, 0.05)
    padding: 4px 0:
    border-radius: 30px
    letter-spacing: 0.2px;
}

.btn-select {
    background: #0066a1;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    max-width: 140px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 80, 140, 0.15);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-select:active{
    transform: scale(0.96);
    background: #004b7a;
    box-shadow: 0 2px 4px rgba(0, 50, 90, 0.2);
}
.btn-select:hover {
    background: #004b7a;
}

.steps {
    background: #d4edf7;
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 12px;
    margin: 4px 0 6px;
    border: 1px solid #b8dff0;
    flex-shrink: 0;
}

.steps-title {
    font-weight: 700;
    font-size: 13px;
    color: #0a1a2a;
    margin-bottom: 6px;
    text-align: center;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 11px;
    color: #1a2a3a;
}

.step-num {
    background: #0066a1;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-weight: 500;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 102, 161, 0.1);
    font-size: 10px;
    color: #1a2a3a;
}

.footer .quality {
    font-weight: 600;
    color: #0066a1;
    margin: 0;
    font-size: 10px;
}

.footer .help {
    color: #5a6a7a;
    font-size: 10px;
    margin: 0;
}

@media (max-height: 700px) {
    .container {
        padding: 14px 14px 16px;
        max-height: 100vh;
    }
    .brand h1 {
        font-size: 15px;
    }
    .datetime .time {
        font-size: 15px;
    }
    .welcome h2 {
        font-size: 19px;
    }
    .welcome p {
        font-size: 11px;
    }
    .product-item {
        padding: 6px 12px;
        gap: 8px;
    }
    .product-item .icon {
        width: 32px;
        height: 32px;
    }
    .product-item .icon img {
        width: 26px;
        height: 26px;
    }
    .product-item .info .name {
        font-size: 11px;
    }
    .product-item .price {
        font-size: 12px;
    }
    .btn-select {
        font-size: 9px;
        padding: 3px 10px;
    }
    .steps {
        padding: 8px 12px;
    }
    .steps-title {
        font-size: 11px;
    }
    .step-item {
        font-size: 10px;
        padding: 2px 0;
    }
    .step-num {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    .footer {
        font-size: 9px;
        padding-top: 6px;
    }
    .footer .quality {
        font-size: 9px;
    }
    .footer .help {
        font-size: 8px;
    }
}

@media (max-height: 600px) {
    .container {
        padding: 10px 12px 12px;
        border-radius: 16px;
    }
    .welcome {
        margin: 4px 0 6px;
    }
    .welcome h2 {
        font-size: 16px;
    }
    .product-list {
        gap: 5px;
        margin: 4px 0 6px;
    }
    .product-item {
        padding: 4px 10px;
        border-radius: 10px;
    }
    .product-item .info .name {
        font-size: 10px;
    }
    .product-item .price {
        font-size: 11px;
    }
    .steps {
        padding: 6px 10px;
        margin: 4px 0 4px;
    }
    .step-item {
        font-size: 9px;
        padding: 1px 0;
    }
    .footer {
        padding-top: 4px;
    }
}
.step-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -1px;
    margin-bottom: 7px;
    z-index: 2;
}

.logo-img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0066a1;
    letter-spacing: 0.5px;
    margin: 0;
}

.brand-text span {
    font-weight: 300;
    color: #00a3e0;
}

.tagline {
    font-size: 13px;
    color: #0066a1;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-top: 2px;
}
.brand,
.brand-row {
    position: relative;
    top: -27px;
}
.wave-img {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    pointers-events: none;
    z-index: 0;
}
    
.header,
.brand,
.welcome,
.product-list,
.steps,
.footer {
    position: relative;
    z-index: 1;
}
/* ===== PAYMENT PAGE ===== */
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4edf7;
    margin-bottom: 15px;
}

.payment-title h2 {
    font-size: 24px;
    color: #0a1a2a;
    margin-bottom: 2px;
}

.payment-title p {
    font-size: 13px;
    color: #5a6a7a;
    margin-bottom: 20px;
}

.product-detail {
    display: flex;
    align-items: center;
    background: #f5faff;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #dbe9f5;
}

.product-detail-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h3 {
    font-size: 16px;
    color: #0a1a2a;
}

.product-detail-info p {
    font-size: 12px;
    color: #5a6a7a;
}

.product-detail-info .price {
    font-weight: bold;
    color: #0066a1;
    font-size: 16px;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.method-card {
    flex: 1;
    background: #fafafa;
    border: 1px solid #dbe9f5;
    border-radius: 15px;
    padding: 15px 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.method-card:hover,
.method-card:active {
    border-color: #0066a1;
    background: #f5faff;
}

.method-icon {
    font-size: 28px;
}

.method-card h4 {
    color: #0066a1;
    margin: 8px 0 4px;
    font-size: 16px;
}

.method-card p {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
}

.qris-placeholder,
.card-placeholder {
    background: #eef4f9;
    border-radius: 8px;
    padding: 10px 0;
    margin: 8px 0;
    font-weight: bold;
    color: #333;
    border: 1px dashed #aaa;
    font-size: 13px;
}

.btn-select {
    background: #0066a1;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 12px;
}

.timer-section {
    background: #fff8e0;
    border-left: 4px solid #f5a623;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.timer-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
}

.countdown {
    font-size: 20px;
    color: #d32f2f;
    background: white;
    padding: 2px 10px;
    border-radius: 8px;
}

.warning {
    color: #b71c1c;
    font-size: 11px;
    margin-top: 4px;
}

.payment-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #d4edf7;
}

.footer-item {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #333;
}

.footer-item span {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.footer-item small {
    color: #666;
    font-size: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #0066a1;
    font-size: 13px;
}
.payment-content {
    position: relative;
    z-index: 1;
}
.method-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin : 8px auto;
    max-width: 100%;
} 
/* ===== HALAMAN STATUS QRIS & KARTU ID ===== */
.status-title {
    font-size: 22px;
    color: #0a1a2a;
    margin-bottom: 4px;
}

.status-sub {
    font-size: 13px;
    color: #5a6a7a;
    margin-bottom: 15px;
}

.qr-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.qr-box {
    width: 350px;
    height: 350px;
    background: #f0f7fc;
    border: 2px dashed #0077be;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin: 0 auto;
    color: #0077be;
}

.card-reader-wrapper {
    background: #f5faff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dbe9f5;
    margin: 10px 0;
}

.card-reader-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.card-reader-message {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.card-reader-status {
    margin-top: 6px;
    color: #0077be;
    font-weight: 500;
    font-size: 13px;
}

.total-section {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.total-label {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.total-amount {
    font-weight: bold;
    font-size: 18px;
    color: #0077be;
}

.timer-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8e0;
    border-radius: 10px;
    padding: 8px 15px;
    margin: 8px 0;
    font-size: 13px;
}

.timer-status .countdown {
    font-size: 20px;
    color: #d32f2f;
    background: #fff;
    padding: 0 10px;
    border-radius: 6px;
}

.timer-hint {
    color: #b71c1c;
    font-size: 11px;
    margin-top: -4px;
    margin-bottom: 8px;
}

.steps {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 10px 0;
}

.steps h4 {
    color: #0077be;
    margin-bottom: 6px;
    font-size: 14px;
}

.steps ol {
    padding-left: 20px;
    color: #444;
    font-size: 12px;
}

.steps li {
    margin-bottom: 4px;
}

.btn-cancel {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 10px 0;
    transition: 0.2s;
    font-size: 14px;
}

.btn-cancel:hover {
    background: #c0392b;
}
.card-reader-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;

}
/* ===== HALAMAN PESANAN DITERIMA ===== */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 52px;
    margin: 5px 0;
}

.success-title {
    font-size: 24px;
    color: #2e7d32;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.success-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.order-detail {
    background: #f5faff;
    border-radius: 15px;
    padding: 12px 16px;
    margin: 15px 0;
    text-align: left;
    border: 1px solid #dbe9f5;
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-image-wrapper {
    flex: 0 0 70px;
}

.product-image {
    width: 70px;
    height: auto;
    display: block;
}

.product-info-wrapper {
    flex: 1;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0eef7;
}
.order-row:last-child {
    border-bottom: none;
}

.order-label {
    font-weight: 600;
    color: #555;
    font-size: 12px;
}

.order-value {
    font-weight: 500;
    text-align: right;
    color: #222;
    font-size: 13px;
}

.order-value.price {
    color: #0077be;
    font-weight: bold;
    font-size: 16px;
}

.action-section {
    margin: 15px 0;
}

.instruction {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #0077be;
}

.btn-start {
    background: #0077be;
    color: #fff;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    letter-spacing: 1px;
    margin: 8px 0;
}

.btn-start:hover {
    background: #005f9e;
    transform: scale(1.01);
}

.hint {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
    margin-bottom: 8px;
}

.warning {
    color: #b71c1c;
    font-size: 11px;
    margin-top: 8px;
    background: #ffebee;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
    text-align: left;
}

#countdownWrapper {
    background: #fff8e0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    border-left: 4px solid #f5a623;
    margin-top: 15px;
}

.clock-icon {
    font-size: 24px;
}

.countdown-text {
    font-weight: 500;
    color: #333;
    font-size: 12px;
}

.countdown-number {
    font-size: 28px;
    font-weight: bold;
    color: #d32f2f;
    background: #fff;
    padding: 0 10px;
    border-radius: 6px;
    min-width: 30px;
}

.success-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0eef7;
    color: #555;
    font-size: 12px;
}

.success-footer strong {
    color: #0077be;
}
/* ===== STATUS SLOT ===== */
/* Spinner untuk FILLING */
.spinner {
    border: 4px solid #d4edf7;
    border-top: 4px solid #0066a1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 4px auto 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Kartu maintenance redup dan tidak bisa diklik */
.product-item.maintenance {
    opacity: 0.55;
    pointer-events: none;
}

/* Badge status maintenance */
.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 3;
}
/* ===== STATUS FILLING ===== */
.filling-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
}

.filling-icon .spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
}

.filling-text {
    font-size: 13px;
    font-weight: 700;
    color: #0066a1;
    letter-spacing: 0.5px;
    text-align: center;
}

.filling-status {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 90px;
}

.filling-status .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #d4edf7;
    border-top: 5px solid #0066a1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ADMIN LOGIN ===== */
.admin-login-container {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-login-container::before {
    display: none !important;
}

.admin-login {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 25px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
    pointer-events: auto;
}

.admin-login h1 {
    font-size: 28px;
    color: #0066a1;
    margin: 0;
}

.admin-login h2 {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.admin-login form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.admin-login input {
    width: 90%;
    max-width: 300px;
    padding: 14px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #0066a1;
    border-radius: 16px;
    background: #f0faff;
    color: #003057;
    font-weight: 700;
    letter-spacing: 6px;
    outline: none;
}

.admin-login input:focus {
    border-color: #00a3e0;
    background: #ffffff;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 12px;
    justify-content: center;
    margin: 10px auto 0;
}

.key {
    width: 80px;
    height: 60px;
    background: #f5faff;
    border: 1px solid #d4edf7;
    border-radius: 18px;
    font-size: 24px;
    font-weight: 700;
    color: #0066a1;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 8px rgba(0, 102, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:active {
    transform: scale(0.92);
    background: #0066a1;
    color: white;
}

.key-clear {
    background: #ffe0e0;
    color: #c0392b;
    font-size: 16px;
}

.key-enter {
    background: #27ae60;
    color: white;
    font-size: 16px;
}

.key-enter:active {
    background: #1e8a4c;
}

.error {
    color: #d32f2f;
    font-weight: 600;
    margin: 0;
}

.back-link {
    text-decoration: none;
    color: #0066a1;
    font-size: 13px;
}
/* ===== ADMIN DASHBOARD MODERN ===== */
.admin-landing {
    position: relative;
    z-index: 20;
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border-radius: 30px;
    padding: 35px 25px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
    pointer-events: auto;
}

.admin-landing .brand-icon {
    font-size: 42px;
    margin-bottom: 5px;
}

.admin-landing h1 {
    font-size: 28px;
    color: #0066a1;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.admin-landing .subtitle {
    color: #555;
    font-size: 14px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0eef7;
    padding-bottom: 15px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.menu-item {
    background: #f8faff;
    border-radius: 16px;
    padding: 18px 12px;
    text-decoration: none;
    color: #222;
    transition: all 0.2s;
    border: 1px solid #e0eef7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    pointer-events: auto;
}

.menu-item:hover,
.menu-item:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 119, 190, 0.15);
    border-color: #0077be;
    background: white;
}

.menu-item .menu-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.menu-item .menu-label {
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.menu-item .menu-desc {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.menu-item.logout {
    grid-column: 1 / -1;
    background: #fff5f5;
    border-color: #ffcdd2;
    min-height: 80px;
}

.menu-item.logout:hover {
    border-color: #d32f2f;
    background: #ffebee;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.15);
}

.menu-item.logout .menu-icon,
.menu-item.logout .menu-label {
    color: #d32f2f;
}

.admin-footer {
    margin-top: 10px;
    font-size: 11px;
    color: #999;
    border-top: 1px solid #e0eef7;
    padding-top: 12px;
}

/* Responsif */
@media (max-width: 500px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-item.logout {
        grid-column: 1;
    }

    .admin-landing {
        padding: 20px 15px;
    }
}
/* ===== HALAMAN PRODUK & HARGA ===== */
.products-page {
    max-width: 720px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 25px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.products-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeef3;
    margin-bottom: 15px;
}

.products-page .brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.products-page .brand-icon {
    font-size: 28px;
}

.products-page .brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a3a;
}

.products-page .brand-sub {
    font-size: 12px;
    color: #5a6a7a;
}

.products-page .datetime {
    text-align: right;
    font-size: 12px;
    color: #3a4a5a;
}

.products-page .datetime .time {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.page-sub {
    color: #5a6a7a;
    font-size: 13px;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.product-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px 12px 12px;
    text-align: center;
    border: 1px solid #eaeef3;
    transition: 0.2s;
}

.product-img {
    width: 70px;
    height: auto;
    margin: 0 auto 6px;
    display: block;
}

.product-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a2a3a;
}

.product-volume {
    font-size: 12px;
    color: #5a6a7a;
    margin-bottom: 6px;
}

.price-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: white;
    border-radius: 30px;
    padding: 4px 12px 4px 16px;
    border: 1px solid #dce2e9;
    margin-top: 4px;
}

.price-input-group .currency {
    font-weight: 600;
    color: #1a2a3a;
    font-size: 13px;
}

.price-input {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    width: 80px;
    padding: 6px 0;
    text-align: right;
    outline: none;
}

.btn-save {
    background: #0066a1;
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    letter-spacing: 1px;
}

.btn-save:hover {
    background: #004b7a;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a3a;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 999;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 500px) {
    .products-page {
        padding: 16px 12px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-img {
        width: 60px;
    }

    .price-input {
        width: 60px;
        font-size: 14px;
    }
}
/* ===== KEYPAD MODAL ===== */
.keypad-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.keypad-box {
    background: white;
    border-radius: 24px;
    padding: 20px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.keypad-display {
    width: 100%;
    padding: 12px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #0066a1;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a2a3a;
    background: #f0faff;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.keypad-btn {
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #0066a1;
    background: #f5faff;
    border: 1px solid #d4edf7;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.1s;
}

.keypad-btn:active {
    background: #0066a1;
    color: white;
    transform: scale(0.95);
}

.keypad-clear {
    background: #ffe0e0;
    color: #c0392b;
    font-size: 14px;
}

.keypad-ok {
    background: #27ae60;
    color: white;
    font-size: 16px;
}

.keypad-ok:active {
    background: #1e8a4c;
}
/* ===== HALAMAN KARTU ===== */
.card-info-box {
    background: #f5faff;
    border-radius: 16px;
    padding: 15px 20px;
    margin: 15px 0;
    border: 1px solid #dbe9f5;
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0eef7;
    font-size: 14px;
}

.card-info-row:last-child {
    border-bottom: none;
}

.card-info-row span:first-child {
    color: #5a6a7a;
    font-weight: 600;
}

.card-info-row span:last-child {
    color: #1a2a3a;
    font-weight: 700;
}

.card-actions {
    text-align: center;
    margin: 10px 0;
}

.btn-secondary {
    background: #f0faff;
    border: 2px solid #0066a1;
    color: #0066a1;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #0066a1;
    color: white;
}

.input-row {
    margin: 10px 0;
}

.input-row label {
    display: block;
    font-size: 12px;
    color: #5a6a7a;
    margin-bottom: 4px;
    font-weight: 600;
}

.text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4edf7;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.text-input:focus {
    border-color: #0066a1;
}

.card-list-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a3a;
    margin-top: 15px;
    margin-bottom: 8px;
}

.card-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #e0eef7;
    border-radius: 12px;
    background: #fafcff;
}

.card-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef4f9;
    font-size: 12px;
}

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

.card-list-uid {
    font-weight: 700;
    color: #0066a1;
    flex: 1;
}

.card-list-name {
    flex: 1.5;
    color: #1a2a3a;
}

.card-list-saldo {
    flex: 1;
    text-align: right;
    font-weight: 700;
    color: #27ae60;
}

.card-list-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
/* ===== NOMINAL DISPLAY ===== */
.nominal-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px solid #0066a1;
    border-radius: 20px;
    padding: 15px 20px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.nominal-display:active {
    transform: scale(0.98);
    background: #f0faff;
}

.nominal-rp {
    font-size: 24px;
    font-weight: 700;
    color: #0066a1;
}

.nominal-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    flex: 1;
    text-align: right;
}

/* ===== KEYBOARD LAYAR ===== */
.text-keypad-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
}

.text-keypad-grid .keypad-btn {
    font-size: 16px;
    padding: 12px 4px;
}

.text-keypad-grid .keypad-clear,
.text-keypad-grid .keypad-ok {
    grid-column: span 2;
    font-size: 13px;
}
/* ===== CARD LIST WITH ACTIONS ===== */
.card-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef4f9;
    font-size: 12px;
    gap: 8px;
}

.card-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.status-aktif {
    background: #d4f4dd;
    color: #1e8a4c;
}

.status-blokir {
    background: #ffd6d6;
    color: #c0392b;
}

.card-list-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-mini {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}

.btn-block {
    background: #ffe0e0;
    color: #c0392b;
}

.btn-unblock {
    background: #d4f4dd;
    color: #1e8a4c;
}

.btn-delete {
    background: #f0f0f0;
    color: #666;
}

.btn-mini:hover {
    opacity: 0.8;
}

/* ===== HALAMAN KALIBRASI ===== */
.calib-step { margin-top: 10px; }

.calib-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 15px 0;
}

.calib-slot-btn {
    background: #f8faff;
    border: 2px solid #d4edf7;
    border-radius: 20px;
    padding: 22px 15px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.calib-slot-btn:active {
    transform: scale(0.97);
    background: #0066a1;
    color: white;
}

.calib-slot-icon { font-size: 32px; margin-bottom: 6px; }
.calib-slot-name { font-weight: 700; font-size: 16px; color: #0066a1; }
.calib-slot-btn:active .calib-slot-name { color: white; }
.calib-slot-info { font-size: 12px; color: #5a6a7a; margin-top: 2px; }

.calib-info-box {
    background: #f5faff;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 15px 0;
    border: 1px solid #dbe9f5;
}

.calib-info-title {
    font-weight: 700;
    color: #0066a1;
    font-size: 16px;
    margin-bottom: 8px;
}

.calib-info-sub {
    font-size: 13px;
    color: #5a6a7a;
    margin-bottom: 15px;
}

.calib-info-list {
    padding-left: 20px;
    color: #1a2a3a;
    font-size: 13px;
    line-height: 1.6;
}

.calib-running-box {
    text-align: center;
    background: #f5faff;
    border-radius: 20px;
    padding: 25px 20px;
    margin: 15px 0;
    border: 1px solid #dbe9f5;
}

.calib-running-icon { font-size: 48px; margin-bottom: 5px; }
.calib-running-title { font-size: 16px; font-weight: 700; color: #0066a1; }
.calib-running-slot { font-size: 13px; color: #5a6a7a; margin-bottom: 15px; }

.calib-pulse-display {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin: 10px 0;
    border: 2px dashed #0066a1;
}

.calib-pulse-label { font-size: 12px; color: #5a6a7a; }
.calib-pulse-value {
    font-size: 38px;
    font-weight: 700;
    color: #0066a1;
    margin-top: 5px;
}

.calib-hint {
    font-size: 12px;
    color: #b71c1c;
    margin-top: 10px;
}

.calib-pulse-result {
    display: flex;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid #dbe9f5;
}

.calib-pulse-num {
    font-weight: 700;
    color: #0066a1;
    font-size: 18px;
}

.calib-done-box {
    text-align: center;
    background: #f0fff5;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 15px 0;
    border: 2px solid #27ae60;
}

.calib-done-icon { font-size: 52px; margin-bottom: 10px; }
.calib-done-title { font-size: 20px; font-weight: 700; color: #1e8a4c; }
.calib-done-kfactor {
    font-size: 14px;
    color: #333;
    margin-top: 15px;
}
.calib-done-kfactor strong {
    display: block;
    font-size: 24px;
    color: #0066a1;
    margin-top: 5px;
}

.btn-stop {
    background: #e74c3c;
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border-radius: 40px;
    border: none;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

.btn-cancel {
    background: #f0f0f0;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 40px;
    border: none;
    width: 100%;
    cursor: pointer;
    margin-top: 8px;
}

/* ===== INFO KARTU DI HALAMAN PESANAN DITERIMA ===== */
.card-info-box {
    background: #f0f8ff;
    border-radius: 15px;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid #b8dff0;
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e0eef7;
}

.card-info-row:last-child {
    border-bottom: none;
}

.card-info-label {
    font-weight: 700;
    color: #0066a1;
    font-size: 12px;
}

.card-info-value {
    font-weight: 600;
    color: #0a1a2a;
    font-size: 14px;
    text-align: right;
}

.card-info-value.saldo {
    color: #27ae60;
    font-weight: 700;
}
/* ===== VOLUME INPUT (PRODUK & HARGA) ===== */
.volume-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #eef7ff;
    border-radius: 30px;
    padding: 4px 12px 4px 16px;
    border: 1px solid #b8dff0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.volume-input-group .currency {
    font-weight: 700;
    color: #0066a1;
    font-size: 12px;
}

.volume-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #0a1a2a;
    width: 80px;
    padding: 6px 0;
    text-align: right;
    outline: none;
}

/* ===== HALAMAN LOG TRANSAKSI ===== */
.transactions-page {
    max-width: 720px;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 16px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.transactions-page .header {
    flex-shrink: 0;
}

.transactions-page .page-title,
.transactions-page .page-sub {
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
    flex-shrink: 0;
}

.stat-card {
    background: #f5faff;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid #d4edf7;
}

.stat-card-total {
    background: #0066a1;
    border-color: #0066a1;
    grid-column: 1 / -1;
}

.stat-card-total .stat-label,
.stat-card-total .stat-value,
.stat-card-total .stat-count {
    color: white;
}

.stat-label {
    font-size: 10px;
    color: #5a6a7a;
    font-weight: 600;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #0066a1;
    margin: 2px 0;
}

.stat-count {
    font-size: 10px;
    color: #888;
}

.delete-action {
    text-align: right;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.btn-delete-all {
    background: #ffe0e0;
    color: #c0392b;
    border: 1px solid #ffcdd2;
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-delete-all:active {
    background: #c0392b;
    color: white;
}

/* List transaksi: fleksibel mengisi ruang tersisa */
.transactions-list {
    flex: 1 1 auto;
    min-height: 80px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #e0eef7;
    background: #fafcff;
    -webkit-overflow-scrolling: touch;
}

.tx-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eef4f9;
    font-size: 12px;
}

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

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.tx-id {
    font-weight: 700;
    color: #0066a1;
    font-family: monospace;
    font-size: 12px;
}

.tx-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-badge-committed { background: #d4f4dd; color: #1e8a4c; }
.status-badge-canceled { background: #ffd6d6; color: #c0392b; }
.status-badge-reserved { background: #fff3cd; color: #856404; }

.tx-row {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
}

.tx-label {
    color: #5a6a7a;
    font-weight: 500;
}

.tx-value {
    color: #1a2a3a;
    font-weight: 600;
    text-align: right;
}

.tx-value.price {
    color: #27ae60;
}

.tx-value.error {
    color: #c0392b;
    font-size: 11px;
}

.tx-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Back link: selalu terlihat di bawah */
.transactions-page .back-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: #0066a1;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    border-top: 1px solid #eef4f9;
}
