:root {
    --primary-blue: #0284c7;
    --primary-blue-dark: #0369a1;
    --light-blue-bg: #f0f7ff;
    --card-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%); color: var(--text-dark); min-height: 100vh; padding: 15px 10px; display: flex; justify-content: center; }
.mono{font-family: monospace; color: var(--primary-blue);}

.app-container { width: 100%; max-width: 450px; background: #ffffff; border-radius: 28px; padding: 20px; box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08); border: 1px solid #e0e9f6; }

.top-navbar { background: var(--primary-blue); color: white; padding: 12px; border-radius: 14px; text-align: center; font-weight: 600; font-size: 15px; margin-bottom: 20px; }

.profile-card { background: #f8fafc; border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.profile-card input { background: transparent; border: none; color: var(--text-dark); font-size: 18px; font-weight: 700; outline: none; width: 85%; }
.help-dot { width: 20px; height: 20px; background: #e2e8f0; color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; flex-shrink: 0; }

.notice-text { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; padding-left: 4px; }
.section-header { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.icon-btn { background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer; }

.grid-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.item-card { background: #ffffff; border: 1px solid var(--card-border); border-radius: 16px; padding: 16px 8px; text-align: center; position: relative; cursor: pointer; transition: all 0.2s ease; }
.item-card.active { border: 2px solid var(--primary-blue); background: var(--light-blue-bg); }
.item-card.active::after { content: '✓'; position: absolute; top: 8px; right: 8px; background: var(--primary-blue); color: white; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.dia-icon { font-size: 14px; margin-bottom: 4px; color: var(--primary-blue); }
.dia-count { font-size: 16px; font-weight: 700; }
.price-badge { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.qty-container { background: #f8fafc; border: 1px solid var(--card-border); border-radius: 16px; padding: 14px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.qty-controls { display: flex; align-items: center; gap: 12px; }
.qty-action { width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; border: none; font-size: 16px; cursor: pointer; }
.qty-display { font-size: 16px; font-weight: 700; width: 20px; text-align: center; }
.meta-display { text-align: right; font-size: 12px; color: var(--text-muted); }
.meta-total { font-size: 15px; font-weight: 700; color: var(--text-dark); }

.pay-fields { background: #f8fafc; border: 1px solid var(--card-border); border-radius: 16px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.field input { padding: 11px 13px; border: 1px solid var(--card-border); border-radius: 10px; font-size: 14px; outline: none; }
.field input:focus { border-color: var(--primary-blue); }
.upi-note { font-size: 12px; color: var(--text-muted); }

.btn-pay { background: var(--primary-blue); color: white; border: none; width: 100%; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 16px; transition: background 0.2s; }
.btn-pay:hover { background: var(--primary-blue-dark); }
.btn-pay:disabled { background: #94a3b8; cursor: not-allowed; }

.form-result { font-size: 13px; padding: 12px 14px; border-radius: 12px; margin-bottom: 20px; }
.form-result.ok { background: #f0fdf4; border: 1px solid var(--success); color: #15803d; }
.form-result.err { background: #fef2f2; border: 1px solid var(--danger); color: #b91c1c; }

.support-box { background: #f8fafc; border-radius: 16px; padding: 16px; border: 1px solid var(--card-border); margin-bottom: 20px; }
.support-title { font-size: 14px; font-weight: 700; color: var(--primary-blue-dark); }
.support-sub { font-size: 11px; color: var(--text-muted); margin: 2px 0 0; }
.support-item { background: #ffffff; border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 14px; margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 13px; text-decoration: none; color: inherit; }
.support-icon { font-size: 20px; }
.muted-sm { font-size: 11px; color: var(--text-muted); }

.search-container { background: #f8fafc; border-radius: 16px; padding: 16px; border: 1px solid var(--card-border); }
.search-wrapper { margin-top: 10px; }
.search-wrapper input { width: 100%; padding: 12px; background: #ffffff; border: 1px solid var(--card-border); border-radius: 12px; outline: none; font-size: 14px; margin-bottom: 10px; }
.btn-find { background: var(--primary-blue); color: white; border: none; width: 100%; padding: 12px; border-radius: 12px; font-weight: 600; cursor: pointer; font-size: 14px; }
.history-result { margin-top: 12px; font-size: 13px; background: #ffffff; border: 1px solid var(--card-border); border-radius: 10px; padding: 10px 12px; }

.admin-footer-link { text-align: center; margin-top: 16px; }
.admin-footer-link a { font-size: 12px; color: var(--text-muted); }

.fallback-screen { display: none; text-align: center; padding: 60px 20px; }
.maint-title { color: var(--danger); }
