:root {
    --primary: #0755a5;
    --primary-deep: #04396f;
    --primary-soft: #0b68c4;
    --primary-pale: #eaf4ff;
    --accent: #f8c93d;
    --accent-hover: #ffda64;
    --background: #f5f9fe;
    --card: #ffffff;
    --foreground: #102c48;
    --muted: #64778b;
    --secondary: #eaf3fc;
    --border: #d6e4f1;
    --success: #12805c;
    --success-soft: #e1f5ed;
    --warning: #a86306;
    --warning-soft: #fff2d7;
    --danger: #c2383b;
    --danger-soft: #fdebec;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --shadow-card: 0 1px 2px rgba(4, 57, 111, .04), 0 16px 40px -28px rgba(4, 57, 111, .34);
    --shadow-elevated: 0 30px 75px -34px rgba(3, 43, 84, .48);
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

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

h1,
h2,
h3,
h4 {
    color: var(--foreground);
    font-family: var(--font-display);
    letter-spacing: -.025em;
    line-height: 1.18;
}

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

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

:focus-visible {
    outline: 3px solid rgba(7, 85, 165, .28);
    outline-offset: 2px;
}

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

.container {
    width: min(100% - 32px, 1152px);
    margin-inline: auto;
}

.narrow-container {
    max-width: 800px;
}

.section {
    padding-top: 76px;
    padding-bottom: 76px;
}

.section-white {
    background: var(--card);
}

.section-bordered {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
    box-shadow: 0 12px 28px -15px rgba(7, 85, 165, .72);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled,
.button.disabled,
.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: .48;
}

.button .icon {
    width: 17px;
    height: 17px;
}

.button-sm {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}

.button-lg {
    min-height: 50px;
    padding: 13px 21px;
    border-radius: 12px;
    font-size: 14px;
}

.button-block {
    width: 100%;
}

.button-accent {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
}

.button-accent:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: var(--primary);
}

.button-secondary {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--primary);
}

.button-secondary:hover {
    border-color: #e0e9ee;
    background: #e0e9ee;
    color: var(--primary);
}

.button-outline {
    border-color: var(--border);
    background: transparent;
    color: var(--foreground);
}

.button-outline:hover {
    border-color: #b7c5ce;
    background: var(--secondary);
    color: var(--foreground);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, .32);
    background: transparent;
    color: #fff;
}

.button-outline-light:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

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

.button-ghost:hover {
    border-color: transparent;
    background: var(--secondary);
    color: var(--foreground);
    box-shadow: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-row.centered {
    justify-content: center;
}

.icon-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--foreground);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

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

.icon-button.danger {
    color: var(--danger);
}

.icon-button.danger:hover {
    border-color: #f0c9cb;
    background: var(--danger-soft);
}

.icon-only {
    width: 44px;
    flex: 0 0 44px;
    padding: 0;
}

.badge,
.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.badge .icon {
    width: 14px;
    height: 14px;
}

.badge-accent {
    background: var(--accent);
    color: var(--primary);
}

.badge-muted {
    background: var(--secondary);
    color: var(--foreground);
}

.badge-primary {
    background: var(--primary);
    color: #fff;
}

.status-pending {
    background: var(--secondary);
    color: var(--foreground);
}

.status-reviewing {
    background: #e2f0ff;
    color: #0755a5;
}

.status-revision {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-approved,
.status-completed {
    background: var(--success-soft);
    color: var(--success);
}

.status-completed {
    background: var(--success);
    color: #fff;
}

.status-rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.grid-noise {
    background-image:
        radial-gradient(circle at 16% 12%, rgba(248, 201, 61, .14), transparent 38%),
        radial-gradient(circle at 86% 2%, rgba(87, 184, 255, .34), transparent 46%);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(223, 231, 236, .8);
    background: rgba(248, 250, 252, .9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: inline-flex;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
}

.brand-mark .icon {
    width: 21px;
    height: 21px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 14px;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--secondary);
    color: var(--foreground);
}

.mobile-menu-button,
.mobile-nav {
    display: none;
}

.mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.mobile-nav .container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    padding-bottom: 12px;
}

.flash-wrap {
    position: fixed;
    z-index: 200;
    top: 78px;
    left: 50%;
    width: min(calc(100% - 32px), 620px);
    transform: translateX(-50%);
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-elevated);
    font-size: 13px;
    animation: slide-down .24s ease both;
}

.flash > .icon {
    margin-top: 1px;
}

.flash-success {
    border-color: #bfe5d6;
    color: #0e6b48;
}

.flash-error {
    border-color: #f1c6c8;
    color: #a7292c;
}

.flash-warning {
    border-color: #eed49e;
    color: #855005;
}

.flash-close {
    width: 28px;
    height: 28px;
    margin: -4px -5px -4px auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.flash-close:hover {
    background: rgba(0, 0, 0, .06);
}

.flash-close .icon {
    width: 16px;
    height: 16px;
}

.site-footer {
    margin-top: 76px;
    background: var(--primary);
    color: rgba(255, 255, 255, .76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr .75fr;
    gap: 64px;
    padding-top: 58px;
    padding-bottom: 48px;
}

.footer-brand .brand-copy strong,
.footer-column h2 {
    color: #fff;
}

.footer-brand .brand-copy small {
    color: rgba(255, 255, 255, .65);
}

.accent-mark {
    background: var(--accent);
    color: var(--primary);
}

.footer-summary {
    max-width: 340px;
    margin: 18px 0 0;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h2 {
    margin-bottom: 5px;
    font-size: 13px;
}

.footer-column p {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 12px;
}

.footer-column .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--accent);
}

.footer-links a {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    transition: color .18s ease;
}

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

.footer-links .admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

.footer-links .admin-link .icon {
    color: inherit;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .56);
    text-align: center;
    font-size: 11px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
    gap: 68px;
    align-items: start;
    padding-top: 90px;
    padding-bottom: 90px;
}

.hero-copy {
    animation: fade-up .55s ease both;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 23px 0 18px;
    color: #fff;
    font-size: clamp(38px, 5vw, 55px);
    font-weight: 800;
    line-height: 1.08;
}

.hero-copy h1 span,
.accent-text {
    color: var(--accent) !important;
}

.hero-copy > p {
    max-width: 620px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.stat-strip {
    display: grid;
    max-width: 600px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 46px 0 0;
}

.stat-strip > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
}

.stat-strip .icon {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.stat-strip dd {
    margin: 7px 0 1px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.stat-strip dt {
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, .56);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.quick-track-card {
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-elevated);
    animation: fade-up .55s .08s ease both;
}

.quick-track-card h2 {
    margin-bottom: 5px;
    font-size: 18px;
}

.quick-track-card > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.inline-search,
.track-search,
.filter-bar,
.admin-filter {
    display: flex;
    gap: 9px;
}

.inline-search {
    margin-top: 18px;
}

.inline-search input {
    width: 100%;
    min-width: 0;
}

input,
select,
textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #c8d9e9;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--foreground);
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 85, 165, .11);
}

input::placeholder,
textarea::placeholder {
    color: #98a6ae;
}

.quick-result,
.quick-placeholder {
    margin-top: 18px;
    border-radius: 12px;
}

.quick-result {
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--secondary);
}

.quick-result strong,
.quick-result code {
    display: block;
}

.quick-result strong {
    margin-bottom: 1px;
    font-family: var(--font-display);
    font-size: 13px;
}

.quick-result code {
    color: var(--muted);
    font-size: 10px;
}

.quick-result .status-badge {
    margin-top: 10px;
}

.quick-result p {
    margin: 8px 0 4px;
    color: var(--muted);
    font-size: 11px;
}

.quick-result a {
    color: var(--foreground);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-placeholder {
    padding: 15px;
    border: 1px dashed #cbd7de;
    color: var(--muted);
    font-size: 11px;
}

.quick-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-color: #e8b9bc;
    background: var(--danger-soft);
    color: var(--danger);
}

.quick-error .icon {
    width: 16px;
    height: 16px;
}

.section-heading {
    max-width: 720px;
}

.section-heading .eyebrow,
.eyebrow {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(26px, 3vw, 34px);
}

.heading-row {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 38px;
}

.workflow-card,
.content-card,
.partner-card,
.panel-card,
.tracking-card,
.form-card,
.auth-card,
.receipt-card,
.stat-card {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.workflow-card {
    padding: 23px;
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.workflow-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.step-number {
    display: block;
    color: #e2e8ec;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.feature-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
}

.feature-icon.soft {
    margin-top: 0;
    background: var(--secondary);
    color: var(--primary);
}

.workflow-card:hover .feature-icon {
    background: var(--accent);
    color: var(--primary);
}

.workflow-card h3 {
    margin: 17px 0 8px;
    font-size: 15px;
}

.workflow-card p,
.content-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.card-grid {
    display: grid;
    gap: 15px;
    margin-top: 38px;
}

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

.content-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 23px;
    border-radius: var(--radius);
}

.content-card h2,
.content-card h3 {
    margin: 13px 0 8px;
    font-size: 15px;
}

.content-card > p {
    display: -webkit-box;
    min-height: 57px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.content-card .button-block {
    margin-top: 15px;
}

.card-top,
.card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.card-meta {
    margin-top: auto;
    padding-top: 16px;
    color: var(--muted);
    font-size: 9px;
}

.card-meta.single {
    display: block;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 38px;
}

.partner-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 23px 15px;
    border-radius: var(--radius);
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.partner-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-3px);
}

.partner-card img,
.partner-placeholder {
    width: 92px;
    height: 50px;
    object-fit: contain;
}

.partner-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--secondary);
    color: var(--muted);
}

.partner-card h3 {
    margin-bottom: 3px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.partner-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 10px;
}

.cta-wrap {
    padding-bottom: 4px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
    border-radius: var(--radius-xl);
    background-color: var(--primary);
    color: #fff;
}

.cta-panel h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 24px;
}

.cta-panel p {
    max-width: 620px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
}

.cta-panel .button {
    flex: 0 0 auto;
}

.page-hero {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background-color: var(--primary);
    color: #fff;
}

.page-hero .container {
    padding-top: 55px;
    padding-bottom: 55px;
}

.page-hero h1 {
    max-width: 760px;
    margin: 10px 0;
    color: #fff;
    font-size: clamp(29px, 4vw, 40px);
}

.page-hero p:not(.eyebrow) {
    max-width: 730px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.filter-bar {
    max-width: 480px;
}

.search-field {
    position: relative;
    width: 100%;
}

.search-field > .icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-field input {
    padding-left: 37px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.filter-chip {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.template-results {
    margin-top: 32px;
}

.empty-state {
    display: flex;
    min-height: 130px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
    padding: 25px;
    border: 1px dashed #c7d3da;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.empty-state p,
.empty-state h2 {
    margin: 0;
}

.empty-state.large {
    min-height: 250px;
    flex-direction: column;
}

.empty-state.large > .icon {
    width: 36px;
    height: 36px;
    opacity: .5;
}

.empty-state.large h2 {
    font-size: 18px;
}

.empty-state.large p {
    font-size: 12px;
}

.form-card {
    margin-top: 31px;
    padding: 25px;
    border-radius: var(--radius);
}

.form-card [data-step-panel] {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 15px;
}

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

.full-width {
    grid-column: 1 / -1;
}

.field {
    min-width: 0;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 6px;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 700;
}

.field label b,
.field legend b {
    color: var(--danger);
}

.field small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

fieldset.field {
    margin: 0;
    padding: 0;
    border: 0;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stepper li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.stepper li > span {
    display: inline-flex;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--secondary);
    font-size: 11px;
    font-weight: 800;
}

.stepper li strong {
    white-space: nowrap;
    font-size: 11px;
}

.stepper li i {
    width: 28px;
    height: 1px;
    margin-left: 4px;
    background: var(--border);
}

.stepper li.active,
.stepper li.completed {
    color: var(--foreground);
}

.stepper li.active > span,
.stepper li.completed > span {
    background: var(--primary);
    color: #fff;
}

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

.check-card {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.check-card:hover {
    border-color: #aab9c2;
    background: var(--background);
}

.check-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--secondary);
}

.check-card input {
    width: 17px;
    min-height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: var(--primary);
}

.check-card span {
    font-size: 11px;
}

.upload-stack {
    display: grid;
    gap: 18px;
}

.upload-field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
}

.drop-zone {
    position: relative;
    display: flex;
    min-height: 146px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 2px dashed #c9d6dd;
    border-radius: 15px;
    background: #f5f8fa;
    text-align: center;
    transition: border-color .18s ease, background .18s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--primary);
    background: var(--secondary);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: #a8c9ba;
    background: var(--success-soft);
}

.drop-zone input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--muted);
}

.drop-zone strong {
    overflow-wrap: anywhere;
    font-size: 12px;
}

.drop-zone small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.form-navigation [data-step-next],
.form-navigation [data-step-submit] {
    margin-left: auto;
}

.success-page {
    display: flex;
    min-height: 620px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 70px;
    text-align: center;
}

.success-icon,
.auth-icon,
.large-icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--success-soft);
    color: var(--success);
}

.success-icon .icon {
    width: 34px;
    height: 34px;
}

.success-page h1 {
    margin: 23px 0 9px;
    font-size: 31px;
}

.success-page > p {
    color: var(--muted);
    font-size: 13px;
}

.receipt-card {
    width: min(100%, 570px);
    margin: 25px 0 13px;
    padding: 25px;
    border-radius: var(--radius);
}

.receipt-card > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.receipt-card > code {
    display: block;
    margin: 9px 0 19px;
    color: var(--primary);
    font-size: clamp(20px, 4vw, 27px);
    font-weight: 800;
}

.track-search {
    max-width: 800px;
}

.tracking-container {
    max-width: 900px;
}

.inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: 12px;
}

.inline-alert.error {
    border-color: #efc1c4;
    background: var(--danger-soft);
    color: var(--danger);
}

.inline-alert.warning {
    border-color: #ead19c;
    background: var(--warning-soft);
    color: var(--warning);
}

.inline-alert a {
    font-weight: 800;
    text-decoration: underline;
}

.inline-alert .icon {
    width: 17px;
    height: 17px;
}

.tracking-results {
    display: grid;
    gap: 22px;
    margin-top: 35px;
}

.tracking-card {
    padding: 25px;
    border-radius: var(--radius);
}

.tracking-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tracking-card header code {
    color: var(--muted);
    font-size: 10px;
}

.tracking-card header h2 {
    margin: 5px 0;
    font-size: 20px;
}

.tracking-card header p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 10px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

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

.timeline li {
    position: relative;
    display: flex;
    gap: 11px;
    color: var(--muted);
}

.timeline li:not(:last-child)::after {
    position: absolute;
    top: 22px;
    bottom: -17px;
    left: 9px;
    width: 1px;
    background: var(--border);
    content: "";
}

.timeline li > span {
    position: relative;
    z-index: 1;
    display: flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.timeline li .icon {
    width: 19px;
    height: 19px;
}

.timeline li.done > span {
    color: var(--success);
}

.timeline li.done strong {
    color: var(--foreground);
}

.timeline strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.timeline p {
    margin-bottom: 0;
    font-size: 10px;
}

.admin-note {
    margin-top: 23px;
    padding: 15px;
    border-radius: 11px;
    background: var(--secondary);
}

.admin-note span,
.section-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-note p {
    margin: 5px 0 0;
    font-size: 12px;
}

.meeting-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 17px 0 0;
    font-size: 11px;
}

.meeting-line .icon {
    width: 16px;
    height: 16px;
}

.auth-page {
    display: flex;
    min-height: 620px;
    max-width: 455px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 65px;
    padding-bottom: 65px;
    text-align: center;
}

.auth-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
}

.auth-icon .icon {
    width: 25px;
    height: 25px;
}

.auth-page h1 {
    margin: 21px 0 6px;
    font-size: 24px;
}

.auth-page > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-page .inline-alert {
    width: 100%;
    text-align: left;
}

.auth-card {
    width: 100%;
    margin-top: 26px;
    padding: 23px;
    border-radius: var(--radius);
    text-align: left;
}

.auth-card .field + .field {
    margin-top: 14px;
}

.auth-card .button {
    margin-top: 19px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 5px;
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
}

.password-field button:hover {
    background: var(--secondary);
}

.center-page {
    display: flex;
    min-height: 620px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-page .error-code {
    margin-bottom: 0;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
}

.center-page h1 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.center-page > p:not(.error-code) {
    max-width: 480px;
    margin-bottom: 23px;
    color: var(--muted);
    font-size: 13px;
}

.danger-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.admin-hero {
    background-color: var(--primary);
    color: #fff;
}

.admin-hero-inner {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.admin-hero h1 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 31px;
}

.admin-hero p:not(.eyebrow) {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.admin-container {
    padding-top: 38px;
}

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

.stat-card {
    padding: 19px;
    border-radius: var(--radius);
}

.stat-card > span {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--secondary);
}

.stat-card > span .icon {
    width: 19px;
    height: 19px;
}

.stat-card strong {
    display: block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 27px;
    line-height: 1.1;
}

.stat-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.dashboard-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 3px;
    margin-top: 34px;
    padding: 4px;
    overflow-x: auto;
    border-radius: 11px;
    background: var(--secondary);
}

.dashboard-tabs a {
    min-width: max-content;
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-tabs a.active {
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 1px 4px rgba(12, 30, 41, .12);
}

.panel-card {
    border-radius: var(--radius);
}

.dashboard-tabs + .panel-card,
.dashboard-tabs + .manager-intro,
.dashboard-tabs + .manager-grid {
    margin-top: 20px;
}

.admin-filter {
    align-items: center;
    padding: 17px;
    border-bottom: 1px solid var(--border);
}

.admin-filter .search-field {
    flex: 1;
}

.admin-filter select {
    width: 205px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table th,
.data-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

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

.data-table th {
    background: #fbfcfd;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table td {
    color: var(--muted);
}

.data-table td strong {
    color: var(--foreground);
}

.data-table td > small,
.data-table td > span + small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
}

.data-table td code {
    color: var(--foreground);
    font-size: 9px;
}

.align-right {
    text-align: right !important;
}

.table-empty {
    height: 130px;
    color: var(--muted);
    text-align: center !important;
}

.action-cell {
    white-space: nowrap;
}

.action-cell,
.action-cell form {
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.action-cell form {
    display: inline-flex;
    margin: 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}

.pagination > div {
    display: flex;
    gap: 7px;
}

.modal-backdrop {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 20, 29, .66);
    backdrop-filter: blur(4px);
}

.modal {
    width: min(100%, 720px);
    max-height: min(86vh, 850px);
    padding: 23px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-elevated);
    animation: modal-in .2s ease both;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-header h2 {
    margin-bottom: 5px;
    font-size: 21px;
}

.modal-header p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f5f8fa;
}

.detail-grid > div {
    min-width: 0;
}

.detail-grid span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.detail-grid p {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 11px;
}

.modal-section {
    margin-top: 19px;
}

.modal-section > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.review-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.review-form > .field {
    margin-top: 15px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.manager-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.manager-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

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

.manager-sidebar {
    display: grid;
    align-content: start;
    gap: 17px;
}

.compact-form {
    padding: 19px;
}

.compact-form h2 {
    margin-bottom: 16px;
    font-size: 15px;
}

.compact-form .field + .field {
    margin-top: 13px;
}

.compact-form .button-block {
    margin-top: 17px;
}

.compact-form input[type="file"] {
    height: auto;
    padding: 8px;
    font-size: 10px;
}

.compact-form input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 6px 9px;
    border: 0;
    border-radius: 6px;
    background: var(--secondary);
    color: var(--foreground);
    font: inherit;
    font-weight: 700;
}

.form-help {
    margin: -7px 0 13px;
    color: var(--muted);
    font-size: 10px;
}

.table-panel {
    align-self: start;
    overflow: hidden;
}

.partner-cell {
    display: flex;
    min-width: 170px;
    align-items: center;
    gap: 10px;
}

.partner-cell img,
.partner-cell > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 7px;
}

.partner-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.partner-cell .icon {
    width: 16px;
    height: 16px;
}

.setup-body {
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 254, 21, .13), transparent 27%),
        radial-gradient(circle at 88% 0%, rgba(12, 30, 41, .12), transparent 32%),
        var(--background);
}

.setup-shell {
    width: min(calc(100% - 32px), 920px);
    margin: 0 auto;
    padding: 62px 0 80px;
}

.setup-heading {
    max-width: 690px;
    margin: 0 auto 28px;
    text-align: center;
}

.setup-logo {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 17px;
    background: var(--primary);
    color: var(--accent);
    box-shadow: var(--shadow-elevated);
}

.setup-logo .icon {
    width: 27px;
    height: 27px;
}

.setup-heading h1 {
    margin: 7px 0 11px;
    font-size: clamp(28px, 5vw, 40px);
}

.setup-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.setup-errors {
    display: flex;
    gap: 13px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #efc1c4;
    border-radius: var(--radius);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 11px;
}

.setup-errors strong {
    display: block;
    margin-bottom: 4px;
}

.setup-errors ul {
    margin: 0;
    padding-left: 18px;
}

.requirement-card,
.setup-form,
.setup-success {
    padding: 24px;
}

.requirement-card {
    margin-bottom: 18px;
}

.requirement-card h2,
.setup-form h2,
.setup-success h2 {
    margin-bottom: 16px;
    font-size: 16px;
}

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

.requirement-grid > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 10px;
    background: #f5f8fa;
}

.requirement-grid .ready {
    color: var(--success);
}

.requirement-grid .not-ready {
    color: var(--danger);
}

.requirement-grid .icon {
    width: 17px;
    height: 17px;
}

.requirement-grid p {
    min-width: 0;
    margin: 0;
}

.requirement-grid strong,
.requirement-grid small {
    display: block;
}

.requirement-grid strong {
    color: var(--foreground);
    font-size: 10px;
}

.requirement-grid small {
    margin-top: 2px;
    color: currentColor;
    font-size: 9px;
}

.setup-form > section + section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.setup-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.setup-section-title > span {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.setup-section-title h2 {
    margin: 1px 0 3px;
}

.setup-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.setup-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid var(--border);
}

.setup-submit p {
    display: flex;
    max-width: 450px;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.setup-submit .icon {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.setup-success {
    text-align: center;
}

.setup-success > span {
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 16px;
    background: var(--success-soft);
    color: var(--success);
}

.setup-success > span .icon {
    width: 29px;
    height: 29px;
}

.setup-success h2 {
    margin-bottom: 8px;
    font-size: 21px;
}

.setup-success > p {
    max-width: 590px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 11px;
}

/* Identitas visual profesional Universitas Semarang */
body {
    background:
        linear-gradient(180deg, rgba(234, 244, 255, .38), transparent 420px),
        var(--background);
}

.button {
    border-radius: 12px;
    box-shadow: 0 8px 20px -16px rgba(4, 57, 111, .7);
}

.button-accent {
    box-shadow: 0 12px 28px -18px rgba(248, 201, 61, .82);
}

.button-outline {
    border-color: #c8d9e9;
    background: #fff;
}

.button-outline:hover {
    border-color: #a9c5df;
    background: var(--primary-pale);
    color: var(--primary-deep);
}

.button-secondary {
    border-color: #dceafa;
    background: #edf6ff;
    color: var(--primary-deep);
}

.site-header {
    border-bottom-color: rgba(7, 85, 165, .12);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 30px -26px rgba(4, 57, 111, .55);
}

.site-header::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-deep), var(--primary-soft) 72%, var(--accent));
    content: "";
}

.header-inner {
    height: 72px;
}

.brand {
    gap: 12px;
}

.brand-logo {
    width: 43px;
    height: 50px;
    flex: 0 0 43px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(4, 57, 111, .13));
}

.brand-copy strong {
    color: var(--primary-deep);
    font-size: 15px;
    letter-spacing: -.015em;
}

.brand-copy small {
    margin-top: 4px;
    color: #6c7f92;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.desktop-nav {
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(7, 85, 165, .08);
    border-radius: 13px;
    background: rgba(234, 244, 255, .54);
}

.desktop-nav a,
.mobile-nav a {
    border-radius: 9px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 5px 14px -11px rgba(4, 57, 111, .72);
}

.mobile-nav {
    border-top-color: rgba(7, 85, 165, .1);
    background: rgba(255, 255, 255, .98);
}

.site-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(48, 135, 219, .25), transparent 34%),
        linear-gradient(135deg, #032f5d, #044584 68%, #0755a5);
}

.footer-grid {
    padding-top: 64px;
    padding-bottom: 52px;
}

.footer-logo {
    width: 50px;
    height: 58px;
    flex-basis: 50px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}

.footer-brand .brand-copy strong {
    color: #fff;
    font-size: 16px;
}

.footer-brand .brand-copy small {
    color: rgba(255, 255, 255, .68);
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, .13);
}

.home-hero {
    background:
        linear-gradient(112deg, rgba(3, 47, 93, .98) 0%, rgba(5, 75, 143, .96) 56%, rgba(10, 104, 196, .94) 100%);
}

.home-hero::before,
.page-hero::before,
.admin-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

.home-hero::after {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 75px rgba(255, 255, 255, .025), 0 0 0 150px rgba(255, 255, 255, .018);
    content: "";
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    gap: 74px;
    padding-top: 96px;
    padding-bottom: 98px;
}

.hero-copy h1 {
    max-width: 700px;
    margin-top: 25px;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.06;
}

.hero-copy > p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.72;
}

.badge-accent {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-copy h1 span,
.accent-text {
    color: #ffda55 !important;
}

.stat-strip {
    max-width: 625px;
    margin-top: 50px;
}

.stat-strip > div {
    padding: 17px;
    border-color: rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.stat-strip .icon {
    color: #ffda55;
}

.quick-track-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 32px 70px -34px rgba(1, 31, 62, .72);
}

.quick-track-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #49a2ee, var(--accent));
    content: "";
}

.quick-track-card h2 {
    color: var(--primary-deep);
    font-size: 20px;
}

.quick-placeholder {
    border-color: #c8dcef;
    background: #f8fbff;
}

.section-heading .eyebrow,
.eyebrow {
    color: var(--primary);
}

.section-heading h2 {
    color: var(--primary-deep);
}

.section-white {
    background: #fff;
}

.workflow-card,
.content-card,
.partner-card,
.panel-card,
.tracking-card,
.form-card,
.auth-card,
.receipt-card,
.stat-card {
    border-color: rgba(7, 85, 165, .14);
    box-shadow: var(--shadow-card);
}

.workflow-card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.workflow-card:hover {
    border-top-color: var(--primary-soft);
}

.step-number {
    color: #dceafa;
}

.feature-icon {
    background: linear-gradient(145deg, var(--primary), var(--primary-soft));
    box-shadow: 0 12px 24px -16px rgba(7, 85, 165, .9);
}

.feature-icon.soft {
    background: var(--primary-pale);
    color: var(--primary);
    box-shadow: none;
}

.workflow-card:hover .feature-icon {
    background: linear-gradient(145deg, var(--primary-deep), var(--primary));
    color: #fff;
}

.content-card {
    position: relative;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.content-card:hover {
    border-color: rgba(7, 85, 165, .32);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.content-card h2,
.content-card h3,
.partner-card h3 {
    color: var(--primary-deep);
}

.partner-card {
    background: linear-gradient(180deg, #fff, #f9fcff);
}

.partner-placeholder {
    background: var(--primary-pale);
    color: var(--primary);
}

.cta-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(120deg, var(--primary-deep), var(--primary) 70%, var(--primary-soft));
    box-shadow: 0 28px 62px -34px rgba(4, 57, 111, .75);
}

.page-hero,
.admin-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, var(--primary-deep), var(--primary) 68%, var(--primary-soft));
}

.page-hero .container,
.admin-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero .container {
    padding-top: 62px;
    padding-bottom: 62px;
}

.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.form-card,
.tracking-card,
.auth-card,
.receipt-card {
    border-top: 4px solid var(--primary);
}

.stepper li.active span,
.stepper li.completed span {
    background: var(--primary);
    box-shadow: 0 8px 18px -12px rgba(7, 85, 165, .9);
}

.check-card input:checked + span {
    border-color: var(--primary);
    background: var(--primary-pale);
    color: var(--primary-deep);
}

.drop-zone {
    background: #f8fbff;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--primary-soft);
    background: var(--primary-pale);
}

.admin-stats .stat-card {
    position: relative;
    overflow: hidden;
}

.admin-stats .stat-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border-radius: 0 0 0 70px;
    background: rgba(7, 85, 165, .045);
    content: "";
}

.stat-card > span {
    background: var(--primary-pale);
    color: var(--primary);
}

.dashboard-tabs {
    border: 1px solid rgba(7, 85, 165, .1);
    background: var(--primary-pale);
}

.dashboard-tabs a.active {
    color: var(--primary);
    box-shadow: 0 5px 16px -12px rgba(4, 57, 111, .65);
}

.data-table th {
    background: #f4f9ff;
    color: #52708d;
}

.modal-backdrop {
    background: rgba(3, 34, 66, .68);
}

.detail-grid {
    background: #f6faff;
}

.setup-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(248, 201, 61, .19), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(11, 104, 196, .2), transparent 34%),
        linear-gradient(180deg, #edf6ff, #f8fbff 520px, var(--background));
}

.setup-logo {
    width: 82px;
    height: 94px;
    margin-bottom: 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.setup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(4, 57, 111, .18));
}

.setup-heading h1 {
    color: var(--primary-deep);
}

.requirement-grid > div {
    border: 1px solid rgba(7, 85, 165, .08);
    background: #f6faff;
}

.setup-section-title > span {
    background: linear-gradient(145deg, var(--primary-deep), var(--primary));
}

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

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
    .desktop-nav {
        gap: 0;
    }

    .desktop-nav a {
        padding-inline: 9px;
        font-size: 11px;
    }

    .hero-grid {
        grid-template-columns: 1fr .8fr;
        gap: 35px;
    }

    .workflow-grid,
    .partner-grid,
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manager-grid {
        grid-template-columns: 310px minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    .desktop-nav,
    .desktop-cta {
        display: none;
    }

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

    .mobile-nav:not([hidden]) {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .quick-track-card {
        max-width: 620px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 700px) {
    .section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .heading-row,
    .cta-panel,
    .admin-hero-inner,
    .setup-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-panel .button,
    .setup-submit .button {
        width: 100%;
    }

    .admin-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter select {
        width: 100%;
    }

    .responsive-table-wrap {
        overflow: visible;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        padding: 10px;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        padding: 8px 11px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: #fff;
    }

    .responsive-table tr:last-child {
        margin-bottom: 0;
    }

    .responsive-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border);
        text-align: left !important;
    }

    .responsive-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table .table-empty {
        display: block;
        height: auto;
        padding: 35px 10px;
    }

    .responsive-table .table-empty::before {
        display: none;
    }

    .action-cell,
    .action-cell form {
        justify-content: flex-start;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination > div,
    .pagination .button {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1152px);
    }

    .header-inner {
        height: 62px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .home-hero .container {
        width: min(100% - 24px, 1152px);
    }

    .hero-grid {
        gap: 31px;
        padding-top: 48px;
        padding-bottom: 49px;
    }

    .hero-copy h1 {
        margin-top: 19px;
        font-size: 35px;
    }

    .hero-copy > p {
        font-size: 13px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .stat-strip {
        gap: 7px;
        margin-top: 35px;
    }

    .stat-strip > div {
        padding: 11px 9px;
    }

    .stat-strip dd {
        font-size: 20px;
    }

    .stat-strip dt {
        font-size: 7px;
    }

    .quick-track-card {
        padding: 20px;
    }

    .workflow-grid,
    .three-columns,
    .partner-grid,
    .admin-stats,
    .requirement-grid,
    .two-columns,
    .checkbox-grid,
    .manager-sidebar {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        gap: 11px;
    }

    .workflow-card {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 13px;
        padding: 18px;
    }

    .workflow-card .step-number {
        display: none;
    }

    .workflow-card .feature-icon {
        grid-row: 1 / span 2;
        margin-top: 0;
    }

    .workflow-card h3 {
        margin: 1px 0 5px;
    }

    .workflow-card p {
        grid-column: 2;
    }

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

    .partner-card {
        padding: 18px 10px;
    }

    .cta-panel {
        padding: 27px 22px;
        border-radius: 20px;
    }

    .page-hero .container {
        padding-top: 43px;
        padding-bottom: 43px;
    }

    .filter-bar,
    .track-search {
        flex-direction: column;
    }

    .filter-bar .button,
    .track-search .button {
        width: 100%;
    }

    .stepper {
        justify-content: space-between;
        gap: 5px;
    }

    .stepper li {
        flex: 1;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .stepper li strong {
        white-space: normal;
        font-size: 8px;
        line-height: 1.25;
    }

    .stepper li i {
        position: absolute;
        display: none;
    }

    .form-card {
        padding: 18px;
    }

    .form-navigation .button {
        padding-inline: 12px;
    }

    .tracking-card {
        padding: 18px;
    }

    .tracking-card > header {
        flex-direction: column;
    }

    .tracking-card .status-badge {
        align-self: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 46px;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .admin-hero-inner {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .admin-hero-inner form,
    .admin-hero-inner .button {
        width: 100%;
    }

    .dashboard-tabs {
        width: 100%;
    }

    .dashboard-tabs a {
        flex: 1 0 auto;
        text-align: center;
    }

    .modal-backdrop {
        padding: 8px;
    }

    .modal {
        max-height: 94vh;
        padding: 18px;
        border-radius: 15px;
    }

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

    .modal-actions,
    .modal-actions .button {
        width: 100%;
    }

    .modal-actions .button {
        flex: 1;
    }

    .setup-shell {
        width: min(calc(100% - 24px), 920px);
        padding-top: 40px;
    }

    .requirement-card,
    .setup-form,
    .setup-success {
        padding: 18px;
    }
}

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