/* Bolt Bunny app pages (report, billing success). Copied from dashboard.html's
   inline styles on 2026-10-30 so these pages match it exactly. */
:root {
    --accent: #ff006e;
    --cyan: #00d4ff;
    --green: #00c853;
    --orange: #ff9100;
    --purple: #a855f7;
    --navy: #0f1629;
    --navy-light: #1a2240;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.10);
    --text: #e8ecf5;
    --muted: rgba(255,255,255,0.58);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* The UA rule for [hidden] is display:none at very low specificity, so any
   class that sets display (.btn is inline-flex) silently defeats el.hidden.
   This keeps the hidden property actually meaning hidden. */
[hidden] { display: none !important; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--navy);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
a { color: inherit; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: .75rem 1rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

header {
    position: relative; z-index: 100; padding: 1rem 0;
    background: rgba(15,22,41,0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
    font-family: 'Nunito', 'Inter', sans-serif; font-size: 1.4rem; font-weight: 800;
    color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .6rem;
}
.logo-icon { width: 44px; height: 44px; border-radius: 12px; }
nav { display: flex; gap: 1.4rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }
.header-right { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
    display: none; background: none; border: 0; padding: .5rem; margin: -.5rem;
    cursor: pointer; color: #e5e7eb; line-height: 0; border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.10); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1 { font-family: 'Nunito', sans-serif; font-size: 1.9rem; font-weight: 800; margin-bottom: .25rem; }
.sub { color: var(--muted); font-size: .95rem; }
main { padding: 2rem 0 4rem; }
section { margin-top: 2.25rem; }
h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; }
.stat .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat .value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-top: .3rem; }
.stat .unit { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .2rem; }
.stat .range { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.stat.dl .value { color: var(--accent); }
.stat.ul .value { color: var(--cyan); }
.stat.pg .value { color: var(--purple); }
.stat.am .value { color: var(--orange); }

.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #d6005c; color: #fff; border: 0; border-radius: 10px;
    padding: .6rem 1.05rem; font-size: .88rem; font-weight: 600; cursor: pointer;
    text-decoration: none; font-family: inherit;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }
.btn.danger { background: transparent; border: 1px solid rgba(255,80,80,.45); color: #ff8080; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

select, input[type=text], input[type=url] {
    background: var(--navy-light); border: 1px solid var(--border); color: var(--text);
    border-radius: 9px; padding: .55rem .7rem; font-family: inherit; font-size: .88rem;
}
label { font-size: .82rem; color: var(--muted); display: block; margin-bottom: .3rem; }

.chart-wrap { overflow-x: auto; }
svg.chart { width: 100%; min-width: 480px; height: 260px; display: block; }
.chart-empty { color: var(--muted); text-align: center; padding: 3rem 1rem; font-size: .92rem; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
tbody tr:hover { background: rgba(255,255,255,0.03); }

.locked {
    text-align: center; padding: 2.5rem 1.25rem;
    border: 1px dashed var(--border); border-radius: 14px; background: var(--card);
}
.locked h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.locked p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.15rem; font-size: .92rem; }

.badge {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.badge.pro { background: rgba(255,0,110,.15); border-color: rgba(255,0,110,.4); color: #ff6ba6; }
.badge.business { background: rgba(0,212,255,.14); border-color: rgba(0,212,255,.4); color: #6fe3ff; }

.keyrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.keyrow code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--cyan); }
.newkey {
    background: rgba(0,200,83,.10); border: 1px solid rgba(0,200,83,.35);
    border-radius: 10px; padding: .9rem; margin-bottom: 1rem;
}
.newkey code {
    display: block; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85rem; color: #7cf5a8; margin: .5rem 0;
}
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.msg { font-size: .85rem; margin-top: .6rem; }
.msg.err { color: #ff8080; }
.msg.ok { color: #7cf5a8; }
.muted { color: var(--muted); font-size: .86rem; }
footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 768px) {
    header { position: relative; }
    nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
        background: rgba(15,22,41,0.98); border-bottom: 1px solid var(--border);
    }
    nav.open { display: flex; }
    nav a { padding: .75rem 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: inline-flex; }
    h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Added for the report and billing pages */
.btn { min-height: 44px; }
.badge.pass { background: rgba(255,204,51,.14); border-color: rgba(255,204,51,.45); color: #ffd95c; }
.notice { border-radius: 12px; padding: 1rem 1.15rem; margin-top: 1.25rem; border: 1px solid rgba(255,204,51,.4); background: rgba(255,204,51,.08); }
.notice p { margin: 0 0 .6rem; }
.notice p:last-child { margin-bottom: 0; }

/* Tap targets: 44px minimum on every control (2026-10-30) */
nav a, .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.logo { min-height: 44px; }
.nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact-link { min-height: 44px; }
select { min-height: 44px; }
