/* My Bio Fit — verification page (light theme) */

:root {
    --purple:   #9479D5;
    --purple-d: #7a5fc0;
    --navy:     #14182B;
    --text-dark:#14182B;
    --ok:       #22c55e;
    --warn:     #f59e0b;
    --bad:      #ef4444;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 40px;
    background: #ffffff;
    color: var(--text-dark);
    font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", "Cairo", system-ui, -apple-system, sans-serif;
    line-height: 1.65;
}

/* ---------- header / footer ---------- */

.site-head { margin-bottom: 24px; }

.brand {
    height: 72px;
    width: auto;
    display: block;
}

.site-foot {
    margin-top: auto;
    padding-top: 30px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--purple); text-decoration: none; border-bottom: 1px solid rgba(148,121,213,.4); }
.site-foot a:hover { color: var(--purple-d); }

/* ---------- layout ---------- */

.wrap {
    width: 100%;
    max-width: 460px;
}

.card {
    --accent: var(--purple);
    position: relative;
    background: var(--purple);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 24px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,.12);
    overflow: hidden;
    color: #ffffff;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: #ffffff;
}

.card h1,
.card .lead,
.card .meta,
.card .meta dt,
.card .meta dd,
.card .mono,
.card .hint,
.card .alert,
.card p {
    color: #ffffff;
}

.card.tone-ok   { --accent: var(--ok); }
.card.tone-warn { --accent: var(--warn); }
.card.tone-bad  { --accent: var(--bad); }

.badge {
    width: 66px;
    height: 66px;
    margin: 4px auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
    background: #ffffff;
    box-shadow: 0 0 0 8px rgba(255,255,255,.25);
}

/* ---------- result table ---------- */

.meta {
    margin: 24px 0 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,.25);
    text-align: right;
    font-size: 14px;
}

.meta > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.meta > div:last-child { border-bottom: 0; }

.meta dt { color: rgba(255,255,255,.75); }
.meta dd { margin: 0; font-weight: 700; text-align: left; word-break: break-word; }

.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .6px; }

/* ---------- form ---------- */

.lookup {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.lookup input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    font-size: 17px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    letter-spacing: 1.5px;
    text-align: center;
    color: #ffffff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lookup input::placeholder { color: rgba(255,255,255,.65); letter-spacing: 1.5px; }
.lookup input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

.lookup button,
.btn {
    display: inline-block;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--purple);
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .06s;
    white-space: nowrap;
}
.lookup button:hover,
.btn:hover { background: #f3f4f6; }
.lookup button:active,
.btn:active { transform: translateY(1px); }

.btn-danger {
    margin-top: 24px;
    width: 100%;
    color: #ffffff;
    background: var(--bad);
}
.btn-danger:hover { background: #f26060; }

.hint {
    margin: 18px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

.alert {
    margin: 18px 0 0;
    padding: 12px 14px;
    font-size: 14px;
    text-align: right;
    color: #ffe4e4;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 12px;
}

.again {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14px;
}
.again a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 1px;
}
.again a:hover { opacity: .85; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 380px) {
    .lookup { flex-direction: column; }
    .lookup button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
