@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

a, body, div, form, html, img, input, label, p, span {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Inter', sans-serif, Arial;
}

body, html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: #1a1a2e;
    background-image: url('bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dark overlay on body for better card contrast */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

a {
    color: #fff;
    font-size: 100%;
}

input, label {
    vertical-align: middle;
    white-space: normal;
    background: 0 0;
    line-height: 1;
}

label {
    position: relative;
    display: block;
}

p::first-letter {
    text-transform: uppercase;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
}

/* ===================== */
/*   LAYOUT              */
/* ===================== */

.ie-fixMinHeight {
    display: flex;
    position: relative;
    z-index: 1;
}

.main {
    min-height: calc(100vh - 40px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrap {
    margin: auto;
    padding: 20px;
    transition: width 0.3s ease-in-out;
    width: 100%;
    max-width: 460px;
}

@media only screen and (min-width: 1px) and (max-width: 575px) {
    .wrap {
        width: 100%;
        padding: 16px;
    }
}

/* ===================== */
/*   GLASSMORPHISM CARD  */
/* ===================== */

.glass-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow at the top */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

@media only screen and (max-width: 575px) {
    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
}

/* ===================== */
/*   LOGO & TEXT         */
/* ===================== */

.logo {
    max-width: 180px;
    display: block;
    margin: 0 auto 24px auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.logo * {
    fill: #fff;
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 22px !important;
    font-weight: 600;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 24px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

/* ===================== */
/*   ANIMATIONS          */
/* ===================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

.animated {
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

/* ===================== */
/*   FORM INPUTS         */
/* ===================== */

input {
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus {
    outline: 0;
}

input[type=password], input[type=text] {
    width: 100%;
    height: 48px;
    padding: 3px 20px 3px 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type=password]::placeholder, input[type=text]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type=password]:focus, input[type=text]:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.ico {
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 16px;
    margin-left: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* ===================== */
/*   BUTTONS             */
/* ===================== */

input[type=submit] {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

input[type=submit]:hover, input[type=submit]:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.40);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.10);
}

/* ===================== */
/*   BUTTON GROUP (TABS) */
/* ===================== */

.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.btn-group div, .btn-group button {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-group div:hover,
.btn-group button:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff;
}

.btn-group button.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 500px) {
    .btn-group,
    .action-buttons {
        flex-wrap: wrap;
    }

    .btn-group div, .btn-group button,
    .action-buttons div, .action-buttons button {
        flex: 1 1 30%;
    }
}

/* ===================== */
/*   TABLE               */
/* ===================== */

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

table td {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 8px;
    font-size: 14px;
    text-align: center;
}

table td:first-child {
    font-weight: 600;
    text-align: left;
    color: #fff;
}

table td:last-child {
    text-align: right;
}

table tr:last-child td {
    border-bottom: none;
}

/* ===================== */
/*   PRICELIST           */
/* ===================== */

#pricelistSection {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    margin-bottom: 20px;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===================== */
/*   MISC                */
/* ===================== */

form {
    width: 100%;
    margin-bottom: 16px;
}

.bt {
    opacity: 0.4;
    font-size: 12px;
}

.notice {
    background-color: rgba(255, 81, 81, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 81, 81, 0.3);
}

.info.alert {
    color: #ffd700;
}

.hilang {
    display: none;
}

.credit {
    max-width: 160px;
}

.btn-tambahan {
    display: table;
    overflow: hidden;
}

.pastengah {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/* ===================== */
/*   THEME VARIANTS      */
/* ===================== */

.lite .logo * {
    fill: #444;
}

.lite .info, .lite h1, .lite table td {
    color: #444;
}

/* ===================== */
/*   DESKTOP             */
/* ===================== */

@media (min-width: 576px) {
    .wrap {
        width: 440px;
    }

    * {
        font-size: 14px !important;
    }

    h1 {
        font-size: 22px !important;
    }
}