* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
}

/* BACKGROUND */
.app-bg {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b, #020617);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* CARD (MATCH SITE3 WIDTH) */
.card {
    width: 100%;
    max-width: 420px; /* ✅ SAME AS SITE3 */
    padding: 30px;

    background: rgba(15,23,42,0.85);
    border-radius: 18px;
    backdrop-filter: blur(10px);

    box-shadow: 0 20px 60px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CENTER HEADINGS */
.card h2,
.card h3,
.brand {
    text-align: center;
}

/* BRAND */
.brand h1 {
    font-size: 24px;
    font-weight: 800;
}

.brand p {
    font-size: 14px;
    color: #94a3b8;
}

/* INPUT */
input {
    padding: 13px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    color: white;
}

input:focus {
    border-color: #6366f1;
}

/* BUTTON */
button {
    padding: 13px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    transform: translateY(-2px);
}

/* TEXT */
.muted {
    text-align: center;
    color: #94a3b8;
}

/* PDF */
.pdf-frame {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

/* POPUP */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-card {
    background: #0f172a;
    padding: 25px;
    border-radius: 15px;
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    z-index: 333333;
}

.loader.show {
    opacity: 1;
    pointer-events: auto;
}

.loader-box {
    background: #0f172a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

.logo {
    /* font-size: 28px; */
    width: 240px;
    margin-bottom: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}