/* Empower — single stylesheet, no external dependencies.
   Portal is mobile-first with large tap targets for low-tech-literacy users. */

:root {
    --green: #1b7a43;
    --green-dark: #135c32;
    --ink: #1c2b23;
    --paper: #f4f7f5;
    --card: #ffffff;
    --line: #d9e2dc;
    --bad: #b3261e;
    --ok-bg: #e2f3e8;
    --bad-bg: #fbe9e7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.5;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--green);
    color: #fff;
    padding: 0.75rem 1rem;
}

.brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
}

.topbar-link { color: #d8ecd0; text-decoration: none; }
.topbar-user { color: #d8ecd0; font-size: 0.9rem; }

.adminnav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.adminnav a { color: #fff; text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0.4rem; border-radius: 6px; }
.adminnav a:hover { background: var(--green-dark); }

.container { max-width: 480px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.container-wide { max-width: 1100px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

h1 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.15rem; }

p.intro { color: #47584e; }

label { display: block; font-weight: 700; margin: 0.9rem 0 0.3rem; }
.help { font-size: 0.85rem; color: #5c6d63; margin: 0.15rem 0 0; }

input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    font-size: 1.15rem;
    padding: 0.85rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
}

.btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem;
    margin-top: 1.25rem;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-secondary:hover { background: var(--ok-bg); }
.btn-inline { display: inline-block; width: auto; padding: 0.6rem 1.1rem; font-size: 1rem; margin-top: 0; }

.alert { padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-ok { background: var(--ok-bg); color: var(--green-dark); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }

.linkline { text-align: center; margin-top: 1.25rem; }
.linkline a { color: var(--green-dark); font-weight: 700; }

/* Wallet */
.balance-card { text-align: center; padding: 2rem 1rem; }
.balance-number { font-size: 3.4rem; font-weight: 900; color: var(--green-dark); line-height: 1.1; }
.balance-label { font-size: 1.05rem; color: #47584e; }
.balance-worth { font-size: 1.2rem; font-weight: 700; margin-top: 0.3rem; }
.expiry-note { font-size: 0.9rem; color: #8a6d1a; background: #fdf6e0; border-radius: 8px; padding: 0.5rem 0.75rem; margin-top: 1rem; }

/* Statement / tables */
table.list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.list th { background: #eaf1ec; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.qty-pos { color: var(--green-dark); font-weight: 700; }
.qty-neg { color: var(--bad); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Demo phone */
.demo-phone { background: #ece5dd; border-radius: 14px; padding: 1rem; }
.demo-msg {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.98rem;
}
.demo-msg time { display: block; font-size: 0.72rem; color: #8696a0; text-align: right; margin-top: 0.3rem; }
.demo-banner { background: #fdf6e0; border: 1px dashed #d4b94e; border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.85rem; margin-bottom: 1rem; }

/* Dashboard tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; }
.tile .num { font-size: 2rem; font-weight: 900; color: var(--green-dark); }
.tile .lbl { font-size: 0.85rem; color: #5c6d63; }

/* Big OTP input */
input.otp {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.5em;
    font-weight: 800;
}
