:root {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-soft: #dff5ef;
    --ink: #17201f;
    --muted: #65736f;
    --line: #dfe8e5;
    --surface: #ffffff;
    --soft: #f4f8f6;
    --accent: #f97316;
    --blue: #2563eb;
    --violet: #7c3aed;
    --red: #dc2626;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    overflow-x: hidden;
}

body {
    color: var(--ink);
    background: var(--soft);
    font-size: 15px;
}

a {
    text-decoration: none;
}

.text-brand {
    color: var(--brand);
}

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
}

.touch-target,
.icon-btn,
.mobile-action {
    min-width: 44px;
    min-height: 44px;
}

.touch-input,
.form-select,
.form-control {
    min-height: 44px;
    border-radius: var(--radius);
}

.flash-container {
    padding-top: 16px;
}

.public-shell {
    padding-top: 72px;
    padding-bottom: 82px;
    background: #fbfdfc;
}

.public-header .navbar {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92) !important;
}

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

.navbar-brand::before {
    content: "GS";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(6, 35, 34, 0.94), rgba(15, 118, 110, 0.70), rgba(15, 118, 110, 0.18)),
        url("../images/academy-hero.png") center / cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #fbfdfc);
    pointer-events: none;
}

.trust-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

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

.trust-grid div {
    min-height: 78px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    color: var(--brand);
    font-size: 1.15rem;
}

.trust-grid span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.84rem;
}

.academy-showcase {
    padding: 64px 0;
    background:
        linear-gradient(135deg, #082f2c, #0f766e 54%, #1d4ed8);
    color: #ffffff;
}

.showcase-grid {
    display: grid;
    gap: 24px;
}

.showcase-grid h2 {
    max-width: 760px;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    line-height: 1.04;
    margin: 8px 0 14px;
}

.showcase-grid p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 660px;
    margin: 0;
}

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

.showcase-card-grid article {
    min-height: 132px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.showcase-card-grid strong,
.showcase-card-grid span {
    display: block;
}

.showcase-card-grid strong {
    font-size: 1.8rem;
    color: #ffffff;
}

.showcase-card-grid span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
}

.proof-band {
    padding: 70px 0;
    background: #ffffff;
}

.proof-layout {
    display: grid;
    gap: 24px;
}

.proof-layout h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    margin: 8px 0 12px;
}

.proof-layout p {
    color: var(--muted);
    max-width: 620px;
}

.proof-list {
    display: grid;
    gap: 12px;
}

.proof-list article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.04)),
        #ffffff;
}

.proof-list strong,
.proof-list span {
    display: block;
}

.proof-list span {
    margin-top: 5px;
    color: var(--muted);
}

.journey-band {
    padding: 70px 0;
    background:
        linear-gradient(180deg, #ffffff, #f4f8f6);
}

.timeline-card {
    min-height: 148px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--blue), var(--accent));
}

.timeline-card span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 900;
    font-size: 0.78rem;
}

.timeline-card strong {
    display: block;
    color: var(--ink);
}

.timeline-card p {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 0.88rem;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(2.55rem, 8vw, 5.6rem);
    line-height: 1;
    margin: 10px 0 18px;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-actions .btn-outline-brand {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-outline-brand:hover {
    color: var(--brand-dark);
    border-color: #ffffff;
    background: #ffffff;
}

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

.hero-metric {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.hero-metric:nth-child(1) {
    background: rgba(15, 118, 110, 0.22);
}

.hero-metric:nth-child(2) {
    background: rgba(37, 99, 235, 0.18);
}

.hero-metric:nth-child(3) {
    background: rgba(249, 115, 22, 0.18);
}

.hero-metric strong,
.hero-metric span {
    display: block;
}

.hero-metric strong {
    font-size: 1.6rem;
}

.section-band {
    padding: 70px 0;
}

.bg-soft {
    background: var(--soft);
}

.section-heading {
    margin-bottom: 22px;
}

.wide-heading {
    max-width: 760px;
}

.wide-heading p {
    color: var(--muted);
    margin: 8px 0 0;
}

.section-heading.compact {
    margin-top: 28px;
}

.section-heading h2,
.work-panel h2,
.form-panel h2 {
    font-size: 1.45rem;
    margin: 4px 0 0;
}

.wide-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
}

.eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.feature-card,
.stat-card,
.module-card,
.mini-card,
.work-panel,
.form-panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.feature-card,
.module-card,
.stat-card {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover,
.module-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-card,
.module-card,
.mini-card {
    padding: 12px;
    min-height: 124px;
}

.elevated-card,
.program-card,
.faculty-card {
    min-height: 168px;
    position: relative;
}

.program-card {
    border-top: 4px solid var(--brand);
}

.program-card a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 800;
}

.faculty-card {
    border-top: 4px solid var(--blue);
}

.feature-card h3,
.module-card strong,
.mini-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 0.98rem;
    color: var(--ink);
}

.feature-card p,
.module-card small,
.mini-card small,
.mini-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.card-icon,
.module-icon,
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.program-card,
.elevated-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.98));
}

.learning-grid .elevated-card:nth-child(2) .card-icon,
.program-card:nth-child(2) .card-icon {
    background: #dbeafe;
    color: var(--blue);
}

.learning-grid .elevated-card:nth-child(3) .card-icon,
.program-card:nth-child(3) .card-icon {
    background: #ffedd5;
    color: var(--accent);
}

.learning-grid .elevated-card:nth-child(4) .card-icon,
.program-card:nth-child(4) .card-icon {
    background: #ede9fe;
    color: var(--violet);
}

.stat-card {
    padding: 14px;
    min-height: 106px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid var(--brand);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.86rem;
}

.stat-card strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.stat-card small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
}

.result-band {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.08)),
        #ffffff;
}

.enquiry-band {
    border-top: 1px solid var(--line);
}

.tone-green { border-left-color: var(--brand); }
.tone-orange { border-left-color: var(--accent); }
.tone-blue { border-left-color: var(--blue); }
.tone-violet { border-left-color: var(--violet); }
.tone-red { border-left-color: var(--red); }
.tone-teal { border-left-color: #0891b2; }

.form-panel {
    display: grid;
    gap: 22px;
    padding: 18px;
}

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

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(249, 115, 22, 0.2)),
        var(--soft);
}

.auth-wrap {
    width: min(100%, 430px);
}

.login-card {
    padding: 22px;
}

.login-help {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #b8e5db;
    background: #effaf7;
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.login-help span {
    color: var(--muted);
    font-weight: 700;
}

.login-help a {
    color: var(--brand);
    font-weight: 800;
}

.setup-card {
    width: min(100%, 680px);
}

.setup-list {
    display: grid;
    gap: 10px;
}

.setup-row {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.setup-row strong {
    font-size: 0.96rem;
}

.setup-row span {
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.setup-ok {
    border-left: 4px solid var(--brand);
}

.setup-fail {
    border-left: 4px solid var(--red);
}

.setup-warn {
    border-left: 4px solid var(--accent);
}

.setup-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.setup-table span {
    padding: 8px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.setup-table .is-ok {
    background: #e8f5f2;
    color: var(--brand-dark);
}

.setup-table .is-fail {
    background: #fee2e2;
    color: var(--red);
}

.login-brand,
.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.login-brand h1 {
    font-size: 1.4rem;
    margin: 0;
}

.login-brand p,
.sidebar-brand small {
    margin: 0;
    color: var(--muted);
}

.admin-shell {
    background: var(--soft);
    padding-bottom: 82px;
}

.admin-layout {
    display: block;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    max-width: 82vw;
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 18px;
    z-index: 1050;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    overflow-y: auto;
}

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

.sidebar-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1040;
    display: none;
}

.sidebar-scrim.is-visible {
    display: block;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.sidebar-link span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #edf6f3;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 900;
}

.sidebar-link:hover {
    background: var(--soft);
    color: var(--brand);
}

.sidebar-link.is-active {
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.14), rgba(37, 99, 235, 0.06)),
        #f8fbfa;
    color: var(--brand-dark);
    font-weight: 900;
    box-shadow: inset 4px 0 0 var(--brand);
}

.sidebar-link.is-active span {
    color: #ffffff;
    background: var(--brand);
}

.admin-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
    font-size: 1.18rem;
    margin: 0;
}

.mobile-back {
    display: inline-flex;
    color: var(--brand);
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip {
    display: none;
    color: var(--muted);
    font-weight: 700;
}

.icon-btn {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.content-wrap {
    padding: 16px 14px 24px;
    flex: 1;
}

.admin-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 12px 16px 92px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.admin-footer a {
    color: var(--brand);
    font-weight: 900;
}

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

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.08)),
        #ffffff;
}

.dashboard-hero h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
}

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

.executive-grid .stat-card {
    min-height: 124px;
}

.desktop-actions {
    display: none;
    gap: 8px;
}

.panel-section {
    margin-top: 18px;
}

.analytics-layout {
    display: grid;
    gap: 16px;
}

.analytics-panel {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title-row h2 {
    margin: 4px 0 0;
    font-size: 1.08rem;
}

.panel-title-row a {
    color: var(--brand);
    font-weight: 800;
}

.bar-chart {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(82px, 0.8fr) minmax(90px, 2fr) auto;
    align-items: center;
    gap: 10px;
}

.bar-row span,
.bar-row b {
    font-size: 0.84rem;
}

.bar-row span {
    color: var(--muted);
    font-weight: 800;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf3f1;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.tone-bg-green { background: var(--brand); }
.tone-bg-blue { background: var(--blue); }
.tone-bg-red { background: var(--red); }
.tone-bg-orange { background: var(--accent); }
.tone-bg-violet { background: var(--violet); }
.tone-bg-teal { background: #0891b2; }

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-height: 190px;
}

.pipeline-grid article {
    display: grid;
    align-content: end;
    gap: 8px;
    min-height: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbfa;
}

.pipeline-grid i {
    display: block;
    min-height: 8px;
    border-radius: 999px 999px 4px 4px;
}

.pipeline-grid span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.pipeline-grid strong {
    font-size: 1.15rem;
}

.trend-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 10px;
    min-height: 220px;
}

.trend-chart article {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 6px;
    text-align: center;
}

.trend-chart div {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 150px;
    border-radius: var(--radius);
    background: #f4f8f6;
    padding: 8px;
}

.trend-chart i {
    display: block;
    width: 100%;
    min-height: 8px;
    border-radius: 999px 999px 4px 4px;
}

.trend-chart span {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

.trend-chart strong {
    font-size: 0.9rem;
}

.compact-bars .bar-row {
    grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.7fr) auto;
}

.alert-grid {
    margin-top: 12px;
}

.alert-tile {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    border-left: 4px solid var(--brand);
}

.alert-tile span {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.84rem;
}

.alert-tile strong {
    font-size: 1.25rem;
}

.module-card {
    display: block;
    color: var(--ink);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.split-layout {
    display: grid;
    gap: 16px;
}

.work-panel {
    padding: 16px;
}

.module-hero-panel {
    display: grid;
    gap: 18px;
    background:
        linear-gradient(135deg, #ffffff, #f2faf7);
}

.module-hero-panel p {
    color: var(--muted);
    margin: 8px 0 0;
}

.action-card {
    min-height: 150px;
}

.module-workspace {
    align-items: start;
}

.record-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 2px;
}

.record-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, #ffffff, #f8fbfa);
}

.record-card strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.record-card span {
    color: var(--muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.record-card b {
    color: var(--ink);
}

.empty-state {
    display: grid;
    gap: 6px;
    padding: 16px;
    min-height: 112px;
    align-content: center;
    border: 1px dashed #b7c8c3;
    border-radius: var(--radius);
    background: #f8fbfa;
}

.empty-state strong {
    color: var(--ink);
}

.empty-state span {
    color: var(--muted);
}

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

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f5f2;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.8rem;
}

.mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.mobile-action {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--ink);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.mobile-action span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

.mobile-action small {
    font-size: 0.72rem;
    font-weight: 800;
}

.ripple.is-pressed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 118, 110, 0.15);
    animation: rippleFade 420ms ease forwards;
}

.site-footer {
    background:
        linear-gradient(135deg, #0b2f2b, #123f3b 52%, #172554),
        #102d2a;
    color: rgba(255, 255, 255, 0.86);
    padding: 48px 0 88px;
}

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

.footer-brand {
    grid-column: 1 / -1;
}

.footer-mark {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer h2,
.site-footer h3 {
    color: #ffffff;
    margin: 0 0 10px;
}

.site-footer h2 {
    font-size: 1.35rem;
}

.site-footer h3 {
    font-size: 0.98rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 12px;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    min-height: 30px;
    font-weight: 700;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.footer-contact {
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a {
    display: inline;
    color: #fbbf24;
}

@keyframes rippleFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .breadcrumb,
    .desktop-only {
        display: none !important;
    }

    .navbar-collapse.show {
        display: block;
        padding-top: 12px;
    }

    .hero-panel,
    .erp-grid,
    .trust-grid,
    .footer-grid,
    .showcase-card-grid,
    .timeline-grid,
    .dashboard-grid,
    .module-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .table {
        min-width: 620px;
    }

    .dashboard-hero {
        display: block;
        padding: 14px;
    }

    .pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    .pipeline-grid article {
        min-height: 118px;
    }

    .bar-row,
    .compact-bars .bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .public-shell,
    .admin-shell {
        padding-bottom: 0;
    }

    .admin-footer {
        padding-bottom: 12px;
    }

    .mobile-action-bar,
    .mobile-back {
        display: none;
    }

    .hero-grid,
    .form-panel,
    .split-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .erp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

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

    .showcase-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: center;
    }

    .proof-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: center;
    }

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

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-actions {
        display: flex;
    }

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

    .user-chip {
        display: inline-flex;
    }

    .content-wrap {
        padding: 24px;
    }
}

@media (min-width: 1025px) {
    .admin-layout {
        display: grid;
        grid-template-columns: 286px minmax(0, 1fr);
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
    }

    .sidebar-scrim {
        display: none !important;
    }

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

    .admin-topbar {
        padding: 16px 24px;
    }
}
