* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h1 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

p {
    color: #555;
    margin-bottom: 1.5rem;
}

input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #4a6fa5;
}

button {
    background: #4a6fa5;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #3b5998;
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.success-modal {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #333;
}

#qrContainer img {
    width: 200px;
    height: 200px;
    margin: 1rem 0;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.status-success {
    color: #27ae60;
    font-weight: bold;
}

.status-expired {
    color: #e74c3c;
    font-weight: bold;
}

#expiryInfo {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
}

#checkManualBtn {
    margin: 0.5rem 0;
    background: #3498db;
    font-size: 0.9rem;
    padding: 8px 16px;
}