body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.app-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    margin-bottom: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.status-box {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.status-warn {
    background: #fef3c7;
}

.status-danger {
    background: #fee2e2;
}

.big-number {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.text-muted {
    color: #6b7280;
    font-size: 14px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.loading-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #dbeafe;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    animation: spin 0.9s linear infinite;
}
.status-success {
    background: #dcfce7;
    color: #166534;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}