:root {
    --brand: #175cd3;
    --brand-dark: #0b3b83;
    --brand-soft: #eaf2ff;
    --ink: #101828;
    --text: #344054;
    --muted: #667085;
    --line: #e4e7ec;
    --surface: #ffffff;
    --canvas: #f7f9fc;
    --success: #067647;
    --success-soft: #ecfdf3;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --shadow: 0 16px 44px rgba(16, 24, 40, .08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font: 15px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.16;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

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

.button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.button-primary {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 7px 18px rgba(23, 92, 211, .2);
}

.button-primary:hover {
    color: #fff;
    background: var(--brand-dark);
}

.button-secondary {
    color: var(--ink);
    background: #fff;
    border-color: #d0d5dd;
}

.button-secondary:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.button-ghost {
    color: var(--muted);
    background: transparent;
}

.button-wide {
    width: 100%;
}

.button-success {
    color: #fff;
    background: var(--success);
    border-color: var(--success);
}

.brand-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-radius: 17px;
    box-shadow: 0 9px 22px rgba(23, 92, 211, .24);
    font-weight: 900;
    letter-spacing: -.05em;
}

.brand-mark-small {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: .88rem;
}

.site-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(228, 231, 236, .8);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand,
.admin-brand,
.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.site-brand > span:last-child,
.admin-brand > span:last-child,
.login-brand > span:last-child {
    display: grid;
    line-height: 1.25;
}

.site-brand strong,
.admin-brand strong,
.login-brand strong {
    color: var(--ink);
}

.site-brand small,
.admin-brand small,
.login-brand small {
    color: var(--muted);
    font-size: .7rem;
}

.header-inner nav {
    display: flex;
    gap: 28px;
}

.header-inner nav a {
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
}

.header-inner nav a:hover {
    color: var(--brand);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 102px;
    background:
        radial-gradient(circle at 80% 18%, rgba(23, 92, 211, .13), transparent 31%),
        radial-gradient(circle at 13% 80%, rgba(18, 183, 106, .08), transparent 26%),
        linear-gradient(180deg, #f9fbff, #fff);
}

.hero::before {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -330px;
    top: -300px;
    border: 1px solid rgba(23, 92, 211, .15);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    align-items: center;
    gap: 74px;
}

.hero-copy h1 {
    max-width: 720px;
    margin-bottom: 24px;
}

.hero-copy > p {
    max-width: 650px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.12rem;
}

.verify-form {
    max-width: 650px;
}

.verify-form > label,
.form-stack > label,
.form-grid > label,
.inline-status-form > label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: .86rem;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
}

input {
    min-height: 44px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

label small,
.verify-form > small,
.form-help {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

.verify-control {
    display: flex;
    gap: 10px;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.verify-control input {
    border: 0;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .05em;
}

.verify-control .button {
    min-width: 130px;
}

.verify-form > small {
    display: block;
    margin-top: 8px;
}

.trust-row {
    display: flex;
    gap: 44px;
    margin-top: 36px;
}

.trust-row > div {
    display: grid;
}

.trust-row strong {
    color: var(--ink);
    font-size: 1.45rem;
}

.trust-row span {
    color: var(--muted);
    font-size: .78rem;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
}

.hero-visual::before {
    position: absolute;
    width: 380px;
    height: 380px;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 80px rgba(23, 92, 211, .21);
    content: "";
}

.demo-seal {
    position: relative;
    z-index: 1;
    display: grid;
    width: 250px;
    height: 250px;
    place-items: center;
    align-content: center;
    color: var(--brand-dark);
    background: #fff;
    border: 9px solid #dbe9ff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--brand), 0 20px 48px rgba(16, 24, 40, .22);
}

.demo-shield {
    display: grid;
    width: 62px;
    height: 70px;
    margin-bottom: 8px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    clip-path: polygon(50% 0, 100% 17%, 89% 75%, 50% 100%, 11% 75%, 0 17%);
    font-size: 2rem;
    font-weight: 900;
}

.demo-seal > span {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.demo-seal > strong {
    color: var(--ink);
    font-size: 1.72rem;
    letter-spacing: -.04em;
}

.demo-seal > small {
    margin-top: 6px;
    color: var(--muted);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.floating-card {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: 46px;
    display: flex;
    min-width: 240px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.floating-card > div {
    display: grid;
}

.floating-card small {
    color: var(--muted);
    font-size: .68rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #12b76a;
    border: 3px solid #d1fadf;
    border-radius: 50%;
    box-sizing: content-box;
}

.section {
    padding: 92px 0;
}

.section-muted {
    background: var(--canvas);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(16, 24, 40, .04);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 850;
}

.process-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
}

.process-grid > div > p {
    max-width: 480px;
    color: var(--muted);
}

.process-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.process-list li > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-weight: 800;
}

.process-list p {
    margin: 3px 0 0;
    color: var(--muted);
}

.site-footer {
    padding: 44px 0;
    color: #98a2b3;
    background: #101828;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner strong {
    color: #fff;
}

.footer-inner p {
    margin: 3px 0 0;
}

.footer-inner > div:last-child {
    display: grid;
    justify-items: end;
}

.footer-inner a {
    color: #fff;
}

.verify-page {
    min-height: 680px;
    padding: 70px 0 90px;
    background: var(--canvas);
}

.verify-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 28px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.certificate,
.record-card,
.verify-aside {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(16, 24, 40, .05);
}

.certificate {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding-right: 120px;
}

.certificate::before {
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -65px;
    background: var(--brand-soft);
    border-radius: 50%;
    content: "";
}

.certificate-valid {
    border-top: 4px solid #12b76a;
}

.certificate-error {
    border-top: 4px solid var(--danger);
}

.certificate-neutral {
    padding-right: 34px;
    border-top: 4px solid var(--brand);
}

.certificate h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.certificate p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.certificate-status-icon {
    position: absolute;
    z-index: 1;
    top: 28px;
    right: 32px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: var(--success);
    border: 7px solid var(--success-soft);
    border-radius: 50%;
    box-sizing: content-box;
    font-size: 1.8rem;
    font-weight: 900;
}

.certificate-error .certificate-status-icon {
    background: var(--danger);
    border-color: var(--danger-soft);
}

.warning-box {
    margin-top: 20px;
    padding: 13px 15px;
    color: var(--danger);
    background: var(--danger-soft);
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 650;
}

.record-card {
    margin-top: 20px;
}

.record-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.record-heading > div:last-child {
    display: grid;
}

.record-heading span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.record-heading h2 {
    margin: 2px 0 0;
    font-size: 1.6rem;
}

.record-monogram {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 850;
}

.record-list,
.admin-record-list {
    margin: 8px 0 0;
}

.record-list > div,
.admin-record-list > div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

.record-list dt,
.admin-record-list dt {
    color: var(--muted);
}

.record-list dd,
.admin-record-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

.record-description {
    margin: 22px 0 0;
    padding: 18px;
    background: var(--canvas);
    border-radius: 10px;
}

.verify-aside {
    position: sticky;
    top: 24px;
}

.verify-aside h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.check-list {
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: .88rem;
}

.check-list span {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--success);
    background: var(--success-soft);
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 900;
}

.aside-note {
    margin-top: 25px;
    padding: 16px;
    background: var(--warning-soft);
    border-radius: 10px;
}

.aside-note strong {
    color: var(--warning);
}

.aside-note p {
    margin: 3px 0 0;
    color: #7a2e0e;
    font-size: .8rem;
}

.directory-hero {
    padding: 76px 0 58px;
    text-align: center;
    background: linear-gradient(180deg, #f6f9ff, #fff);
}

.directory-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.directory-hero > .container > p {
    color: var(--muted);
}

.directory-search {
    display: flex;
    max-width: 650px;
    gap: 10px;
    margin: 28px auto 0;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.directory-search input {
    border: 0;
    box-shadow: none;
}

.directory-count {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.directory-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.directory-card-copy {
    min-width: 0;
}

.directory-card h2 {
    margin: 8px 0 3px;
    font-size: 1.25rem;
}

.directory-card p {
    margin: 5px 0;
    color: var(--muted);
    font-size: .82rem;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    font-size: .84rem;
    font-weight: 750;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    padding: 3px 9px;
    color: #344054;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}

.status-verified,
.status-active,
.status-current,
.status-login,
.status-created,
.status-paid,
.status-fulfilled,
.status-used {
    color: var(--success);
    background: var(--success-soft);
}

.status-pending,
.status-pending_payment,
.status-under_review,
.status-scheduled,
.status-suspended,
.status-domain_mismatch {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-expired,
.status-revoked,
.status-unverified,
.status-not_found,
.status-invalid,
.status-disabled,
.status-cancelled,
.status-unchecked,
.status-recheck_due {
    color: var(--danger);
    background: var(--danger-soft);
}

.status-payment_error,
.status-refunded {
    color: var(--danger);
    background: var(--danger-soft);
}

.status-updated,
.status-status_changed,
.status-profile_updated,
.status-logout {
    color: #175cd3;
    background: #eff8ff;
}

.notice {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .86rem;
}

.notice a {
    font-weight: 750;
    text-decoration: underline;
}

.notice-success {
    color: var(--success);
    background: var(--success-soft);
    border-color: #abefc6;
}

.notice-error {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #fecdca;
}

.notice-warning {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: #fedf89;
}

.notice-info {
    color: #175cd3;
    background: #eff8ff;
    border-color: #b2ddff;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 56px 24px;
    color: var(--muted);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.empty-state p {
    margin-bottom: 0;
}

.install-body,
.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(23, 92, 211, .14), transparent 30%),
        radial-gradient(circle at 90% 85%, rgba(18, 183, 106, .09), transparent 24%),
        var(--canvas);
}

.install-shell,
.login-shell {
    display: grid;
    min-height: 100vh;
    padding: 40px 20px;
    place-items: center;
}

.install-card,
.login-card {
    width: min(100%, 760px);
    padding: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(100%, 460px);
}

.install-card > .brand-mark {
    margin-bottom: 24px;
}

.install-card h1,
.login-card h1 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.install-card > p,
.login-card > p {
    color: var(--muted);
}

.install-card h2 {
    margin: 20px 0 5px;
    font-size: 1rem;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.span-2 {
    grid-column: span 2;
}

.login-brand {
    margin-bottom: 36px;
}

.login-brand + .eyebrow {
    margin-bottom: 8px;
}

.login-card .back-link {
    margin: 26px 0 0;
}

.admin-body {
    min-height: 100vh;
    background: var(--canvas);
}

.admin-sidebar {
    position: fixed;
    z-index: 50;
    display: flex;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    padding: 24px 16px;
    color: #d0d5dd;
    background: #101828;
    overflow-y: auto;
}

.admin-brand {
    margin: 0 8px 30px;
}

.admin-brand strong {
    color: #fff;
}

.admin-brand small {
    color: #98a2b3;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #d0d5dd;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 650;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.admin-nav a.active {
    box-shadow: inset 3px 0 var(--brand);
}

.admin-nav svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.admin-nav a:first-child svg {
    fill: currentColor;
    stroke: none;
}

.admin-sidebar-footer {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding: 20px 12px 2px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.admin-sidebar-footer a {
    color: #98a2b3;
    font-size: .77rem;
}

.admin-sidebar-footer a:hover {
    color: #fff;
}

.admin-main {
    min-height: 100vh;
    margin-left: 250px;
}

.admin-topbar {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 32px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.admin-topbar > div:first-of-type {
    display: grid;
    line-height: 1.25;
}

.admin-topbar > div:first-of-type > span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -.01em;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-user > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 50%;
    font-weight: 850;
}

.admin-user > div {
    display: grid;
    line-height: 1.2;
}

.admin-user strong {
    color: var(--ink);
    font-size: .8rem;
}

.admin-user small {
    color: var(--muted);
    font-size: .66rem;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-content {
    width: min(100%, 1500px);
    min-height: calc(100vh - 121px);
    margin: 0 auto;
    padding: 30px;
}

.admin-footer {
    padding: 12px 30px;
    color: #98a2b3;
    text-align: right;
    font-size: .7rem;
}

.admin-page-actions {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-page-actions p {
    margin: 0;
    color: var(--muted);
}

.admin-page-actions > div:last-child {
    display: flex;
    gap: 9px;
}

.admin-page-actions .back-link {
    margin-bottom: 4px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.metric-card {
    display: grid;
    min-height: 146px;
    align-content: center;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .025);
}

.metric-card > span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.metric-card > strong {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1.2;
}

.metric-card > small {
    margin-top: 8px;
    color: #98a2b3;
    font-size: .7rem;
}

.metric-card-accent {
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-color: transparent;
}

.metric-card-accent > span,
.metric-card-accent > small {
    color: rgba(255, 255, 255, .75);
}

.metric-card-accent > strong {
    color: #fff;
}

.panel {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .025);
}

.panel-heading {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 21px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -.01em;
}

.panel-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .73rem;
}

.panel-heading > a {
    font-size: .75rem;
    font-weight: 750;
}

.admin-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
    gap: 20px;
}

.bar-chart {
    display: flex;
    height: 245px;
    align-items: flex-end;
    gap: 7px;
    padding: 25px 22px 18px;
}

.bar-column {
    display: grid;
    height: 100%;
    min-width: 0;
    flex: 1;
    grid-template-rows: 18px 1fr 18px;
    align-items: end;
    justify-items: center;
}

.bar-column > span,
.bar-column > small {
    color: #98a2b3;
    font-size: .62rem;
}

.bar-column > i {
    display: block;
    width: min(22px, 80%);
    min-height: 4px;
    background: linear-gradient(180deg, #528bff, var(--brand));
    border-radius: 6px 6px 2px 2px;
}

.activity-list {
    padding: 6px 20px;
}

.activity-list > div {
    display: flex;
    min-height: 53px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f2f4f7;
}

.activity-list > div:last-child {
    border-bottom: 0;
}

.activity-list > div > div {
    display: grid;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.activity-list strong {
    overflow: hidden;
    color: var(--ink);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-list small,
.activity-list time {
    color: #98a2b3;
    font-size: .62rem;
}

.activity-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: var(--success);
    border-radius: 50%;
}

.activity-domain_mismatch,
.activity-scheduled {
    background: var(--warning);
}

.activity-not_found,
.activity-revoked,
.activity-expired,
.activity-unverified {
    background: var(--danger);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .79rem;
}

th,
td {
    padding: 13px 17px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
}

th {
    color: var(--muted);
    background: #fcfcfd;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td strong {
    color: var(--ink);
}

.table-identity {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 10px;
}

.table-identity > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 9px;
    font-size: .74rem;
    font-weight: 850;
}

.table-identity > div {
    display: grid;
    line-height: 1.28;
}

.table-identity small,
.table-sub {
    display: block;
    color: var(--muted);
    font-size: .68rem;
}

.table-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.table-actions a,
.table-action {
    font-size: .73rem;
    font-weight: 750;
}

.truncate-cell {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-compact {
    padding: 25px 10px;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
}

.filter-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 17px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.filter-bar input {
    min-width: 220px;
    flex: 1;
}

.filter-bar select {
    width: auto;
    min-width: 160px;
}

.admin-form {
    max-width: 970px;
}

.narrow-form {
    max-width: 780px;
}

.form-section {
    padding-bottom: 22px;
}

.form-section > .form-grid {
    padding: 22px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 4px 0 30px;
}

.readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.readonly-grid > div {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 14px;
    background: var(--canvas);
    border-radius: 9px;
}

.readonly-grid span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.readonly-grid strong {
    overflow-wrap: anywhere;
    color: var(--ink);
}

.form-help {
    padding: 0 22px;
}

code {
    padding: 2px 5px;
    color: #344054;
    background: #f2f4f7;
    border-radius: 4px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 11px !important;
    padding: 14px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.checkbox-label input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.checkbox-label > span {
    display: grid;
}

.seal-detail-grid {
    display: grid;
    grid-template-columns: minmax(350px, .75fr) minmax(0, 1.25fr);
    gap: 20px;
}

.seal-preview-panel {
    padding-bottom: 20px;
}

.seal-preview {
    display: grid;
    min-height: 200px;
    padding: 30px;
    place-items: center;
    background: linear-gradient(145deg, #f9fafb, #eef4ff);
}

.seal-preview img {
    width: 300px;
    filter: drop-shadow(0 10px 18px rgba(16, 24, 40, .12));
}

.seal-code-large {
    display: grid;
    margin: 18px 20px 14px;
    padding: 13px;
    background: var(--canvas);
    border-radius: 9px;
    text-align: center;
}

.seal-code-large span {
    color: var(--muted);
    font-size: .67rem;
    font-weight: 750;
    text-transform: uppercase;
}

.seal-code-large strong {
    color: var(--ink);
    font-size: 1.1rem;
    letter-spacing: .08em;
}

.seal-preview-panel > .button {
    width: calc(100% - 40px);
    margin: 0 20px;
}

.admin-record-list {
    padding: 0 21px;
}

.admin-record-list > div {
    grid-template-columns: 140px 1fr;
}

.inline-status-form {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 20px;
    padding: 16px;
    background: var(--canvas);
    border-radius: 10px;
}

.inline-status-form > label {
    flex: 1;
}

.embed-panel {
    padding-bottom: 4px;
}

.code-tabs {
    display: grid;
    gap: 14px;
    padding: 21px;
}

.code-tabs > div > span,
.code-tabs summary {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 750;
}

.code-copy {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.code-copy textarea {
    flex: 1;
    color: #d0d5dd;
    background: #101828;
    border-color: #101828;
    font: .73rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.embed-panel > .notice {
    margin: 0 21px 21px;
}

.tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.tab-nav a {
    padding: 10px 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    font-size: .78rem;
    font-weight: 750;
}

.tab-nav a.active {
    color: var(--brand);
    border-color: var(--brand);
}

.verification-types-section {
    padding-bottom: 35px;
}

.verification-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.verification-type-card {
    display: grid;
    min-height: 310px;
    align-content: start;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 15px;
    box-shadow: 0 9px 26px rgba(16, 24, 40, .05);
}

.verification-type-card.type-builder {
    border-top-color: #139b6d;
}

.verification-type-card.type-finance {
    border-top-color: #d59a0a;
}

.type-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 13px;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.type-builder .type-icon {
    color: #067647;
    background: #ecfdf3;
}

.type-finance .type-icon {
    color: #854a0e;
    background: #fffaeb;
}

.verification-type-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.verification-type-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.verification-type-card > strong {
    color: var(--ink);
    font-size: .82rem;
}

.verification-type-card > a {
    margin-top: auto;
    font-weight: 800;
}

.licence-register-hero {
    padding: 82px 0 66px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(19, 155, 109, .12), transparent 27%),
        linear-gradient(180deg, #f2fcf8, #fff);
}

.licence-register-finance {
    background:
        radial-gradient(circle at 80% 15%, rgba(213, 154, 10, .14), transparent 27%),
        linear-gradient(180deg, #fffaf0, #fff);
}

.licence-register-hero h1 {
    max-width: 900px;
    margin: 0 auto 16px;
    font-size: clamp(2.35rem, 5vw, 4rem);
}

.licence-register-hero > .container > p {
    max-width: 790px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.02rem;
}

.licence-results-section {
    background: var(--canvas);
}

.licence-register-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .82rem;
}

.licence-register-toolbar strong {
    color: var(--ink);
}

.licence-register-toolbar a {
    font-weight: 750;
}

.licence-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.licence-result-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(16, 24, 40, .035);
}

.licence-result-top {
    display: flex;
    gap: 15px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}

.licence-result-top h2 {
    margin: 8px 0 2px;
    font-size: 1.2rem;
}

.licence-result-top p {
    margin: 0;
    color: var(--muted);
    font-size: .77rem;
}

.licence-result-card dl {
    margin: 12px 0 18px;
}

.licence-result-card dl > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 7px 0;
    font-size: .78rem;
}

.licence-result-card dt {
    color: var(--muted);
}

.licence-result-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

.licence-result-actions {
    display: flex;
    gap: 9px;
}

.licence-result-actions .button {
    flex: 1;
    font-size: .78rem;
}

.regulator-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.regulator-grid > a {
    display: grid;
    min-height: 150px;
    align-content: start;
    gap: 6px;
    padding: 20px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.regulator-grid > a:hover {
    border-color: #139b6d;
    transform: translateY(-2px);
}

.regulator-grid strong {
    color: #067647;
    font-size: 1.1rem;
}

.regulator-grid span {
    font-size: .8rem;
    font-weight: 700;
}

.regulator-grid small {
    margin-top: auto;
    color: var(--muted);
    font-size: .69rem;
}

.licence-explainer {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 75px;
}

.licence-explainer p {
    color: var(--muted);
}

.licence-scope {
    margin-top: 20px;
    padding: 18px;
    background: #f0fdf9;
    border: 1px solid #a6f4c5;
    border-radius: 10px;
}

.licence-scope strong {
    color: #067647;
}

.licence-scope p {
    margin: 6px 0 0;
}

.licence-conditions {
    background: var(--warning-soft);
    border-color: #fedf89;
}

.licence-conditions strong {
    color: var(--warning);
}

.aside-note-neutral {
    background: #f2f4f7;
}

.aside-note-neutral strong,
.aside-note-neutral p {
    color: var(--text);
}

.official-lookup {
    max-width: 970px;
}

.official-source-badge {
    padding: 4px 10px;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.lookup-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    padding: 21px;
}

.builder-lookup-form {
    grid-template-columns: minmax(145px, .55fr) minmax(220px, 1fr) auto auto;
}

.lookup-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: .78rem;
    font-weight: 750;
}

.lookup-result {
    display: grid;
    margin: 0 21px 21px;
    padding: 15px;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #abefc6;
    border-radius: 10px;
}

.lookup-result > span {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lookup-result > strong {
    color: var(--ink);
}

.lookup-result > small {
    color: var(--muted);
}

.source-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 21px;
}

.source-selector a {
    display: grid;
    min-height: 130px;
    align-content: start;
    gap: 4px;
    padding: 14px;
    color: var(--text);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.source-selector a:hover,
.source-selector a.active {
    background: #f0fdf9;
    border-color: #32d583;
}

.source-selector strong {
    color: #067647;
}

.source-selector span {
    font-size: .7rem;
    line-height: 1.35;
}

.source-selector small {
    margin-top: auto;
    color: var(--muted);
    font-size: .63rem;
}

.settings-source-note {
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 14px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.settings-source-note strong {
    color: var(--ink);
    font-size: .8rem;
}

.settings-source-note span {
    color: var(--muted);
    font-size: .73rem;
}

.upgrade-summary {
    padding: 22px 22px 5px;
}

.upgrade-summary li {
    margin-bottom: 6px;
}

.upgrade-action {
    padding: 0 22px 22px;
}

.muted {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid-main,
    .seal-detail-grid {
        grid-template-columns: 1fr;
    }

    .regulator-grid,
    .source-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy > p,
    .verify-form {
        margin-right: auto;
        margin-left: auto;
    }

    .trust-row {
        justify-content: center;
    }

    .hero-visual {
        min-height: 380px;
    }

    .floating-card {
        right: 10%;
    }

    .process-grid,
    .verify-page-grid,
    .licence-explainer {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .verification-type-grid {
        grid-template-columns: 1fr;
    }

    .verify-aside {
        position: static;
    }

    .admin-sidebar {
        width: 245px;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 40px rgba(16, 24, 40, .25);
    }

    .admin-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .admin-topbar {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .admin-user {
        margin-left: auto;
    }

    .admin-content {
        padding: 22px 18px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        min-height: 68px;
    }

    .site-brand small {
        display: none;
    }

    .header-inner nav {
        gap: 14px;
    }

    .header-inner nav a {
        font-size: .78rem;
    }

    .header-inner nav a:last-child {
        display: none;
    }

    .header-inner nav a[href*="directory.php"] {
        display: none;
    }

    .hero {
        padding: 62px 0 72px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .verify-control {
        display: grid;
    }

    .trust-row {
        gap: 25px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .hero-visual::before {
        width: 300px;
        height: 300px;
    }

    .demo-seal {
        width: 210px;
        height: 210px;
    }

    .demo-seal > strong {
        font-size: 1.45rem;
    }

    .floating-card {
        right: 3%;
        bottom: 15px;
        min-width: 210px;
    }

    .section {
        padding: 62px 0;
    }

    .feature-grid,
    .directory-grid,
    .licence-result-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: grid;
    }

    .footer-inner > div:last-child {
        justify-items: start;
    }

    .certificate,
    .record-card,
    .verify-aside {
        padding: 24px;
    }

    .certificate {
        padding-top: 105px;
    }

    .certificate-neutral {
        padding-top: 24px;
    }

    .certificate-status-icon {
        top: 22px;
        left: 24px;
        width: 46px;
        height: 46px;
    }

    .record-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .directory-search {
        display: grid;
    }

    .install-card,
    .login-card {
        padding: 28px 22px;
    }

    .form-grid,
    .readonly-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .admin-user > div {
        display: none;
    }

    .admin-page-actions {
        display: grid;
    }

    .admin-page-actions > div:last-child {
        flex-wrap: wrap;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        min-height: 125px;
        padding: 16px;
    }

    .metric-card > strong {
        font-size: 1.5rem;
    }

    .filter-bar {
        display: grid;
    }

    .lookup-form {
        grid-template-columns: 1fr;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        min-width: 0;
    }

    .code-copy {
        display: grid;
    }

    .inline-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .seal-preview {
        min-height: 170px;
        padding: 18px;
    }

    .regulator-grid,
    .source-selector {
        grid-template-columns: 1fr;
    }

    .licence-result-actions {
        display: grid;
    }
}

@media (max-width: 430px) {
    .site-brand strong {
        font-size: .78rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

/* Commerce, Stripe checkout and gift cards */
.store-hero {
    padding-bottom: 54px;
    background:
        radial-gradient(circle at 82% 22%, rgba(23, 92, 211, .15), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

.store-hero .container {
    max-width: 880px;
    text-align: center;
}

.store-hero p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.store-notice {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: left;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.store-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.store-product-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--brand);
    content: "";
}

.store-product-card.type-builder::before {
    background: #079455;
}

.store-product-card.type-afsl::before {
    background: #b88216;
}

.store-product-type {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 900;
}

.store-product-card h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.store-product-card > p {
    min-height: 78px;
    color: var(--muted);
}

.store-price {
    display: grid;
    gap: 1px;
    margin: 8px 0 20px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.store-price strong {
    color: var(--ink);
    font-size: 1.7rem;
}

.store-price span {
    color: var(--muted);
    font-size: .75rem;
}

.store-product-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.store-product-card li {
    position: relative;
    padding-left: 22px;
    font-size: .84rem;
}

.store-product-card li::before {
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
    content: "✓";
}

.store-product-card .button {
    margin-top: auto;
}

.gift-balance-callout,
.store-home-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc, #eff8ff);
    border: 1px solid #b2ddff;
    border-radius: 16px;
}

.gift-balance-callout div {
    display: grid;
}

.gift-balance-callout span,
.store-home-card p {
    color: var(--muted);
}

.store-home-cta {
    padding-top: 8px;
    padding-bottom: 8px;
}

.store-home-card {
    margin-top: 0;
}

.store-home-card h2 {
    margin-bottom: 7px;
}

.store-home-card p {
    max-width: 760px;
    margin-bottom: 0;
}

.compact-hero {
    padding: 54px 0 40px;
    background: linear-gradient(180deg, #f7faff, #fff);
}

.compact-hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.compact-hero p {
    max-width: 760px;
    color: var(--muted);
}

.checkout-section {
    background: var(--canvas);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 26px;
}

.checkout-form {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.checkout-card,
.order-details-card {
    padding: 0 24px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.checkout-card .panel-heading {
    margin: 0 -24px 22px;
}

.checkout-card .panel-heading > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 50%;
    font-weight: 900;
}

.checkout-card > label,
.gift-check-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: .78rem;
    font-weight: 750;
}

.checkout-summary {
    position: sticky;
    top: 24px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.checkout-summary h2 {
    font-size: 1.45rem;
}

.checkout-summary > p {
    color: var(--muted);
    font-size: .88rem;
}

.checkout-price,
.checkout-term {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.checkout-price strong {
    color: var(--ink);
    font-size: 1.3rem;
}

.checkout-term {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .78rem;
}

.checkout-term strong {
    color: var(--text);
}

.checkout-acknowledgement {
    padding: 18px;
    background: var(--warning-soft);
    border: 1px solid #fedf89;
    border-radius: 12px;
}

.order-tracking-shell,
.gift-check-shell {
    max-width: 860px;
}

.order-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.order-status-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
}

.status-card-success {
    border-color: #abefc6;
}

.status-card-success .order-status-icon {
    color: var(--success);
    background: var(--success-soft);
}

.status-card-warning {
    border-color: #fedf89;
}

.status-card-warning .order-status-icon {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-card-error {
    border-color: #fecdca;
}

.status-card-error .order-status-icon {
    color: var(--danger);
    background: var(--danger-soft);
}

.order-status-card span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.order-status-card h2 {
    margin: 2px 0 4px;
    font-size: 1.55rem;
}

.order-status-card p {
    margin: 0;
    color: var(--muted);
}

.order-details-card .panel-heading {
    margin: 0 -24px 12px;
}

.order-actions,
.order-workflow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.order-safety-note {
    margin-top: 18px;
    padding: 17px;
    background: var(--warning-soft);
    border-radius: 12px;
}

.order-safety-note p {
    margin: 3px 0 0;
    color: #7a2e0e;
}

.gift-check-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 22px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.gift-public-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, #101828, #175cd3);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.gift-public-card span {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gift-public-card h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 2.2rem;
}

.gift-public-card p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
}

.gift-public-card > .status-pill {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.gift-transactions-public {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.gift-transactions-public h2 {
    font-size: 1.2rem;
}

.gift-transactions-public > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.gift-transactions-public span {
    display: grid;
}

.gift-transactions-public small {
    color: var(--muted);
}

.gift-code-reveal {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #101828, #175cd3);
    border-radius: 14px;
}

.gift-code-reveal span,
.gift-code-reveal small {
    color: rgba(255, 255, 255, .75);
}

.gift-code-reveal strong {
    font: 800 1.4rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .06em;
}

.amount-positive {
    color: var(--success);
}

.amount-negative {
    color: var(--danger);
}

.webhook-box {
    display: grid;
    gap: 5px;
    margin: 0 21px 21px;
    padding: 17px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.webhook-box code,
.break-value {
    overflow-wrap: anywhere;
}

.metric-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid-compact .metric-card strong {
    font-size: 1.25rem;
}

.order-admin-grid {
    grid-template-columns: 1.3fr .7fr;
}

.fulfil-order-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.fulfil-order-form label {
    display: grid;
    gap: 6px;
    font-size: .78rem;
    font-weight: 750;
}

@media (max-width: 900px) {
    .store-product-grid {
        grid-template-columns: 1fr;
    }

    .store-product-card > p {
        min-height: 0;
    }

    .checkout-layout,
    .order-admin-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .metric-grid-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .gift-balance-callout,
    .store-home-card,
    .gift-public-card,
    .gift-transactions-public > div {
        align-items: stretch;
        flex-direction: column;
    }

    .gift-check-form,
    .fulfil-order-form {
        grid-template-columns: 1fr;
    }

    .order-status-card {
        align-items: flex-start;
    }
}
