/* -------------------------------------------------------------
   SISTEM DESAIN & VARIABEL UTAMA
   ------------------------------------------------------------- */
:root {
    --bg-dark: #07080e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    /* Neon & Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-glow: rgba(168, 85, 247, 0.5);

    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --success-glow: rgba(16, 185, 129, 0.4);

    --error-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --error-glow: rgba(239, 68, 68, 0.4);

    --glass-blur: blur(25px);
}

/* Reset Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* -------------------------------------------------------------
   ANIMATED GLOWING BACKGROUND
   ------------------------------------------------------------- */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    mix-blend-mode: screen;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floatBlob1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floatBlob2 30s infinite alternate ease-in-out;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floatBlob3 20s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 15%) scale(1.1);
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-12%, -10%) scale(1.15);
    }
}

@keyframes floatBlob3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20%, 20%) scale(0.9);
    }
}

/* -------------------------------------------------------------
   CONTAINER & VERIFICATION CARD
   ------------------------------------------------------------- */
.verify-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

.verify-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glowing Border Effect for Hover */
.verify-card:hover {
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(168, 85, 247, 0.08);
}

/* State Management */
.state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.state.active {
    display: flex;
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -------------------------------------------------------------
   CARD COMPONENTS
   ------------------------------------------------------------- */

/* Icons */
.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    color: #6366f1;
    position: relative;
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.glow-icon {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
    animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.7));
        transform: scale(1.03);
    }
}

.mini-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 16px;
    color: #a855f7;
}

.mini-icon svg {
    width: 28px;
    height: 28px;
}

/* Success & Denied Icons */
.success-icon {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
    animation: popSuccess 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon svg {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.denied-icon {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    animation: shakeError 0.5s ease-in-out;
}

.denied-icon svg {
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

@keyframes popSuccess {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Typography */
.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-text {
    background: linear-gradient(to right, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-text {
    background: linear-gradient(to right, #ef4444, #f87171);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px var(--primary-glow), 0 0 15px rgba(168, 85, 247, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Back Button */
.btn-back {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

/* Switch Link */
.switch-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.switch-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-link:hover {
    color: var(--text-primary);
}

.switch-link:hover::after {
    background: var(--text-primary);
    transform: scaleX(1);
    transform-origin: left;
}

/* -------------------------------------------------------------
   MANUAL DOB INPUT FORM
   ------------------------------------------------------------- */
.dob-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dob-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.input-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hilangkan Arrows input number */
.input-field input::-webkit-outer-spin-button,
.input-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.input-field input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.error-message {
    font-size: 0.85rem;
    color: #ef4444;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
    animation: fadeInError 0.3s ease forwards;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

/* -------------------------------------------------------------
   SUCCESS STATE - LOADER
   ------------------------------------------------------------- */
.loader-wrapper {
    width: 100%;
    max-width: 240px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 16px;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--success-gradient);
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: loadProgress 2.2s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* -------------------------------------------------------------
   SHAKE & ERROR ANIMATIONS
   ------------------------------------------------------------- */
.shake-animation {
    animation: shakeError 0.5s ease-in-out;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-10px);
    }

    30% {
        transform: translateX(8px);
    }

    45% {
        transform: translateX(-8px);
    }

    60% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }

    90% {
        transform: translateX(2px);
    }
}

/* -------------------------------------------------------------
   FOOTER STYLE
   ------------------------------------------------------------- */
.verify-footer {
    padding: 24px;
    text-align: center;
    z-index: 1;
}

.verify-footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.01em;
}

/* -------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------- */
@media (max-width: 480px) {
    .verify-card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .dob-inputs {
        gap: 10px;
    }

    .input-field input {
        padding: 12px;
        font-size: 1.1rem;
    }

    .btn-back {
        top: 16px;
        left: 16px;
    }
}