* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--gv-background, #f5f7fb);
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--gv-primary, #2563EB) 4%, var(--gv-background, #f5f7fb)) 0%, var(--gv-background, #f5f7fb) 380px);
    color: #172033;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.public-header {
    position: relative;
    background: linear-gradient(160deg, #060d1f 0%, var(--gp-secondary, #08152f) 45%, color-mix(in srgb, var(--gp-secondary, #08152f) 82%, var(--gp-primary, #2563EB)) 100%);
    color: white;
    overflow: hidden;
}

/* Very subtle ambient glow, far right of the header -- CSS gradient only,
   no image, no animation. Sits behind the header content (z-index below
   .public-header-inner's stacking context via normal flow, painted first). */
.public-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(480px 200px at 100% 0%, color-mix(in srgb, var(--gp-primary, #2563EB) 20%, transparent), transparent 70%);
    pointer-events: none;
}

.public-header-inner {
    position: relative;
    max-width: 900px;
    min-height: 80px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
}

.public-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gp-primary, #2563EB), #1D4ED8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.public-brand-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    /* contain, not cover -- a logo must never be cropped. */
    object-fit: contain;
}

.public-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.public-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    transition: color 0.2s ease;
}

.public-nav a:hover { color: white; }

/* Thin, short, centered underline -- not a pill background. A short
   segment (not full link-width) so it reads as an accent mark rather than
   a bar; ::after so it never affects layout/text position. */
.public-nav-main a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--gp-primary, #2563EB);
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.public-nav-main a:hover::after { opacity: 0.6; transform: translateX(-50%) scaleX(1); }

.public-nav-main a.active {
    color: white;
}
.public-nav-main a.active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Very subtle vertical divider between the primary nav and the auth/CTA
   cluster -- a hairline, not a hard rule. */
.public-nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.14);
}

.public-nav-plain-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.public-nav-plain-link:hover { color: white; }

/* Sign In -- outlined/secondary: transparent fill, understated border,
   brightens on hover rather than filling solid. */
.public-nav-outline-btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    list-style: none;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.public-nav-outline-btn::-webkit-details-marker { display: none; }
.public-nav-outline-btn:hover {
    border-color: color-mix(in srgb, var(--gp-primary, #2563EB) 60%, white);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Compact app-download link (partials/app-download-banner.blade.php,
   'compact') -- a small self-contained pill so it reads correctly whether
   it lands on the dark header or the light footer, rather than inheriting
   ambient text color from either. */
.gv-app-download-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gv-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.gv-app-download-compact:hover { opacity: 0.9; color: #fff; }
.gv-app-download-compact.is-disabled { background: var(--gv-muted); opacity: 0.7; cursor: default; }

.public-nav-icon-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.public-nav-icon-link:hover { color: white; }

.public-nav-signout-btn { color: rgba(255, 255, 255, 0.6); }

.public-nav-cta {
    color: white;
    background: linear-gradient(135deg, var(--gv-primary, #2563EB), var(--gv-primary-dark, #1D4ED8));
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    list-style: none;
    border: none;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.public-nav-cta::-webkit-details-marker { display: none; }
.public-nav-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--gv-primary, #2563EB) 65%, transparent);
}
.public-nav-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.public-nav-cta:hover .public-nav-cta-arrow { transform: translateX(3px); }

/* Native <details>/<summary> disclosure -- same zero-JS pattern the
   business sidebar's expandable groups already use. No chevron affordance
   (visual spec calls for no dropdown arrows); the summary itself is styled
   to look like a plain button, only the click-to-open behavior remains. */
.public-nav-dropdown { position: relative; }
.public-nav-dropdown > summary { list-style: none; }
.public-nav-dropdown > summary::-webkit-details-marker { display: none; }

.public-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 45px -12px rgba(8, 21, 47, 0.35);
    padding: 8px;
    width: 260px;
    z-index: 40;
}

/* Header actions sit at the far right of the page -- a left-aligned menu
   there would overflow the viewport, so this specific context flips it. */
.public-nav-actions .public-nav-dropdown-menu { left: auto; right: 0; }

.public-nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gv-text, #172033);
}
.public-nav-dropdown-menu a:hover { background: var(--gv-background, #f5f7fb); }
.public-nav-dropdown-menu a i {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gv-background, #f5f7fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gv-primary, #2563EB);
}
.public-nav-dropdown-menu a span { display: flex; flex-direction: column; gap: 1px; }
.public-nav-dropdown-menu a strong { font-size: 13px; font-weight: 700; }
.public-nav-dropdown-menu a small { font-size: 11px; color: var(--gv-muted, #64748b); }

/* Mobile hiding of .public-nav-main/.public-nav-actions lives in
   public-bottom-nav.css, alongside .public-nav's own hide rule -- one
   authoritative 900px breakpoint for the whole mobile header
   transformation, not a second one drifting out of sync with it. */

.public-content {
    flex: 1;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px;
}

.public-footer {
    text-align: center;
    padding: 20px;
    color: #8792a2;
    font-size: 12px;
}

.public-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}
.public-alert-success { background: #ecfdf3; border: 1px solid #a9e8c3; color: #06713a; }
.public-alert-danger { background: #fff1f1; border: 1px solid #ffd1d1; color: #a52b2b; }

.public-card {
    background: white;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(25, 35, 55, 0.05);
    margin-bottom: 22px;
    overflow: hidden;
    animation: gv-fade-in-up 0.25s ease both;
}
.public-card-header { padding: 22px; border-bottom: 1px solid #edf0f4; }
.public-card-header h1 { margin: 0; font-size: 20px; font-weight: 800; }
.public-card-header p { margin: 8px 0 0; color: #7b8798; font-size: 13px; line-height: 1.6; }
.public-card-body { padding: 22px; }

.public-field { margin-bottom: 18px; }
.public-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #455166; }
.public-field input,
.public-field select,
.public-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #dce2ea;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}
.public-field textarea { min-height: 100px; }
.public-field input:focus, .public-field select:focus, .public-field textarea:focus {
    border-color: var(--gp-primary, #2563EB);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.public-hint { margin-top: 6px; font-size: 12px; color: #8792a2; }

.public-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 10px;
    background: #172033;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.public-btn:hover { background: #27334a; }
.public-btn-secondary { background: #eef1f5; color: #39465a; }
.public-btn-secondary:hover { background: #e2e7ee; }

.result-banner {
    padding: 20px 22px;
    border-radius: 14px;
    margin-bottom: 22px;
}
.result-banner-safe { background: #ecfdf3; border: 1px solid #a9e8c3; color: #06713a; }
.result-banner-warning { background: #fff1f1; border: 1px solid #ffd1d1; color: #a52b2b; }
.result-banner-caution { background: #fff8e6; border: 1px solid #f5d78e; color: #92710a; }
.result-banner h3 { margin: 0 0 8px; font-size: 16px; }
.result-banner p { font-size: 13px; line-height: 1.6; margin: 0; }

.reference-badge {
    display: inline-block;
    padding: 10px 16px;
    background: #eef1ff;
    color: #4a5cff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.verify-report-section-label {
    font-size: 12px;
    color: #8792a2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.verify-report-transfer-prompt {
    margin-top: 14px;
    padding: 16px 18px;
    background: #f8f9fc;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
}
.verify-report-transfer-prompt h4 { margin: 0 0 6px; font-size: 14px; }
.verify-report-transfer-prompt p { margin: 0 0 12px; font-size: 13px; color: #687386; line-height: 1.6; }

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

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

.legal-page .page-notice { color: #92710a; background: #fff8e6; border: 1px solid #f5d78e; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }
.legal-page h2 { font-size: 16px; margin: 22px 0 8px; color: #08152f; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { font-size: 14px; color: #455166; line-height: 1.7; margin-bottom: 10px; }

.contact-channels { margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf0f4; }
.contact-channels h2 { font-size: 16px; margin: 0 0 12px; color: #08152f; }
.contact-channels ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-channels li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.contact-channels li i { color: #2563EB; font-size: 16px; }
.contact-channels a { color: #172033; text-decoration: none; font-weight: 600; }
.contact-channels a:hover { color: #2563EB; }

@keyframes gv-fade-in-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
