* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #0B1223;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
}

.app-container {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 24px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen {
    /*display: none;*/
    flex-direction: column;
    gap: 24px;
    animation: fade 0.2s ease;
}

.screen.active {
    display: flex;
}

@keyframes fade {
    from {
        opacity: 0.4;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.subheader {
    font-size: 0.95rem;
    padding: 12px 0;
    margin-bottom: 2em;
    background-color: #dfd;
    color: #264d3e;
    text-align: center;
    display: none;
    border-radius: 0.5em;
}

.controls {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button {
    background: #0B1223;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 16px 20px;
    border-radius: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#vpo-logo {
    cursor: pointer;
}

#stopScanner {
    display: none;
}

button:active {
    transform: scale(0.98);
    background: #1f2a38;
}

button.secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

button.secondary:active {
    background: #e2e8f0;
}

button.small {
    padding: 12px 16px;
    font-size: 1rem;
}

.input-field {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 60px;
    padding: 16px 20px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border 0.1s;
}

.input-field:focus {
    border-color: #2d3b4f;
    background: #ffffff;
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /*margin-top: 20px;*/
}

.action-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.double-btn {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.double-btn button {
    flex: 1;
}

.info-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.code-display {
    font-family: 'Courier New', monospace;
    background: #e9edf2;
    padding: 14px 18px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    word-break: break-word;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1em;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.back-btn {
    background: none;
    border: none;
    color: #2d3b4f;
    font-size: 1.2rem;
    padding: 10px 10px 10px 0;
    width: auto;
    box-shadow: none;
    display: flex;
    gap: 4px;
    font-weight: 500;
}

.back-btn:active {
    background: none;
    transform: scale(0.96);
    color: #0f172a;
}

.placeholder-text {
    color: #64748b;
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.scanned-row {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px 16px;
    border: 1px solid #d9e2ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}