/* Empower — single stylesheet, no external dependencies.
   Company palette: black, white and greys. A single restrained red is kept
   for error states and negative amounts only (a functional signal, not brand).
   Portal is mobile-first with large tap targets for low-tech-literacy users. */

:root {
    --brand: #111111;      /* primary = black */
    --brand-dark: #000000; /* hover / emphasis = pure black */
    --ink: #141414;        /* body text */
    --paper: #f4f4f5;      /* page background */
    --card: #ffffff;       /* cards / surfaces */
    --line: #dcdcdc;       /* borders */
    --muted: #5f5f5f;      /* secondary text */
    --muted-2: #8a8a8a;    /* fainter text */
    --shade: #efefef;      /* subtle fill (table heads, chips) */
    --bad: #b3261e;        /* error red — functional only */
    --ok-bg: #ececec;      /* success/notice background (neutral grey) */
    --bad-bg: #fbe9e7;     /* error background */
}

* { 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(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.brand-logo {
    height: 38px;
    width: 38px;
    border-radius: 8px;
    display: block;
}

.topbar-link { color: #cfcfcf; text-decoration: none; }
.topbar-link:hover { color: #fff; }
.topbar-user { color: #cfcfcf; 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.5rem; border-radius: 6px; }
.adminnav a:hover { background: #333333; }

.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: var(--muted); }

label { display: block; font-weight: 700; margin: 0.9rem 0 0.3rem; }
.help { font-size: 0.85rem; color: var(--muted); 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;
    color: var(--ink);
}

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

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

.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--shade); }
.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(--ink); border-left: 4px solid var(--brand); }
.alert-bad { background: var(--bad-bg); color: var(--bad); border-left: 4px solid var(--bad); }

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

/* Wallet */
.balance-card { text-align: center; padding: 2rem 1rem; }
.balance-number { font-size: 3.4rem; font-weight: 900; color: var(--brand); line-height: 1.1; }
.balance-label { font-size: 1.05rem; color: var(--muted); }
.balance-worth { font-size: 1.2rem; font-weight: 700; margin-top: 0.3rem; }
.expiry-note { font-size: 0.9rem; color: var(--muted); background: var(--shade); 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: var(--shade); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.qty-pos { color: var(--brand); font-weight: 700; }
.qty-neg { color: var(--bad); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Demo phone */
.demo-phone { background: var(--shade); 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: var(--muted-2); text-align: right; margin-top: 0.3rem; }
.demo-banner { background: var(--shade); border: 1px dashed var(--muted-2); 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(--brand); }
.tile .lbl { font-size: 0.85rem; color: var(--muted); }

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