:root {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--primary-font);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e0f7fa;
    perspective: 1000px;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* KARTU (Cloned from sean.php) */
.card {
    width: 340px;
    height: 210px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    padding: 16px 18px;
    position: relative;
    color: white;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pop .5s ease, float 3s ease-in-out infinite;
    transition: transform 0.2s ease;
}

/* overlay */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.25));
    z-index: 0;
    /* display: none !important; */
}

/* shine effect */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

.card * {
    position: relative;
    z-index: 1;
}

/* animations */
@keyframes pop {
    from {
        transform: scale(.85)
    }

    to {
        transform: scale(1)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes shine {
    0% {
        left: -100%
    }

    100% {
        left: 150%
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0a66c2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.bank-logo span {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.bank-name {
    font-size: 14px;
    font-weight: bold;
    text-shadow:
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black;
}

/* KONTEN */
.char {
    font-size: 56px;
    margin-top: 6px;
    animation: bounce 2s infinite;
}

.name {
    font-size: 20px;
    font-weight: bold;
    margin-top: 60px;
    color: white;
    text-shadow:
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black;
    /* text-shadow: */
    /* 0 0 5px rgba(0, 0, 0, 0.6), */
    /* 0 0 10px rgba(0, 0, 0, 0.4); */
    /* text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black; */

}

.saldo {
    margin-top: 6px;
    font-size: 24px;
    background: rgba(255, 255, 255, .9);
    color: #000;
    padding: 4px 6px;
    border-radius: 12px;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.footer-text {
    position: absolute;
    bottom: 10px;
    left: 18px;
    font-size: 11px;
    text-shadow:
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black;
}

.master-logo {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
}

.circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.red {
    background: #ff3b30;
    position: relative;
    left: 7px;
}

.orange {
    background: #ff9500;
}

/* Admin Styles */
.admin-panel {
    background: white;
    padding: 30px;
    border-radius: 15px;
    color: #333;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.preview-item.active {
    border-color: #4a90e2;
}

.preview-name {
    padding: 5px;
    font-size: 0.8rem;
    text-align: center;
    background: #f5f5f5;
}