@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;700&display=swap");

:root {
    --tis-navy: #0e1c53;
    --tis-mid: #1c4ea1;
    --tis-blue: #1496ff;
    --tis-aqua: #47c2ff;
    --tis-ice: #eef7ff;
    --tis-white: #ffffff;
    --tis-text: #101a3a;
    --surface-glass: rgba(255, 255, 255, 0.8);
    --stroke: #cfe3ff;
    --radius-lg: 1.2rem;
    --radius-md: 0.9rem;
}

* {
    box-sizing: border-box;
}

html {
    font-size: clamp(15px, 0.25vw + 14px, 18px);
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--tis-text);
    min-height: 100dvh;
    background:
        radial-gradient(1300px 540px at -6% -8%, rgba(65, 166, 255, 0.24), transparent 62%),
        radial-gradient(1200px 500px at 110% 110%, rgba(12, 35, 96, 0.13), transparent 58%),
        linear-gradient(150deg, #ffffff 0%, #f4faff 40%, #edf6ff 100%);
    animation: page-enter 560ms ease-out both;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, #ffffff 86%, #e7f2ff);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(14px);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: clamp(66px, 6vw, 76px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #35528f;
    text-decoration: none;
    font-weight: 700;
    padding: 0.35rem 0.1rem;
    border-bottom: 2px solid transparent;
    transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover {
    color: var(--tis-navy);
    border-color: #8fc2ff;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Sora", "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tis-navy);
    text-decoration: none;
}

.brand-logo {
    width: clamp(42px, 4vw, 50px);
    height: clamp(42px, 4vw, 50px);
    object-fit: contain;
}

.nav-action {
    text-decoration: none;
    color: var(--tis-navy);
    border: 1px solid #b9d9ff;
    background: linear-gradient(180deg, #ffffff, #f5faff);
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-logout-form {
    margin: 0;
}

.nav-action-ghost {
    background: #fff;
    cursor: pointer;
}

.nav-action:hover {
    transform: translateY(-1px);
    border-color: #94c6ff;
    box-shadow: 0 10px 24px rgba(19, 72, 167, 0.14);
}

.hero {
    padding: clamp(2.2rem, 8vw, 4.2rem) 0 clamp(1.8rem, 4.5vw, 2.8rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1rem, 2.3vw, 2rem);
    align-items: stretch;
}

.tag {
    margin: 0;
    color: var(--tis-mid);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.72rem, 0.35vw + 0.66rem, 0.86rem);
}

h1 {
    font-family: "Sora", sans-serif;
    margin: 0.45rem 0 0.72rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    color: var(--tis-navy);
}

.lead {
    margin: 0;
    font-size: clamp(1rem, 0.8vw + 0.9rem, 1.24rem);
    line-height: 1.72;
    max-width: 46ch;
}

/* Page-specific heading for verification pages */
.verify-page-title {
    margin: 0.3rem 0 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-family: "Sora", sans-serif;
    color: var(--tis-navy);
}

/* Not-found result title styling */
.verify-result-title-notfound {
    color: #7a1f1f;
}

.hero-actions {
    margin-top: 1.34rem;
    display: flex;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.74rem 1.18rem;
    border-radius: 0.82rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(95deg, #21a4ff 0%, #1c4ea1 55%, #13317c 100%);
    color: var(--tis-white);
    box-shadow: 0 12px 24px rgba(28, 78, 161, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--tis-mid);
    border: 1px solid #b6d8ff;
}

.hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(165deg, #10296e 2%, #0a1c55 68%);
    color: var(--tis-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 2vw, 1.6rem);
    box-shadow: 0 24px 48px rgba(12, 35, 95, 0.22);
}

.hero-card h2,
.hero-card p {
    color: #ffffff;
}

.info-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    align-items: stretch;
}

.info-highlight {
    margin: 0;
}

.info-highlight h2 {
    color: #ffffff;
}

.content-panel {
    background: var(--surface-glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 14px 30px rgba(18, 57, 133, 0.08);
}

.page-copy {
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 0.85rem;
}

.content-list {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.content-list li {
    line-height: 1.65;
}

.service-item h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    color: var(--tis-mid);
    font-size: 1rem;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(60, 190, 255, 0.5), transparent 64%);
    z-index: -1;
}

.section {
    padding: clamp(1.5rem, 4vw, 2.4rem) 0;
}

.section h2 {
    margin-top: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.25rem, 1.3vw + 1rem, 2rem);
    color: var(--tis-navy);
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.72rem, 1.4vw, 1rem);
}

.service-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #d7e9ff;
    background: var(--surface-glass);
    box-shadow: 0 8px 20px rgba(18, 57, 133, 0.08);
    backdrop-filter: blur(6px);
    transform: translateY(8px);
    opacity: 0;
    animation: card-reveal 560ms ease forwards;
}

.service-item:nth-child(2) { animation-delay: 60ms; }
.service-item:nth-child(3) { animation-delay: 120ms; }
.service-item:nth-child(4) { animation-delay: 180ms; }
.service-item:nth-child(5) { animation-delay: 240ms; }
.service-item:nth-child(6) { animation-delay: 300ms; }

.section-alt {
    background: linear-gradient(180deg, #f7fbff, #edf6ff);
    border-top: 1px solid #d8e7ff;
    border-bottom: 1px solid #d8e7ff;
}

.subtle {
    color: #365092;
}

.sla-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.sla-grid article {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #d7e9ff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 18px rgba(18, 57, 133, 0.08);
}

.sla-grid h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: var(--tis-mid);
    font-size: 1rem;
}

.sla-grid p {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tis-navy);
}

.cert-section-head {
    margin-bottom: 1.75rem;
}

.cert-section-head h2 {
    margin-bottom: 0.4rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.cert-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #c8deff;
    border-left: 4px solid var(--tis-navy);
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    box-shadow: 0 6px 20px rgba(18, 57, 133, 0.09);
}

.cert-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c3f9e 0%, #1a56db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-top: 2px;
}

.cert-card-body {
    flex: 1;
}

.cert-authority {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1a56db;
}

.cert-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tis-navy);
    line-height: 1.3;
}

.cert-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #365092;
    line-height: 1.55;
}

.site-footer {
    padding: 1.2rem 0 2rem;
    color: #2f4e94;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2f4e94;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--tis-navy);
}

.auth-shell,
.dashboard-shell {
    min-height: min(70vh, 760px);
    display: grid;
    align-items: center;
}

.auth-grid {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(560px, 100%);
    background: color-mix(in srgb, #ffffff 88%, #e9f4ff);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2.3vw, 1.8rem);
    box-shadow: 0 20px 38px rgba(15, 48, 120, 0.14);
}

.auth-card h1,
.dash-header h1 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.auth-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.auth-form label {
    display: grid;
    gap: 0.34rem;
    font-weight: 600;
    color: var(--tis-navy);
}

.auth-form input {
    width: 100%;
    border: 1px solid #bdd7fb;
    border-radius: 0.75rem;
    padding: 0.68rem 0.8rem;
    background: #fff;
    font: inherit;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form-grid label:has(input[name="password1"]),
.auth-form-grid label:has(input[name="password2"]),
.auth-form-grid .btn {
    grid-column: 1 / -1;
}

.auth-help {
    margin-bottom: 0;
}

.auth-forgot {
    text-align: right;
    font-size: 0.9rem;
    margin-top: -0.3rem;
}

.auth-forgot a {
    color: var(--tis-mid);
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--stroke);
    margin: 1.2rem 0;
}

.auth-card-wide {
    width: min(760px, 100%);
}

.auth-list {
    display: grid;
    gap: 0.55rem;
}

.auth-list-item {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid #cfe3ff;
    border-radius: 0.7rem;
    padding: 0.62rem 0.72rem;
    background: #fff;
    color: var(--tis-text);
    font-weight: 600;
}

.auth-list-item input[type="radio"] {
    margin: 0;
}

.auth-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.auth-pill-success {
    background: #e8f8ef;
    border-color: #aee9c7;
    color: #1a6b3c;
}

.auth-pill-warning {
    background: #fffbea;
    border-color: #ffe08a;
    color: #7a5c00;
}

.auth-pill-neutral {
    background: #eef4ff;
    border-color: #c9dcff;
    color: #244b8d;
}

.auth-actions-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.auth-error {
    background: #fff0f0;
    border: 1px solid #ffc0c0;
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
    color: #a00;
    font-size: 0.95rem;
    margin: 0;
}

.messages-bar {
    padding: 0.5rem 0;
}

.message {
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message--success {
    background: #e8f8ef;
    border: 1px solid #aee9c7;
    color: #1a6b3c;
}

.message--warning {
    background: #fffbea;
    border: 1px solid #ffe08a;
    color: #7a5c00;
}

.message--error {
    background: #fff0f0;
    border: 1px solid #ffc0c0;
    color: #a00;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dash-cards {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-card {
    background: var(--surface-glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(20, 63, 146, 0.1);
}

.dash-card h2 {
    margin-top: 0;
}

.dash-card-alert {
    background: #fffbea;
    border: 1px solid #ffe08a;
}

.dash-card-alert h2 {
    color: #7a5c00;
}

.dash-card-alert p {
    color: #5d4700;
}

.dash-form {
    margin-top: 1rem;
}

.dash-menu {
    margin-top: 1.4rem;
}

.dash-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.dash-menu-head h2 {
    margin: 0;
}

.dash-menu-head p {
    margin: 0;
    color: #35528f;
    max-width: 42ch;
}

.dash-menu-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-menu-item {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    text-decoration: none;
    background:
        radial-gradient(220px 140px at 110% -20%, rgba(71, 194, 255, 0.18), transparent 58%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.96));
    border: 1px solid #cde2ff;
    border-radius: var(--radius-md);
    padding: 1rem 1rem 0.95rem;
    min-height: 180px;
    box-shadow: 0 12px 26px rgba(20, 63, 146, 0.1);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.dash-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.58rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(140deg, #2aa8ff, #1c4ea1);
}

.dash-menu-item h3 {
    margin: 0.2rem 0 0;
    color: var(--tis-navy);
    font-family: "Sora", sans-serif;
    font-size: 1.08rem;
}

.dash-menu-item p {
    margin: 0;
    color: #2d4a89;
    line-height: 1.5;
}

.dash-menu-cta {
    margin-top: auto;
    font-weight: 700;
    color: #1b66cf;
    font-size: 0.92rem;
}

.dash-menu-item:hover {
    transform: translateY(-2px);
    border-color: #97c6ff;
    box-shadow: 0 18px 30px rgba(20, 63, 146, 0.16);
}

/* ── Wallet stat widget ── */
.dash-stat-row {
    margin-bottom: 1rem;
}

.dash-stat-card {
    background: linear-gradient(135deg, #0e1c53 0%, #1c4ea1 100%);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 12px 28px rgba(14, 28, 83, 0.28);
}

.dash-stat-content {}

.dash-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.dash-stat-number {
    font-family: "Sora", sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.dash-stat-unit {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.dash-stat-link {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 150ms ease;
}

.dash-stat-link:hover {
    color: #fff;
}

.dash-stat-deco {
    opacity: 0.12;
    flex-shrink: 0;
    color: #fff;
}

/* ── Role badge in header ── */
.dash-role-badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(28, 78, 161, 0.1);
    border: 1px solid rgba(28, 78, 161, 0.2);
    color: #1c4ea1;
}

/* ── Quick actions strip (owner/staff only) ── */
.dash-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
    padding: 0.85rem 1.1rem;
    background: var(--surface-glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
}

.dash-quick-actions-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #35528f;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.api-key-reveal {
    background: #fffbea;
    border: 1px solid #ffe08a;
    border-radius: var(--radius-md);
    padding: 1rem;
}

.api-key-reveal h2 {
    margin-top: 0;
    color: #7a5c00;
}

.api-key-value-wrap {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    flex-wrap: wrap;
}

.api-key-value-wrap input {
    flex: 1 1 360px;
    border: 1px solid #d8d8d8;
    border-radius: 0.7rem;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 0.7rem;
    overflow: hidden;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.65rem 0.6rem;
    border-bottom: 1px solid #e7f0ff;
    vertical-align: top;
    font-size: 0.94rem;
}

.data-table th {
    background: #f4f9ff;
    color: var(--tis-navy);
    font-weight: 700;
}

.invoice-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.invoice-status-draft {
    background: #eef4ff;
    color: #2f4e94;
}

.invoice-status-issued {
    background: #e7f7ff;
    color: #0b5b8e;
}

.invoice-status-paid {
    background: #e8f8ef;
    color: #1a6b3c;
}

.invoice-status-overdue {
    background: #fff0f0;
    color: #a12020;
}

.invoice-status-cancelled {
    background: #f1f3f7;
    color: #555;
}

.invoice-item-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.inv-item-desc {
    margin-bottom: 0.6rem;
}

.inv-item-desc .inv-field-label,
.inv-item-desc label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.inv-item-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.inv-field-label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.inv-item-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--stroke);
}

.inv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.inv-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary, #1f497e);
    cursor: pointer;
    flex-shrink: 0;
}

.inv-delete-label {
    color: #a12020;
    margin-left: auto;
}

.invoice-policy-note {
    margin: 0 0 0.75rem;
    color: #35528f;
    background: #eef6ff;
    border: 1px solid #cfe3ff;
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

/* ── Invoice detail: totals & bottom grid ─────────────────────────────────── */

.inv-discount-line strong {
    color: #1a6b3c;
}

.inv-discount-line {
    color: #1a6b3c;
}

.inv-total-line {
    font-size: 1.05rem;
    border-top: 1px solid var(--stroke);
    padding-top: 0.4rem;
    margin-top: 0.4rem;
}

.inv-exempt-badge {
    display: inline-block;
    background: #e8f8ef;
    color: #1a6b3c;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.inv-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .inv-bottom-grid {
        grid-template-columns: 1fr;
    }
    .inv-item-row {
        grid-template-columns: 1fr 1fr;
    }
}

.inv-payment-card {
    border-left: 4px solid #1f497e;
}

.inv-payment-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.inv-payment-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.inv-payment-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 7.5rem;
    flex-shrink: 0;
}

.inv-payment-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.inv-acct-num {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1f497e;
    letter-spacing: 0.06em;
}

.inv-address-card {
    border-left: 4px solid var(--stroke);
}

.inv-issuer-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f497e;
    margin-bottom: 0.25rem;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .service-grid,
    .sla-grid,
    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .hero-grid,
    .service-grid,
    .sla-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .nav-row {
        min-height: 64px;
    }

    .brand-link span {
        display: none;
    }

    .auth-form-grid,
    .dash-cards {
        grid-template-columns: 1fr;
    }

    .dash-menu-grid {
        grid-template-columns: 1fr;
    }

    .dash-menu-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

/* ══════════════════════════════════════════════
   VERIFICATION — Hub & Search pages
   ══════════════════════════════════════════════ */

/* ── Shared back link ── */
.verify-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #35528f;
    text-decoration: none;
    margin-bottom: 1.2rem;
}
.verify-back-link:hover { color: var(--tis-navy); }

/* ── Hero banner (hub page) ── */
.verify-hero-section { padding-bottom: 0; }

.verify-hero-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(130deg, #09173d 0%, #0e2870 45%, #1c4ea1 100%);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 24px 48px rgba(9, 23, 61, 0.3);
}

.verify-hero-banner::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(65, 194, 255, 0.38), transparent 64%);
    z-index: -1;
}

.verify-hero-left { position: relative; z-index: 1; }

.verify-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28em 0.8em;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.verify-hero-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 0.8rem;
}

.verify-hero-lead {
    font-size: clamp(0.9rem, 1vw + 0.8rem, 1.05rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin: 0;
    max-width: 44ch;
}

.verify-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.verify-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.86);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
}

.verify-hero-badges span::before {
    content: "\2022";
    font-size: 0.95rem;
    color: rgba(255,255,255,0.68);
    margin-right: 0.45rem;
}

.verify-hero-badges span:first-child::before {
    display: none;
}

/* Stats block inside hero */
.verify-hero-stats-block {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.verify-hero-stat {
    background: rgba(255,255,255,0.06);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.verify-hero-stat-num {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.verify-hero-stat-plus {
    font-size: 0.65em;
    vertical-align: super;
}

.verify-hero-stat-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.58);
}

/* ── Section header ── */
.verify-services-section { padding-top: 2rem; }

.verify-section-head {
    margin-bottom: 1.4rem;
}
.verify-section-head h2 { margin: 0 0 0.4rem; }
.verify-section-head p  { margin: 0; }

/* ── Service cards grid ── */
.verify-hub-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card base */
.verify-service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 63, 146, 0.1);
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
    border: 1px solid #cde2ff;
    background: #ffffff;
    padding: 0;
    position: relative;
}

/* Top accent bar via border-top */
.verify-service-card-live {
    border-top: 4px solid transparent;
    background-clip: padding-box;
    /* Gradient top border via pseudo-element */
}
.verify-service-card-live::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1c4ea1 0%, #21a4ff 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.verify-service-card-soon {
    border-top: 4px solid #cbd5e8;
    background: linear-gradient(175deg, #fafbfd, #f4f7fc);
    border-color: #dde8f5;
    cursor: default;
}

.verify-service-card-live:hover {
    transform: translateY(-3px);
    border-color: #97c6ff;
    box-shadow: 0 20px 36px rgba(20, 63, 146, 0.18);
}

/* Card body */
.verify-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.4rem 1.4rem 0;
}

/* Large service icon */
.verify-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(140deg, #2aa8ff, #1c4ea1);
    color: #fff;
    flex-shrink: 0;
}

.verify-service-icon-soon {
    background: linear-gradient(140deg, #b0c4de, #8a9ec0);
}

.verify-icon-md {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(140deg, #2aa8ff, #1c4ea1);
    color: #fff;
}

/* Status pills */
.verify-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.verify-status-live {
    background: #e8f8ef;
    border: 1px solid #9fd8bb;
    color: #1a6b3c;
}

.verify-status-soon {
    background: #f1f3f8;
    border: 1px solid #d0d8e8;
    color: #5c6e8a;
}

.verify-card-title {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tis-navy);
    margin: 0.9rem 0 0;
    padding: 0 1.4rem;
}

.verify-service-card-soon .verify-card-title {
    color: #5c6e8a;
}

.verify-card-desc {
    font-size: 0.88rem;
    color: #2d4a89;
    line-height: 1.65;
    margin: 0.5rem 0 0;
    padding: 0 1.4rem;
    flex: 1;
}

.verify-service-card-soon .verify-card-desc {
    color: #7a8eac;
}

.verify-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    margin-top: 1rem;
    border-top: 1px solid #eef4ff;
}

.verify-service-card-soon .verify-card-footer {
    border-top-color: #e5eaf3;
}

.verify-cost-pill {
    display: inline-block;
    padding: 0.22em 0.7em;
    background: #eef4ff;
    border: 1px solid #cde2ff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1c4ea1;
}

.verify-cost-pill-muted {
    background: #f1f3f8;
    border-color: #d0d8e8;
    color: #7a8eac;
}

.verify-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1b66cf;
}

.verify-lock-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a9ec0;
}

/* Compliance note */
.verify-compliance-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.6rem;
    padding: 0.85rem 1rem;
    background: #f8faff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: #35528f;
    line-height: 1.6;
}

/* ══ Voter-by-VIN search page ══ */
.verify-search-section { padding-top: 2rem; }

.verify-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7c9e;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}
.verify-breadcrumb a {
    color: #35528f;
    text-decoration: none;
    font-weight: 600;
}
.verify-breadcrumb a:hover { color: var(--tis-navy); }
.verify-breadcrumb span:not([aria-hidden]) {
    color: var(--tis-navy);
    font-weight: 600;
}

.verify-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.verify-search-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.verify-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #0e1c53, #1c4ea1);
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    white-space: nowrap;
}
.verify-wallet-pill strong { color: #fff; }

/* Two-column layout */
.verify-search-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Form panel */
.verify-form-panel {
    background: #ffffff;
    border: 1px solid rgba(61, 83, 133, 0.12);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: 0 18px 30px rgba(25, 57, 112, 0.09);
}

.verify-vin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--tis-navy);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.verify-vin-form input[type="text"] {
    padding: 0.85rem 1rem;
    border: 1px solid #c8d9f4;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-family: "Courier New", monospace;
    letter-spacing: 0.04em;
    color: var(--tis-navy);
    transition: border-color 180ms, box-shadow 180ms;
    width: 100%;
    box-sizing: border-box;
}

.verify-vin-form input[type="text"]:focus {
    outline: none;
    border-color: #1c4ea1;
    box-shadow: 0 0 0 3px rgba(28, 78, 161, 0.12);
}

.verify-required { color: #a00; margin-left: 0.1em; }

.verify-field-error {
    font-size: 0.85rem;
    color: #a00;
    font-weight: 700;
}

.verify-cost-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #eef4ff;
    border: 1px solid #cde2ff;
    border-left: 4px solid #1c4ea1;
    border-radius: 0.8rem;
    padding: 1rem 1.1rem;
    font-size: 0.92rem;
    color: #1c3f7a;
    line-height: 1.65;
    margin: 0.35rem 0 1.2rem;
}

.verify-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d4a89;
    line-height: 1.55;
    cursor: pointer;
    margin-bottom: 1.25rem;
}
.verify-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #1c4ea1;
}

.verify-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.85rem;
}

/* Alert banners */
.verify-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
}
.verify-alert-error {
    background: #fff2f2;
    border: 1px solid #f6c7c7;
    border-left: 4px solid #d44;
    color: #7a1f1f;
}

/* Info sidebar */
.verify-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verify-info-card {
    background: #ffffff;
    border: 1px solid rgba(61, 83, 133, 0.1);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: 0 12px 24px rgba(25, 57, 112, 0.06);
}

.verify-info-title {
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tis-navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.8rem;
}

.verify-info-steps,
.verify-info-fields {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #2d4a89;
    line-height: 1.7;
}

.verify-wallet-card {
    background: linear-gradient(135deg, #0e1c53, #1c4ea1);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: 0 14px 30px rgba(14, 28, 83, 0.23);
}

.verify-wallet-big {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1;
}
.verify-wallet-big span {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    margin-left: 0.3rem;
}

.verify-wallet-card .verify-info-title { color: rgba(255,255,255,0.75); }

.verify-wallet-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
}
.verify-wallet-link:hover { color: #fff; }

/* ── Result cards ── */
.verify-result-card {
    margin-top: 1.8rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(180deg, #fdfdff 0%, #eef5ff 100%);
    box-shadow: 0 20px 45px rgba(20, 63, 146, 0.12);
    border: 1px solid rgba(69, 107, 190, 0.15);
}

.verify-result-card-notfound {
    border-color: rgba(245, 192, 192, 0.55);
    background: linear-gradient(180deg, #fff8f8 0%, #fff9fa 100%);
}

.verify-result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 1.6rem;
    flex-wrap: wrap;
}

.verify-result-header-success {
    background: linear-gradient(90deg, #e9f9ee 0%, #f7fff6 100%);
    border-bottom: 1px solid rgba(111, 170, 120, 0.45);
}

.verify-result-header-notfound {
    background: linear-gradient(90deg, #fff6f7 0%, #fff9fa 100%);
    border-bottom: 1px solid rgba(245, 192, 192, 0.7);
}

.verify-result-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #d4f0e1;
    color: #1a6b3c;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}

.verify-result-icon-notfound {
    background: #ffdede;
    color: #9b2020;
}

.verify-result-title {
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #123165;
    margin: 0;
}

.verify-result-title-notfound {
    color: #8e2034;
}

.verify-result-subtitle {
    font-size: 0.95rem;
    color: #364d7b;
    margin: 0.2rem 0 0;
    max-width: 42rem;
}

.verify-deducted-pill {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: #254179;
    background: #eef4ff;
    border: 1px solid #cde2ff;
    border-radius: 999px;
    padding: 0.45em 1em;
}

.verify-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    background: #f7fcf8;
    padding: 1.5rem;
}

.verify-result-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(28, 78, 161, 0.05);
}

.verify-result-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #35528f;
}

.verify-result-value {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--tis-navy);
}

.verify-name {
    font-size: 1.02rem;
    font-weight: 700;
}

.verify-mono {
    font-family: "Courier New", monospace;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.verify-notfound-msg {
    padding: 1.2rem 1.5rem;
    font-size: 0.9rem;
    color: #7a1f1f;
    margin: 0;
    background: #fff8f8;
    line-height: 1.6;
}

/* ── Voter result: photo + striped table layout ── */
.verify-result-body {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #f7fcf8;
    align-items: flex-start;
}

.verify-photo-col {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.verify-voter-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 18px rgba(20, 63, 146, 0.2);
}

.verify-voter-photo-placeholder {
    width: 160px;
    height: 200px;
    border-radius: 0.65rem;
    background: #e8f0fb;
    border: 2px dashed #b8cce8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #5472a3;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.verify-photo-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tis-navy);
    text-align: center;
    margin: 0;
    line-height: 1.35;
}

.verify-data-col { flex: 1; min-width: 0; }

.verify-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 63, 146, 0.07);
}

.verify-data-table th {
    width: 32%;
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: #1c4ea1;
    white-space: nowrap;
    vertical-align: middle;
}

.verify-data-table td {
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: var(--tis-navy);
    border-bottom: 1px solid #e2ecf9;
    vertical-align: middle;
}

.verify-data-table tbody tr:nth-child(odd) td  { background: #f4f8ff; }
.verify-data-table tbody tr:nth-child(even) td { background: #ffffff; }
.verify-data-table tbody tr:last-child td       { border-bottom: none; }

.verify-data-table tbody tr:hover th { background: #163d84; }
.verify-data-table tbody tr:hover td { filter: brightness(0.97); }

/* ── Voter by Phone — result cards ── */
.vp-cards-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual voter card */
.vp-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(31, 73, 126, 0.16);
    border-left: 5px solid #1f497e;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(18, 57, 133, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(18, 57, 133, 0.14);
    border-color: rgba(31, 73, 126, 0.28);
}

/* Card header: name row */
.vp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
    border-bottom: 1px solid #dceeff;
}

.vp-card-name-block {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.vp-card-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f497e;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.vp-card-name {
    margin: 0 0 0.28rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #102653;
    letter-spacing: 0.01em;
}

.vp-card-vin {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #2e4f88;
}

.vp-card-vin .verify-mono {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    background: #eef4ff;
    border-radius: 0.35rem;
    color: #1f4078;
}

.vp-field-tag {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #1c4ea1;
    background: #deeaff;
    padding: 2px 7px;
    border-radius: 4px;
}

.vp-state-pill {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a3f90;
    background: rgba(35, 103, 235, 0.12);
    border: 1px solid #c0d8ff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Card body: LGA + Ward */
.vp-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e8f2ff;
    background: #f8fbff;
}

.vp-field {
    padding: 1rem 1.35rem;
    background: #ffffff;
}

.vp-card-fields .vp-field + .vp-field {
    border-left: 1px solid #e8f2ff;
}

.vp-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5f71a0;
    margin-bottom: 0.35rem;
}

.vp-field-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #162d57;
    line-height: 1.5;
}

/* Card footer: polling unit row */
.vp-card-footer {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #f7fbff;
    padding: 0.95rem 1.35rem;
}

.vp-card-footer .vp-field + .vp-field {
    border-left: 1px solid #e0ecff;
}

/* Strong enforced card styling for voter results */
.vp-card {
    border: 1px solid rgba(31, 73, 126, 0.18) !important;
    border-left: 5px solid #1f497e !important;
    box-shadow: 0 18px 42px rgba(18, 57, 133, 0.12) !important;
    background: #ffffff !important;
}

.vp-card-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%) !important;
}

.vp-card-fields,
.vp-card-footer {
    background: #f7fbff !important;
}

.vp-field {
    background: #ffffff !important;
    border-radius: 0.35rem !important;
}

.vp-field-grow {
    flex: 1;
}

/* Truncation notice */
.vp-truncation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: #fdf7e3;
    border: 1px solid #f0d98a;
    font-size: 0.82rem;
    color: #6b4c00;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .vp-card-fields {
        grid-template-columns: 1fr;
    }
    .vp-card-fields .vp-field + .vp-field {
        border-left: none;
        border-top: 1px solid #e8f2ff;
    }
    .vp-card-footer {
        flex-direction: column;
    }
    .vp-card-footer .vp-field + .vp-field {
        border-left: none;
        border-top: 1px solid #e0ecff;
    }
}

/* ── Dashboard verification menu item ── */
.dash-menu-item-verification {
    background:
        radial-gradient(220px 140px at 110% -20%, rgba(255, 160, 60, 0.14), transparent 58%),
        linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.96));
    border-color: #f5d9b0;
}
.dash-menu-item-verification .dash-menu-icon { background: linear-gradient(140deg, #f5a623, #e07b00); }
.dash-menu-item-verification h3             { color: #7a4a00; }
.dash-menu-item-verification p              { color: #7a5020; }
.dash-menu-item-verification .dash-menu-cta { color: #c4720a; }
.dash-menu-item-verification:hover          { border-color: #f0c070; box-shadow: 0 18px 30px rgba(200,120,10,0.16); }

/* ── Responsive ── */
@media (max-width: 820px) {
    .verify-hero-banner          { grid-template-columns: 1fr; }
    .verify-hero-left            { padding-right: 0; }
    .verify-hero-badges          { justify-content: center; }
    .verify-hero-stats-block     { grid-template-columns: repeat(4, 1fr); }
    .verify-hero-stat            { padding: 1rem; }
    .verify-search-layout        { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .verify-hub-grid             { grid-template-columns: 1fr; }
    .verify-result-grid          { grid-template-columns: 1fr 1fr; }
    .verify-result-body          { flex-direction: column; align-items: center; }
    .verify-photo-col            { flex: none; width: 100%; max-width: 200px; }
    .verify-voter-photo          { width: 100%; height: auto; aspect-ratio: 4/5; }
    .verify-voter-photo-placeholder { width: 100%; height: auto; aspect-ratio: 4/5; }
    .verify-hero-stats-block     { grid-template-columns: 1fr 1fr; }
    .verify-hero-badges          { gap: 0.65rem; }
    .verify-hero-badges span     { flex: 1 1 48%; justify-content: center; }
}

@media (max-width: 560px) {
    .verify-hero-badges span     { flex: 1 1 100%; }
    .verify-search-header        { flex-direction: column; align-items: stretch; }
    .verify-wallet-pill          { width: 100%; justify-content: center; }
}

@media (max-width: 440px) {
    .verify-result-grid          { grid-template-columns: 1fr; }
    .verify-data-table th        { font-size: 0.65rem; padding: 0.55rem 0.75rem; }
    .verify-data-table td        { font-size: 0.84rem; padding: 0.55rem 0.75rem; }
}
