/* OyaScan Agent panel - built phone-first; most agents work from a phone. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    -webkit-text-size-adjust: 100%;
}

/* ---------- auth ---------- */
.ag-auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.ag-auth { width: 100%; max-width: 380px; }
.ag-auth-head { text-align: center; margin-bottom: 22px; }
.ag-auth-logo {
    width: 64px; height: 64px; border-radius: 50%; background: #2E7D32; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px;
}
.ag-auth-head h1 { font-size: 21px; font-weight: 700; }
.ag-auth-head p { font-size: 14px; color: #6b7280; margin-top: 5px; }
.ag-auth-foot { text-align: center; font-size: 14px; color: #6b7280; margin-top: 18px; }
.ag-auth-foot a, .ag-link { color: #2E7D32; font-weight: 600; text-decoration: none; }

.ag-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.ag-field { margin-bottom: 16px; }
.ag-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: #374151; }
.ag-field input {
    width: 100%; padding: 14px; border: 1.5px solid #e5e7eb; border-radius: 9px;
    font-family: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
}
.ag-field input:focus { outline: none; border-color: #2E7D32; }
.ag-btn {
    width: 100%; background: #2E7D32; color: #fff; border: none; border-radius: 9px;
    padding: 15px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.ag-btn:active { background: #266b2a; }

.ag-alert { padding: 13px 15px; border-radius: 9px; font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
.ag-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ag-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------- dashboard ---------- */
.ag-top { background: #2E7D32; color: #fff; padding: 20px 18px 30px; }
.ag-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ag-hello { font-size: 13px; opacity: .85; }
.ag-name { font-size: 19px; font-weight: 600; margin-top: 2px; }
.ag-out { color: #fff; opacity: .85; font-size: 19px; text-decoration: none; padding: 4px; }

.ag-id-box {
    background: rgba(255,255,255,.15); border: 1px dashed rgba(255,255,255,.5);
    border-radius: 11px; padding: 13px 15px; margin-top: 17px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ag-id-label { font-size: 11px; opacity: .85; letter-spacing: .5px; }
.ag-id-code { font-size: 19px; font-weight: 700; letter-spacing: 1px; margin-top: 2px; }
.ag-copy {
    background: #fff; color: #2E7D32; border: none; border-radius: 7px;
    padding: 9px 13px; font-family: inherit; font-size: 12px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}

.ag-wrap { padding: 0 14px 34px; max-width: 900px; margin: 0 auto; }

.ag-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: -18px; }
.ag-stat { background: #fff; border-radius: 13px; padding: 16px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.ag-stat-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 9px; }
.ag-stat-ico.green { background: #E8F5E9; color: #2E7D32; }
.ag-stat-ico.blue  { background: #E3F2FD; color: #1565C0; }
.ag-stat-ico.amber { background: #FFF8E1; color: #F57F17; }
.ag-stat-ico.grey  { background: #ECEFF1; color: #546E7A; }
.ag-stat-val { font-size: 20px; font-weight: 700; line-height: 1.2; word-break: break-word; }
.ag-stat-lab { font-size: 11.5px; color: #6b7280; margin-top: 3px; line-height: 1.4; }

.ag-sec-title { font-size: 15px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.ag-sec-title .ag-count { font-size: 12px; font-weight: 500; color: #6b7280; }

.ag-hotel { background: #fff; border-radius: 13px; padding: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.07); margin-bottom: 11px; }
.ag-hotel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ag-hotel-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ag-hotel-meta { font-size: 12px; color: #6b7280; margin-top: 4px; }
.ag-hotel-earn { font-size: 16px; font-weight: 700; color: #2E7D32; white-space: nowrap; }
.ag-hotel-orders { font-size: 11px; color: #9ca3af; text-align: right; margin-top: 2px; }

.ag-pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; margin-top: 9px; }
.ag-pill-live { background: #E8F5E9; color: #2E7D32; }
.ag-pill-done { background: #ECEFF1; color: #546E7A; }
.ag-pill-susp { background: #FFEBEE; color: #C62828; }

.ag-empty { background: #fff; border-radius: 13px; padding: 36px 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.ag-empty i { font-size: 34px; color: #d1d5db; margin-bottom: 13px; }
.ag-empty h3 { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.ag-empty p { font-size: 13.5px; color: #6b7280; line-height: 1.65; }

.ag-note { background: #fff; border-radius: 13px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.07); font-size: 13px; color: #4b5563; line-height: 1.7; }
.ag-note strong { color: #1f2937; }

/* Wider screens: let the cards breathe, don't stretch them */
@media (min-width: 620px) {
    .ag-stats { grid-template-columns: repeat(4, 1fr); }
    .ag-top { padding: 26px 24px 34px; }
    .ag-wrap { padding: 0 24px 40px; }
}
