:root {
    --primary: #0b2e4a;
    --primary-2: #123f66;
    --accent: #2563eb;
    --accent-2: #0ea5e9;
    --secondary: #16a085;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #101828;
    --muted: #667085;
    --border: #e5e7eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0284c7;
    --shadow-sm: 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-md: 0 18px 44px rgba(16, 24, 40, .10);
    --radius: 12px;
}

* {
    letter-spacing: 0;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: "Plus Jakarta Sans", "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 56px 56px;
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes titleFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLayer {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, .26);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, .08);
    }
}

@keyframes caretBlink {
    0%,
    45% {
        opacity: 1;
    }
    46%,
    100% {
        opacity: 0;
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: var(--target-progress);
    }
}

@keyframes dataDrift {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
}

.reveal.is-visible {
    animation: riseIn .52s cubic-bezier(.2, .7, .2, 1) forwards;
}

.btn {
    min-height: 42px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .20);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #07263f, #1d4ed8);
    border-color: transparent;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary {
    border-color: #cfd8e3;
    color: #243044;
    background: #fff;
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, .45);
    background: #eef5ff;
}

.form-label {
    color: #344054;
    font-size: .88rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.badge {
    font-weight: 700;
    border-radius: 999px;
}

.alert {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.site-body {
    background:
        radial-gradient(circle at 18% 12%, rgba(14, 165, 233, .10), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(22, 160, 133, .10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 42%, #ffffff 100%),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, .025) 0 1px, transparent 1px 56px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid rgba(229, 231, 235, .86);
    box-shadow: none;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(229, 231, 235, .96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 74px;
}

.site-header__logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand-mark,
.admin-sidebar .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.site-logo {
    display: block;
    width: clamp(152px, 14vw, 198px);
    max-height: 46px;
    height: auto;
}

.brand-logo {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: .85rem;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(11, 46, 74, .18);
}

.site-header__nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.site-header__nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #333333;
    font-size: .94rem;
    font-weight: 500;
    transition: color .3s ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus {
    color: #1A4F8B;
}

.site-header__nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #1A4F8B;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}

.site-header__nav a:hover::after,
.site-header__nav a:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #1A4F8B;
    color: #ffffff;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.header-cta:hover,
.header-cta:focus {
    color: #ffffff;
    background: #143f70;
    box-shadow: 0 12px 26px rgba(26, 79, 139, .22);
    transform: translateY(-2px);
}

.header-cta svg {
    flex: 0 0 auto;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(203, 213, 225, .95);
    border-radius: 8px;
    background: #ffffff;
    color: #1A4F8B;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border-color: rgba(26, 79, 139, .34);
    box-shadow: 0 10px 22px rgba(26, 79, 139, .10);
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

.mobile-menu.is-open {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 8px 24px 18px;
    border-top: 1px solid rgba(229, 231, 235, .86);
    background: #ffffff;
    box-shadow: 0 18px 28px rgba(0, 0, 0, .04);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    color: #333333;
    font-size: .95rem;
    font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: #1A4F8B;
}

.mobile-menu__cta {
    justify-content: center;
    margin-top: 8px;
    border-radius: 6px;
    background: #1A4F8B;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 80px;
    background:
        radial-gradient(circle at 18% 22%, rgba(14, 165, 233, .13), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(22, 160, 133, .14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border-bottom: 1px solid rgba(229, 231, 235, .85);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent 88%);
    animation: subtleGrid 22s linear infinite;
    pointer-events: none;
}

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

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: #071f35;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.08;
    font-weight: 600;
}

.hero .lead {
    max-width: 690px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.hero-copy {
    max-width: 720px;
}

.hero-title {
    opacity: 0;
    animation: titleFadeUp .72s cubic-bezier(.2, .7, .2, 1) .16s forwards;
}

.typing-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    margin-bottom: 20px;
    padding: 9px 13px;
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: var(--radius);
    background: rgba(239, 246, 255, .82);
    color: #075985;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(14, 165, 233, .08);
}

.typing-badge i {
    color: var(--secondary);
}

.typing-badge [data-typing-rotator]::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 4px;
    background: currentColor;
    vertical-align: -.16em;
    animation: caretBlink 1.1s steps(2, start) infinite;
}

.hero-actions {
    margin-top: 28px;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-inline: 22px;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .28), 0 0 0 6px rgba(14, 165, 233, .08);
}

.btn-hero-primary i {
    transition: transform .2s ease;
}

.btn-hero-primary:hover i,
.btn-hero-primary:focus i {
    transform: translateX(4px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-actions,
.trust-row,
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-row {
    margin-top: 22px;
}

.trust-row span {
    padding: 8px 12px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #344054;
    font-size: .9rem;
    font-weight: 650;
    box-shadow: var(--shadow-sm);
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.trust-list div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    color: #233447;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.trust-list i {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(22, 160, 133, .12);
    color: var(--secondary);
    font-size: .74rem;
}

.robot-visual {
    position: relative;
    min-height: 472px;
    perspective: 1200px;
}

.robot-data-map {
    position: absolute;
    inset: 26px 24px 28px 34px;
    border: 1px solid rgba(14, 165, 233, .10);
    border-radius: 28px;
    background:
        linear-gradient(115deg, rgba(37, 99, 235, .08), transparent 36%),
        repeating-linear-gradient(90deg, rgba(14, 165, 233, .06) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(0deg, rgba(22, 160, 133, .05) 0 1px, transparent 1px 42px);
    opacity: .72;
    transform: rotate(-2deg);
    animation: dataDrift 42s linear infinite;
}

.data-node,
.data-line {
    position: absolute;
    display: block;
}

.data-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 8px rgba(22, 160, 133, .10);
}

.node-1 {
    left: 18%;
    top: 24%;
}

.node-2 {
    right: 18%;
    top: 34%;
}

.node-3 {
    left: 44%;
    bottom: 18%;
}

.data-line {
    height: 1px;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .35), transparent);
    transform-origin: left center;
}

.line-1 {
    left: 20%;
    top: 29%;
    transform: rotate(10deg);
}

.line-2 {
    left: 47%;
    bottom: 24%;
    transform: rotate(-22deg);
}

.robot-layer {
    position: absolute;
    border: 1px solid rgba(203, 213, 225, .80);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 28px 70px rgba(11, 46, 74, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.robot-layer-main {
    top: 72px;
    right: 12px;
    z-index: 3;
    width: min(430px, 100%);
    padding: 22px;
    animation: floatLayer 7s ease-in-out infinite;
}

.robot-layer-profile {
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 250px;
    padding: 18px;
    transform: rotate(-3deg);
    animation: floatLayer 8.5s ease-in-out infinite;
}

.robot-layer-results {
    right: 0;
    bottom: 20px;
    z-index: 4;
    display: grid;
    gap: 10px;
    width: 320px;
    padding: 14px;
    transform: rotate(2deg);
    animation: floatLayer 9s ease-in-out .4s infinite;
}

.robot-layer-profile span,
.robot-layer-profile small,
.robot-progress span,
.robot-counts span,
.robot-layer-results span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.robot-layer-profile strong {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.robot-layer-profile small {
    display: block;
    margin-top: 5px;
}

.robot-layer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.robot-layer-header > strong {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.robot-progress {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.robot-progress strong {
    color: var(--secondary);
    font-weight: 800;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf1f8;
}

.progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    animation: progressFill 1.8s cubic-bezier(.2, .75, .2, 1) .35s forwards;
}

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

.robot-counts div {
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #f8fafc;
}

.robot-counts strong {
    display: block;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.robot-layer-results div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #fff;
}

.robot-layer-results em {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(22, 160, 133, .12);
    color: #08745f;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.robot-layer-results div:nth-child(2) em {
    background: rgba(245, 158, 11, .14);
    color: #9a5b00;
}

.hero-compact {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 14%, rgba(37, 99, 235, .08), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(22, 160, 133, .10), transparent 26%),
        #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, .88);
}

.hero-compact .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 79, 139, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 79, 139, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .06), transparent 72%);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-compact .hero-copy {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 1rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    background: #edf7ff;
    color: #1A4F8B;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(26, 79, 139, .08);
}

.hero-badge-dot,
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .28);
    animation: heroPulse 1.8s ease-in-out infinite;
}

.hero-robot-icon {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 1px solid rgba(26, 79, 139, .20);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #dff4ff);
    box-shadow: inset 0 -2px 0 rgba(26, 79, 139, .10), 0 6px 12px rgba(26, 79, 139, .10);
}

.hero-robot-icon::before {
    content: "";
    width: 11px;
    height: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 25% 50%, #1A4F8B 0 2px, transparent 2.5px),
        radial-gradient(circle at 75% 50%, #1A4F8B 0 2px, transparent 2.5px);
}

.hero-robot-icon::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 7px;
    height: 5px;
    border: 1px solid rgba(26, 79, 139, .28);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
}

.hero-robot-hand {
    position: absolute;
    right: -7px;
    top: 5px;
    width: 8px;
    height: 4px;
    border-radius: 999px;
    background: #27c2ee;
    transform-origin: left center;
    animation: robotWave 1.8s ease-in-out infinite;
}

.hero-compact .hero-title {
    max-width: 680px;
    margin: 0 0 1rem;
    color: #162033;
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 1;
    animation: none;
}

.hero-subheading {
    max-width: 610px;
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.72;
}

.hero-compact .hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 46px;
    padding: .78rem 1rem;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.hero-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0b2e4a 0%, #1A4F8B 100%);
    box-shadow: 0 14px 28px rgba(26, 79, 139, .16);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(26, 79, 139, .24), 0 0 0 6px rgba(37, 99, 235, .08);
}

.hero-btn-secondary {
    border: 1px solid #d7dee8;
    background: #ffffff;
    color: #253044;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    border-color: #a9b6c7;
    background: #f8f9fa;
    color: #162033;
    transform: translateY(-1px);
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.6rem;
}

.hero-feature-box {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    min-height: 48px;
    padding: .85rem;
    border-radius: 12px;
    background: #f8f9fa;
    color: #334155;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.45;
}

.hero-feature-box span {
    display: inline-grid;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
    font-size: .72rem;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    border-radius: 24px;
    background:
        linear-gradient(rgba(26, 79, 139, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 79, 139, .045) 1px, transparent 1px),
        linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(239, 246, 255, .82));
    background-size: 36px 36px, 36px 36px, auto;
    overflow: hidden;
}

.hero-ui-card {
    position: absolute;
    border: 1px solid rgba(226, 232, 240, .76);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 28px 60px rgba(15, 23, 42, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-ui-card-profile {
    top: 36px;
    left: 28px;
    z-index: 2;
    min-width: 220px;
    padding: 1rem;
    animation: heroFloatCard 7.2s ease-in-out infinite;
}

.hero-ui-card-profile span {
    display: block;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
}

.hero-ui-card-profile strong {
    display: block;
    margin-top: .35rem;
    color: #162033;
    font-size: 1rem;
    font-weight: 800;
}

.hero-ui-card-scan {
    top: 104px;
    left: 50%;
    z-index: 3;
    width: min(380px, calc(100% - 44px));
    padding: 1.25rem;
    transform: translateX(-50%);
    animation: heroFloatCardCenter 8.4s ease-in-out .25s infinite;
}

.hero-card-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #475569;
    font-size: .8rem;
    font-weight: 700;
}

.hero-ui-card-scan h2 {
    margin: .7rem 0 1rem;
    color: #0f2740;
    font-size: 1.2rem;
    font-weight: 800;
}

.hero-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.hero-progress-copy strong {
    color: #16a34a;
    font-weight: 800;
}

.hero-progress-track {
    height: 9px;
    margin-top: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef8;
}

.hero-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #16a34a);
    animation: heroProgressGrow 1.8s cubic-bezier(.2, .75, .2, 1) .25s forwards;
}

.hero-ui-card-results {
    right: 28px;
    bottom: 30px;
    z-index: 4;
    display: grid;
    gap: .65rem;
    width: min(350px, calc(100% - 48px));
    padding: .9rem;
    animation: heroFloatCard 7.8s ease-in-out .5s infinite;
}

.hero-ui-card-results div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .75rem;
    border-radius: 12px;
    background: #ffffff;
}

.hero-ui-card-results span {
    color: #334155;
    font-size: .84rem;
    font-weight: 700;
}

.hero-ui-card-results em {
    flex: 0 0 auto;
    padding: .38rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.pill-success {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}

.pill-warning {
    background: rgba(245, 158, 11, .14);
    color: #a16207;
}

@keyframes heroPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .30);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, .08);
    }
}

@keyframes robotWave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    35% {
        transform: rotate(-24deg);
    }
    70% {
        transform: rotate(18deg);
    }
}

@keyframes heroFloatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroFloatCardCenter {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

@keyframes heroProgressGrow {
    from {
        width: 0;
    }
    to {
        width: 85%;
    }
}

.hero-analysis-card {
    position: relative;
    display: grid;
    gap: 18px;
    max-width: 560px;
    margin-left: auto;
    padding: 24px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96)),
        #fff;
    box-shadow: 0 28px 70px rgba(11, 46, 74, .16);
}

.hero-analysis-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent-2), var(--secondary));
}

.hero-analysis-card::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: 38px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(20, 184, 166, .12);
    filter: blur(3px);
    z-index: -1;
}

.hero-float {
    animation: heroFloat 7s ease-in-out infinite;
}

.analysis-card-header,
.match-summary,
.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.analysis-card-header {
    padding-top: 6px;
}

.analysis-card-header h2 {
    margin: 7px 0 0;
    color: var(--primary);
    font-size: 1.42rem;
    font-weight: 900;
}

.analysis-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.analysis-badge {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: var(--radius);
    background: #eef6ff;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 850;
}

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

.company-grid div,
.match-box,
.result-row {
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #fff;
}

.company-grid div {
    padding: 14px;
}

.company-grid span,
.result-row span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.company-grid strong,
.result-row strong {
    display: block;
    margin-top: 4px;
    color: #102033;
    font-size: .98rem;
    font-weight: 850;
}

.match-summary {
    align-items: stretch;
}

.match-box {
    flex: 1;
    padding: 16px;
    overflow: hidden;
}

.match-box span {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.match-box strong {
    display: block;
    margin-top: 8px;
    font-size: .88rem;
    font-weight: 850;
}

.match-box-success {
    background: linear-gradient(135deg, rgba(22, 160, 133, .12), #fff);
    color: #08745f;
}

.match-box-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, .14), #fff);
    color: #9a5b00;
}

.analysis-results {
    display: grid;
    gap: 10px;
}

.result-row {
    padding: 13px 14px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.result-row:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.result-pill {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: var(--radius);
    font-size: .74rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.result-pill.is-success {
    background: rgba(22, 160, 133, .12);
    color: #08745f;
}

.result-pill.is-warning {
    background: rgba(245, 158, 11, .14);
    color: #9a5b00;
}

.hero-panel,
.panel,
.form-panel,
.side-panel,
.auth-card,
.stat-card,
.filter-panel,
.filter-sidebar,
.content-block {
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    overflow: hidden;
}

.hero-panel::before,
.support-card::before {
    content: "";
    display: block;
    height: 4px;
    margin: -20px -20px 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.hero-panel-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 750;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.metric {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.metric-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.metric span,
.stat-card span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.metric-primary span,
.metric-primary small {
    color: rgba(255, 255, 255, .78);
}

.metric strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
    font-weight: 850;
}

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

.section-heading {
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2,
.page-header h1 {
    font-weight: 900;
}

.page-header {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    background:
        linear-gradient(135deg, rgba(11, 46, 74, .08), rgba(37, 99, 235, .10), rgba(22, 160, 133, .06)),
        #fff;
    border-bottom: 1px solid var(--border);
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.page-header p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.site-breadcrumb {
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(226, 232, 240, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

.site-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .84rem;
    font-weight: 700;
}

.site-breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #cbd5e1;
}

.site-breadcrumb a {
    color: #1A4F8B;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus {
    color: var(--accent);
}

.support-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.support-card::before {
    margin: 0;
}

.support-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: var(--shadow-md);
}

.support-card h3,
.support-card h2 {
    font-weight: 850;
}

.support-institution,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.support-institution {
    color: #1e3a8a;
    background: #eff6ff;
}

.status-pill {
    color: #047857;
    background: #ecfdf5;
}

.status-success {
    color: #047857;
    background: #ecfdf5;
}

.status-info {
    color: #075985;
    background: #e0f2fe;
}

.status-warning {
    color: #92400e;
    background: #fffbeb;
}

.status-muted {
    color: #475467;
    background: #f2f4f7;
}

.support-expired {
    opacity: .72;
    filter: grayscale(.18);
}

.status-pill-large {
    min-height: 34px;
    padding-inline: 14px;
}

.support-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
}

.home-supports-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(244, 248, 251, .35), rgba(255, 255, 255, .95)),
        #f8fbff;
}

.home-supports-section .section-heading {
    align-items: flex-end;
    gap: 20px;
}

.home-supports-section .section-heading p {
    max-width: 820px;
    line-height: 1.7;
}

.support-program-card {
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.support-program-card::before {
    display: none;
}

.support-program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 26px 60px rgba(11, 46, 74, .13);
}

.support-program-card .card-body {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 24px;
}

.support-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.support-program-card .support-institution {
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(37, 99, 235, .12);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .75rem;
    letter-spacing: 0;
}

.support-program-card .status-pill {
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid transparent;
    font-size: .73rem;
    white-space: nowrap;
}

.support-program-card .status-success {
    border-color: rgba(22, 160, 133, .16);
    background: #ecfdf5;
    color: #047857;
}

.support-program-card .status-info {
    border-color: rgba(14, 165, 233, .18);
    background: #e0f2fe;
    color: #075985;
}

.support-program-card .status-warning {
    border-color: rgba(245, 158, 11, .24);
    background: #fffbeb;
    color: #92400e;
}

.support-program-card .status-muted {
    border-color: rgba(148, 163, 184, .24);
    background: #f1f5f9;
    color: #64748b;
}

.support-card-title {
    margin-bottom: 12px;
    color: #071f35;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 900;
}

.support-card-description {
    display: -webkit-box;
    min-height: 4.95em;
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.support-program-card .support-meta {
    display: grid;
    gap: 10px;
    margin: auto 0 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, .95);
}

.support-meta-item {
    display: grid;
    grid-template-columns: minmax(116px, .85fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #f8fafc;
}

.support-meta-item span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
}

.support-meta-item i {
    color: var(--secondary);
}

.support-meta-item strong {
    min-width: 0;
    color: #152238;
    font-size: .86rem;
    font-weight: 850;
    text-align: right;
}

.support-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.support-card-actions .btn {
    min-height: 46px;
    padding-inline: 12px;
    font-size: .88rem;
}

.support-program-card.support-expired {
    opacity: .78;
    filter: grayscale(.12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.support-program-card.support-expired:hover {
    opacity: .9;
}

.content-block,
.form-panel,
.side-panel,
.panel,
.filter-sidebar {
    padding: 24px;
}

.site-footer {
    margin-top: 60px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-logo {
    display: block;
    width: clamp(152px, 14vw, 198px);
    max-height: 46px;
    height: auto;
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.blog-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
}

.blog-category-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-sm);
}

.blog-category-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: .84rem;
    font-weight: 800;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.blog-category-strip a:hover,
.blog-category-strip a:focus,
.blog-category-strip a.active {
    color: #ffffff;
    background: #1A4F8B;
    box-shadow: 0 10px 20px rgba(26, 79, 139, .16);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 750;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-post-meta i {
    color: var(--secondary);
}

.blog-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.latest-post-list,
.sidebar-category-list {
    display: grid;
    gap: 10px;
}

.latest-post-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #f8fafc;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.latest-post-list a:hover,
.latest-post-list a:focus {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .35);
    background: #ffffff;
}

.latest-post-list strong {
    color: #162033;
    font-size: .94rem;
    line-height: 1.45;
}

.latest-post-list span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.sidebar-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    color: #243044;
    font-size: .92rem;
    font-weight: 800;
}

.sidebar-category-list a:last-child {
    border-bottom: 0;
}

.sidebar-category-list i {
    color: var(--accent);
    font-size: .78rem;
}

.rich-content {
    color: #243044;
    line-height: 1.85;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    font-weight: 850;
}

.rich-content blockquote {
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: #eff6ff;
}

.rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px 0;
    border-radius: var(--radius);
}

.rich-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 18px 0;
    border: 0;
    border-radius: var(--radius);
}

.rich-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
}

.rich-content th,
.rich-content td {
    padding: 12px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.rich-content th {
    background: #f1f5f9;
    color: #162033;
    font-weight: 850;
}

.rich-content pre,
.rich-content code {
    border-radius: 8px;
    background: #0b1220;
    color: #e5edf7;
}

.rich-content pre {
    padding: 14px;
    overflow-x: auto;
}

.rich-content code {
    padding: 2px 5px;
}

.filter-sidebar {
    position: sticky;
    top: 92px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 850;
}

.support-detail-aside {
    position: sticky;
    top: 92px;
}

.support-summary-card {
    position: relative;
    z-index: 1;
}

.support-cta {
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.support-cta strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 850;
}

.support-cta p {
    color: var(--muted);
    font-size: .9rem;
}

.info-chip {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-chip span {
    color: var(--muted);
    font-size: .86rem;
}

.info-chip strong {
    text-align: right;
    font-size: .9rem;
}

.form-section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.form-section-heading > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 850;
}

.form-section-heading h2 {
    margin: 0 0 2px;
    font-size: 1.08rem;
    font-weight: 850;
}

.form-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.robot-panel {
    max-width: 980px;
    margin-inline: auto;
}

.result-alert strong {
    display: block;
    margin-bottom: 4px;
}

.admin-body {
    color: var(--text);
    background:
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, .035) 0 1px, transparent 1px 44px);
}

.admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: subtleGrid 28s linear infinite;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    width: 272px;
    height: 100vh;
    flex: 0 0 272px;
    padding: 22px 18px;
    overflow-y: auto;
    color: #fff;
    background: linear-gradient(180deg, var(--primary), #0f3f66 54%, #071f33);
}

.admin-sidebar .brand {
    color: #fff;
    margin-bottom: 26px;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    font-weight: 700;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.admin-sidebar .nav-link span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    transform: translateX(2px);
}

.admin-sidebar .nav-link-muted {
    margin-top: 14px;
    color: rgba(255, 255, 255, .62);
}

.nav-dropdown {
    display: grid;
    gap: 4px;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown .nav-link {
    justify-content: flex-start;
}

.nav-dropdown-icon {
    margin-left: auto;
    font-size: .72rem;
    transition: transform .16s ease;
}

.nav-dropdown[open] .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-sub {
    display: grid;
    gap: 4px;
    margin: -2px 0 8px 48px;
}

.nav-sub a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .76);
    font-size: .84rem;
    font-weight: 650;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-sub a:hover,
.nav-sub a.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateX(2px);
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 28px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-profile-menu {
    position: relative;
}

.admin-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #fff;
    color: #162033;
    font-size: .9rem;
    font-weight: 800;
}

.admin-profile-avatar {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: .82rem;
    font-weight: 900;
}

.admin-profile-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.admin-profile-menu:hover .admin-profile-dropdown,
.admin-profile-menu:focus-within .admin-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-profile-dropdown a,
.admin-profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #243044;
    font-size: .88rem;
    font-weight: 750;
    text-align: left;
}

.admin-profile-dropdown a:hover,
.admin-profile-dropdown button:hover {
    background: #f1f5f9;
    color: #1A4F8B;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.36rem;
    font-weight: 900;
}

.admin-kicker {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.panel {
    box-shadow: var(--shadow-sm);
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form-section {
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel h2,
.side-panel h2,
.side-panel h3 {
    font-weight: 850;
}

.table {
    margin-bottom: 0;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.table thead th {
    color: #475467;
    border-bottom-color: var(--border);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.empty-state {
    padding: 36px 16px !important;
    color: var(--muted) !important;
    text-align: center;
}

.stat-card {
    min-height: 122px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card strong {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 900;
}

.stat-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.stat-card-blue .stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.stat-card-green .stat-icon {
    background: linear-gradient(135deg, #047857, var(--secondary));
}

.stat-card-cyan .stat-icon {
    background: linear-gradient(135deg, #075985, var(--accent-2));
}

.stat-card-orange .stat-icon {
    background: linear-gradient(135deg, #92400e, var(--warning));
}

/* Modern CRM dashboard shell */
.admin-body {
    --admin-sidebar-width: 288px;
    --admin-bg: #F8FAFC;
    --admin-sidebar-bg: #0F172A;
    --admin-sidebar-muted: #94A3B8;
    --admin-card-shadow: 0 18px 42px rgba(15, 23, 42, .05);
    --admin-card-shadow-hover: 0 24px 60px rgba(15, 23, 42, .10);
    --admin-card-radius: 10px;
    min-height: 100vh;
    color: #0F172A;
    background: var(--admin-bg);
    font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-backdrop {
    z-index: 1035;
    display: none;
    background: rgba(15, 23, 42, .42);
    animation: none;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--admin-sidebar-width);
    height: 100vh;
    padding: 24px 18px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .20), transparent 32%),
        linear-gradient(180deg, #0F172A 0%, #111827 58%, #020617 100%);
    box-shadow: 18px 0 40px rgba(15, 23, 42, .08);
}

.admin-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38BDF8, #2563EB);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .26);
}

.brand-divider {
    color: rgba(148, 163, 184, .65);
    font-weight: 600;
}

.admin-sidebar .nav {
    gap: 6px !important;
}

.admin-sidebar .nav-link {
    position: relative;
    min-height: 44px;
    padding: 10px 12px 10px 14px;
    border-radius: 10px;
    color: var(--admin-sidebar-muted);
    font-size: .92rem;
    font-weight: 650;
    isolation: isolate;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.admin-sidebar .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: #38BDF8;
    opacity: 0;
    transform: scaleY(.45);
    transition: opacity .18s ease, transform .18s ease;
}

.admin-sidebar .nav-link span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #CBD5E1;
    background: rgba(255, 255, 255, .06);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    transform: translateX(2px);
}

.admin-sidebar .nav-link:hover::before,
.admin-sidebar .nav-link.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-dropdown {
    gap: 6px;
}

.nav-dropdown-icon {
    color: #64748B;
}

.nav-sub {
    margin: 4px 0 8px 48px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, .18);
}

.nav-sub a {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #94A3B8;
    font-size: .84rem;
    font-weight: 600;
}

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

.admin-main {
    grid-column: 2;
    min-width: 0;
    padding: 26px 30px 40px;
    background: var(--admin-bg);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -26px -30px 28px;
    padding: 18px 30px;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, .90);
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-kicker {
    margin-bottom: 3px;
    color: #64748B;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.admin-topbar h1 {
    color: #0F172A;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.admin-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    color: #0F172A;
}

.admin-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.admin-topbar-actions .btn {
    min-height: 40px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.admin-profile-trigger {
    min-height: 42px;
    border-color: #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.admin-profile-avatar {
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
}

.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-stat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, .74);
    border-radius: var(--admin-card-radius);
    background: #fff;
    box-shadow: var(--admin-card-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, .55);
    box-shadow: var(--admin-card-shadow-hover);
}

.dashboard-stat-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 14px;
}

.dashboard-stat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stat span {
    display: block;
    margin-top: 2px;
    color: #64748B;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.dashboard-stat strong {
    display: block;
    margin-top: 16px;
    color: #0F172A;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.03em;
}

.dashboard-stat-blue .dashboard-stat-icon {
    color: #2563EB;
    background: rgba(37, 99, 235, .10);
}

.dashboard-stat-emerald .dashboard-stat-icon {
    color: #059669;
    background: rgba(16, 185, 129, .12);
}

.dashboard-stat-cyan .dashboard-stat-icon {
    color: #0891B2;
    background: rgba(6, 182, 212, .12);
}

.dashboard-stat-amber .dashboard-stat-icon {
    color: #D97706;
    background: rgba(245, 158, 11, .14);
}

.dashboard-table-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .74);
    border-radius: var(--admin-card-radius);
    background: #fff;
    box-shadow: var(--admin-card-shadow);
}

.dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.dashboard-section-head h2 {
    margin: 0;
    color: #0F172A;
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-section-head p {
    margin: 4px 0 0;
    color: #64748B;
    font-size: .88rem;
}

.dashboard-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    color: #0F172A;
    background: #fff;
    font-size: .84rem;
    font-weight: 750;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.dashboard-view-all:hover,
.dashboard-view-all:focus {
    color: #1D4ED8;
    border-color: rgba(37, 99, 235, .40);
    background: #EFF6FF;
    transform: translateY(-1px);
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 14px 24px;
    border-bottom: 1px solid #E2E8F0;
    color: #64748B;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 17px 24px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    font-size: .92rem;
    vertical-align: middle;
}

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

.dashboard-table tbody tr:hover td {
    background: #F8FAFC;
}

.dashboard-person-link {
    color: #0F172A;
    font-weight: 800;
}

.dashboard-person-link:hover,
.dashboard-person-link:focus {
    color: #2563EB;
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #155E75;
    background: #ECFEFF;
    font-size: .76rem;
    font-weight: 800;
}

.dashboard-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 44px 16px;
    color: #64748B;
    text-align: center;
}

.dashboard-empty-state span {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: #94A3B8;
    background: #F1F5F9;
}

.dashboard-empty-state svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-empty-state strong {
    color: #64748B;
    font-size: .95rem;
    font-weight: 750;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef5ff, #ffffff 52%, #edfdf7);
}

.auth-card {
    width: min(440px, calc(100% - 32px));
    padding: 30px;
}

.criteria-row {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fbff;
}

.rich-editor-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: #f8fbff;
}

.rich-editor-button {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-weight: 800;
}

.rich-editor-button:hover {
    color: var(--accent);
    border-color: rgba(37, 99, 235, .42);
}

.rich-editor-area {
    min-height: 280px;
    padding: 16px;
    outline: none;
    line-height: 1.75;
}

.rich-editor-area:focus {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .14);
}

.rich-editor-source {
    display: none;
    width: 100%;
    min-height: 280px;
    padding: 16px;
    border: 0;
    outline: none;
    resize: vertical;
    background: #0b1220;
    color: #e5edf7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
    line-height: 1.65;
}

.rich-editor-shell.is-source-mode .rich-editor-area {
    display: none;
}

.rich-editor-shell.is-source-mode .rich-editor-source {
    display: block;
}

.rich-editor-shell.is-source-mode .rich-editor-button[data-source-button] {
    color: #ffffff;
    border-color: #1A4F8B;
    background: #1A4F8B;
}

.admin-image-preview {
    width: 180px;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.media-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.media-card-preview {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    background: #f8fafc;
    cursor: pointer;
}

.media-card-preview img,
.media-card-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-file-icon,
.media-type-icon {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 1.25rem;
}

.media-type-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(11, 46, 74, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.media-card-body {
    display: grid;
    gap: 8px;
    padding: 13px;
}

.media-card-body strong {
    overflow: hidden;
    color: #162033;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-card-body span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 750;
}

.media-empty {
    grid-column: 1 / -1;
}

.media-modal .modal-content,
.media-modal {
    border: 0;
    border-radius: var(--radius);
}

.media-modal-preview {
    display: grid;
    min-height: 260px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    background: #f8fafc;
}

.media-modal-preview img,
.media-modal-preview video {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.media-modal-file {
    display: grid;
    gap: 12px;
    place-items: center;
    padding: 24px;
    color: #243044;
    text-align: center;
}

.media-modal-file i {
    font-size: 2.4rem;
    color: var(--accent);
}

.settings-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #eff6ff);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.settings-shortcut span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.1rem;
}

.settings-shortcut strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.settings-shortcut small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.settings-form {
    display: grid;
    gap: 28px;
}

.settings-section {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
}

.settings-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.settings-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.settings-section-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-section-head span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.settings-section-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 850;
}

.settings-section-head p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.settings-preview-box {
    display: grid;
    min-height: 132px;
    place-items: center;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, .8);
    border-radius: var(--radius);
    background:
        linear-gradient(45deg, rgba(248, 250, 252, .88) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(248, 250, 252, .88) 25%, transparent 25%),
        #fff;
    background-size: 18px 18px;
}

.settings-preview-box-sm {
    min-height: 96px;
}

.settings-logo-preview {
    display: block;
    max-width: min(300px, 100%);
    max-height: 88px;
    object-fit: contain;
}

.settings-favicon-preview {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.settings-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .86rem;
    line-height: 1.6;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.lead-profile {
    text-align: center;
}

.lead-avatar {
    display: inline-grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
    font-size: 1.2rem;
}

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

.answer-item {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fbff;
}

.answer-item span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.answer-item strong {
    display: block;
    margin-top: 4px;
}

.match-row,
.note-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.note-item {
    display: block;
}

.match-row:last-child,
.note-item:last-child {
    border-bottom: 0;
}

dl {
    margin-bottom: 0;
}

dt {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin-bottom: 12px;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 58px 0;
    }

    .hero-compact {
        padding: 3.5rem 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-compact .hero-copy,
    .hero-subheading {
        margin-inline: auto;
    }

    .hero-compact .hero-actions {
        justify-content: center;
    }

    .hero-feature-grid {
        max-width: 640px;
        margin-inline: auto;
    }

    .hero-visual {
        width: min(100%, 560px);
        margin-inline: auto;
        transform: scale(.96);
        transform-origin: center top;
    }

    .robot-visual {
        max-width: 620px;
        margin-inline: auto;
    }

    .hero-analysis-card {
        max-width: none;
        margin-left: 0;
    }

    .filter-sidebar,
    .blog-sidebar {
        position: static;
    }

    .section-heading {
        align-items: flex-start;
    }

    .home-supports-section .section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .site-header__container {
        min-height: 66px;
    }

    .site-header__nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .admin-sidebar .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-sub {
        grid-column: 1 / -1;
        margin-left: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-main {
        padding: 18px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-compact {
        padding: 3rem 0;
    }

    .hero-compact .hero-title {
        font-size: 2rem;
    }

    .hero-subheading {
        font-size: .96rem;
    }

    .hero-compact .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-visual {
        min-height: 330px;
        transform: none;
        border-radius: 18px;
    }

    .hero-ui-card-profile {
        top: 18px;
        left: 14px;
        min-width: 190px;
    }

    .hero-ui-card-scan {
        top: 92px;
        width: calc(100% - 28px);
    }

    .hero-ui-card-results {
        right: 14px;
        bottom: 16px;
        width: calc(100% - 28px);
    }

    .hero-ui-card-results div {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }

    .site-logo,
    .footer-logo {
        width: min(170px, 58vw);
        max-height: 42px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .typing-badge {
        width: 100%;
        align-items: flex-start;
    }

    .robot-visual {
        display: grid;
        gap: 12px;
        min-height: auto;
        perspective: none;
    }

    .robot-data-map {
        display: none;
    }

    .robot-layer,
    .robot-layer-main,
    .robot-layer-profile,
    .robot-layer-results {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
        animation: none;
    }

    .robot-layer-main {
        padding: 18px;
    }

    .robot-counts {
        grid-template-columns: 1fr;
    }

    .robot-layer-results div {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-list,
    .company-grid {
        grid-template-columns: 1fr;
    }

    .match-summary,
    .analysis-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .analysis-badge {
        width: max-content;
    }

    .hero-analysis-card {
        padding: 18px;
    }

    .hero-actions .btn,
    .section-heading > .btn {
        width: 100%;
    }

    .support-meta,
    .admin-topbar {
        display: block;
    }

    .admin-topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .admin-profile-name {
        max-width: 120px;
    }

    .support-program-card .card-body {
        padding: 20px;
    }

    .support-program-card .support-meta {
        display: grid;
    }

    .support-meta-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .support-meta-item strong {
        text-align: left;
    }

    .settings-section-head {
        flex-direction: column;
    }

    .settings-section-head p {
        max-width: none;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .btn {
        width: 100%;
    }

    .support-card-actions {
        grid-template-columns: 1fr;
    }

    .admin-topbar form {
        margin-top: 12px;
    }

    .admin-sidebar .nav,
    .nav-sub {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .dashboard-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .admin-body {
        --admin-sidebar-width: 286px;
    }

    .admin-shell {
        display: block;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        width: var(--admin-sidebar-width);
        height: 100dvh;
        min-height: 100dvh;
        transform: translateX(-102%);
        transition: transform .24s cubic-bezier(.2, .7, .2, 1);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar .nav {
        display: flex;
        grid-template-columns: none;
    }

    .admin-sidebar .nav-sub {
        grid-column: auto;
        grid-template-columns: 1fr;
        margin: 4px 0 8px 48px;
    }

    .admin-body.admin-sidebar-open {
        overflow: hidden;
    }

    .admin-body.admin-sidebar-open .admin-backdrop {
        display: block;
    }

    .admin-main {
        grid-column: auto;
        padding: 22px 18px 34px;
    }

    .admin-topbar {
        display: flex;
        align-items: center;
        margin: -22px -18px 24px;
        padding: 14px 18px;
    }

    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-topbar-actions {
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-profile-menu {
        margin-left: auto;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-view-all {
        width: 100%;
    }
}
