html, body {
min-height: 100%;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
position: relative;
background-image: url("../img/background-1.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
padding-top: 70px;
}
body::before {
content: "";
position: fixed;
inset: 0;
background: linear-gradient(
180deg,
rgba(0,0,0,0.45),
rgba(0,0,0,0.65)
);
z-index: 1;
}
.container {
position: relative;
z-index: 2;
width: 100%;
max-width: 720px;
}

/* ===== HEADER HORIZONTAL ===== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(10,12,18,0.65);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.header-inner {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
padding: 14px 28px;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.brand-name {
    line-height: 1;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: white;
    white-space: nowrap;
}

.glass-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    /* box-shadow: 0 25px 50px rgba(0,0,0,0.35); */
}

.certificate.glass-cert {
    color: white;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
    padding: 28px;
}

.certificate.glass-cert p {
    color: white;
}

.certificate {
    padding: 28px;
    max-width: 600px;
    width: 100%;
    border-radius: 18px;
}
.badge.bg-success {
    box-shadow: 0 0 12px rgba(25,135,84,0.6);
}
.cert-header h5 {
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cert-image {
    max-height: 350px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.cert-info p {
    margin-bottom: 6px;
    font-size: 15px;
}
.cert-footer {
    color: white;
    font-size: 12px;
}

.mt-3 {
    font-size: 16px;
}

/* ===== FIXED GLASS TABS ===== */
.glass-tabs {
    display: flex;
    gap: 10px;
    border-bottom: none;
}

.glass-tabs .nav-item {
    flex: 1;
}

/* TAB GEM CODE DAN SCAN QR CODE */
.glass-tabs .nav-link {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 12px 0;
    font-size: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.glass-tabs .nav-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.glass-tabs .nav-link.active {
    background: white;
    color: #111;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.glass-outline {
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ===== GLASS INPUT ===== */
.form-control {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 4px;
    
}

.form-control::placeholder {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
    color: #fff;
}

.form-label {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}
/* ===== FOOTER ===== */
.glass-footer {
    letter-spacing: 0.3px;
    background: rgba(10,12,18,0.65);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid rgba(255,255,255,0.4);
    color: white;
}

.w-100 {
    color: white;
    background-color: #0d6efd;
}

.w-100:hover {
    color: white;
    background-color: #0b5ed7;
}

.mb-2 {
    color: white;
    background-color: #198754;
}

.mb-2:hover {
    color: white;
    background-color: #157347;
}

#btnStartScan:disabled {
    color: #198754;
    background-color: transparent;
    border: 1px solid #198754;
    opacity: 1;
}

#btnStartScan:disabled .spinner-border {
    color: #198754;
}

h2 {
    color: white;
    font-size: 24px;
}

@media (max-width: 576px) {
    .header-inner {
        padding: 14px 18px;
    }
    .glass-header .container {
        padding-left: 16px;
    }
    .brand-name {
        font-size: 16px;
    }
    .brand-logo {
        height: 34px;
    }
}