body {
    background: #f5f7f6;
    color: #1f2a37;
    font-family: Arial, sans-serif;
}

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1f8a5a;
    background: #e5f3e9;
    font-size: 2.5rem;
}

.stat-card {
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f4faf5);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dashboard-welcome {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 36px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(115deg, #0d4a3a, #187353);
}

.dashboard-eyebrow {
    color: #b8e7cf;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.dashboard-welcome h1 {
    margin: 9px 0 5px;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dashboard-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.welcome-icon {
    width: 94px;
    height: 94px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    color: #b8e7cf;
    background: rgba(255, 255, 255, 0.1);
    font-size: 2.8rem;
    transform: rotate(6deg);
}

.stat-label {
    margin: 0;
    color: #68766e;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-value {
    margin-top: 17px;
    color: #1f2a37;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-caption {
    margin-top: 8px;
    color: #87928a;
    font-size: 0.78rem;
}

.quick-action-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #e6ece7;
    border-radius: 16px;
    color: #1f2a37;
    background: #fff;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.quick-action-card:hover,
.quick-action-card:focus-visible {
    transform: translateY(-2px);
    border-color: #b6d9c2;
    color: #1f2a37;
    box-shadow: 0 10px 25px rgba(25, 56, 39, 0.08);
}

.quick-action-icon {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #1f8a5a;
    background: #e8f5ed;
    font-size: 1.2rem;
}

.quick-action-card strong,
.quick-action-card small {
    display: block;
}

.quick-action-card strong {
    font-size: 0.91rem;
}

.quick-action-card small {
    margin-top: 4px;
    color: #758179;
    font-size: 0.77rem;
    line-height: 1.4;
}

.action-arrow {
    margin-left: auto;
    color: #8c9a91;
}

.nav-profile-img-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.card {
    border-radius: 18px;
}

.btn-primary {
    background-color: #1f8a5a;
    border-color: #1f8a5a;
}

.btn-primary:hover {
    background-color: #17714b;
    border-color: #17714b;
}

.public-home {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 88% 18%, rgba(220, 239, 227, 0.9), transparent 31rem),
        linear-gradient(180deg, #0d4a3a 0, #0d4a3a 610px, #f7f9f7 610px, #f7f9f7 100%);
    color: #1f2a37;
}

.public-nav {
    width: min(1160px, calc(100% - 48px));
    height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.public-brand img {
    width: 44px;
    height: 44px;
    padding: 5px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.public-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 400;
}

.public-hero {
    width: min(1160px, calc(100% - 48px));
    min-height: 475px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    color: #fff;
}

.hero-copy {
    padding: 42px 0 65px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: #b8e7cf;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.7rem, 5.2vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.hero-copy h1 span {
    color: #a8e2bf;
}

.hero-description {
    max-width: 520px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 1.06rem;
    line-height: 1.75;
}

.btn-brand {
    color: #fff;
    background: #1f8a5a;
    border-color: #1f8a5a;
    box-shadow: 0 10px 24px rgba(7, 39, 30, 0.16);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: #17714b;
    border-color: #17714b;
}

.hero-assurance {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.85rem;
}

.hero-assurance i {
    color: #a8e2bf;
    font-size: 1.05rem;
}

.hero-art {
    min-height: 390px;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.orbit-one {
    width: 350px;
    height: 350px;
}

.orbit-two {
    width: 430px;
    height: 430px;
}

.hero-document {
    z-index: 1;
    width: 230px;
    min-height: 292px;
    padding: 29px 28px;
    position: relative;
    transform: rotate(5deg);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 65px rgba(2, 31, 23, 0.28);
}

.doc-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 14px;
    background: #e8f5ed;
}

.doc-mark img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.doc-label {
    display: block;
    margin-bottom: 17px;
    color: #1f8a5a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.doc-line {
    height: 8px;
    width: 76%;
    margin-top: 12px;
    border-radius: 99px;
    background: #e9efeb;
}

.doc-line-long {
    width: 100%;
}

.doc-line-short {
    width: 56%;
}

.doc-stamp {
    width: 48px;
    height: 48px;
    position: absolute;
    right: 24px;
    bottom: 27px;
    display: grid;
    place-items: center;
    border: 2px solid #87c89f;
    border-radius: 50%;
    color: #1f8a5a;
    font-size: 1.4rem;
}

.hero-note {
    z-index: 2;
    position: absolute;
    right: 0;
    bottom: 37px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 19px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    color: #1f2a37;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(2, 31, 23, 0.14);
}

.note-icon,
.highlight-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #1f8a5a;
    background: #e8f5ed;
    font-size: 1.1rem;
}

.hero-note strong,
.hero-note small,
.highlight-item strong,
.highlight-item small {
    display: block;
}

.hero-note strong,
.highlight-item strong {
    font-size: 0.9rem;
}

.hero-note small,
.highlight-item small {
    margin-top: 3px;
    color: #758179;
    font-size: 0.78rem;
}

.hero-spark {
    position: absolute;
    color: #a8e2bf;
    font-size: 1.5rem;
}

.spark-one {
    top: 49px;
    right: 17%;
}

.spark-two {
    bottom: 67px;
    left: 8%;
    font-size: 1rem;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 7px;
    padding: 25px 32px;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(25, 56, 39, 0.06);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.public-footer {
    padding: 32px 24px 22px;
    color: #87928a;
    font-size: 0.78rem;
    text-align: center;
}

.public-footer span {
    margin: 0 5px;
}

.floating-account {
    position: fixed;
    right: 25px;
    bottom: 24px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #1f8a5a;
    box-shadow: 0 10px 28px rgba(12, 77, 52, 0.3);
    font-weight: 600;
}

.floating-account:hover {
    background: #17714b;
}

.floating-account i {
    font-size: 1.1rem;
}

.account-modal {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 25px 80px rgba(12, 35, 23, 0.24);
}

.account-modal .modal-header {
    padding: 28px 30px 0;
}

.account-modal .modal-body {
    padding: 22px 30px 30px;
}

.modal-logo {
    width: 47px;
    height: 47px;
    object-fit: contain;
}

.account-tabs {
    padding: 5px;
    border-radius: 12px;
    background: #f1f5f2;
}

.account-tabs .nav-link {
    border-radius: 9px;
    color: #58665d;
    font-weight: 600;
}

.account-tabs .nav-link.active {
    color: #176744;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 53, 36, 0.08);
}

.demo-accounts {
    padding: 16px;
    border: 1px solid #e1ebe4;
    border-radius: 14px;
    background: #f8faf8;
}

.demo-account-list {
    display: grid;
    gap: 8px;
}

.demo-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5ece7;
    border-radius: 10px;
    color: #24352b;
    background: #fff;
    text-align: left;
}

.demo-account:hover,
.demo-account:focus-visible {
    border-color: #9dc8ac;
    background: #f4faf5;
}

.demo-account > span:first-child {
    display: grid;
    gap: 2px;
}

.demo-account small,
.demo-account-action {
    color: #68776d;
    font-size: 0.8rem;
}

.demo-account-action {
    white-space: nowrap;
}

.captcha-box {
    display: flex;
    align-items: end;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e5ece7;
    border-radius: 14px;
    background: #f8faf8;
}

.captcha-challenge {
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid #8eae99;
    border-radius: 8px;
    color: #103c2d;
    background: #e7f3eb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-align: center;
    user-select: none;
}

@media (max-width: 767.98px) {
    .public-home {
        background:
            radial-gradient(ellipse at 85% 26%, rgba(220, 239, 227, 0.9), transparent 22rem),
            linear-gradient(180deg, #0d4a3a 0, #0d4a3a 590px, #f7f9f7 590px, #f7f9f7 100%);
    }

    .public-nav,
    .public-hero {
        width: min(100% - 32px, 560px);
    }

    .public-nav {
        height: 72px;
    }

    .public-hero {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
    }

    .hero-copy {
        padding: 43px 0 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 12vw, 3.7rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-art {
        min-height: 330px;
        margin-top: 5px;
    }

    .orbit-one {
        width: 270px;
        height: 270px;
    }

    .orbit-two {
        width: 330px;
        height: 330px;
    }

    .hero-document {
        transform: scale(0.86) rotate(5deg);
    }

    .hero-note {
        right: 0;
        bottom: 16px;
        transform: scale(0.9);
        transform-origin: right bottom;
    }

    .service-highlights {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 14px;
        padding: 23px;
    }

    .public-footer {
        padding-bottom: 94px;
    }

    .account-modal .modal-header {
        padding: 22px 22px 0;
    }

    .account-modal .modal-body {
        padding: 20px 22px 24px;
    }
}

@media (max-width: 420px) {
    .public-nav,
    .public-hero {
        width: calc(100% - 28px);
    }

    .captcha-box {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
}

.app-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 92% 0, rgba(220, 239, 227, 0.65), transparent 28rem),
        #f5f7f6;
    color: #1f2a37;
}

.app-navbar {
    min-height: 72px;
    background: linear-gradient(105deg, #0d4a3a, #187353);
    box-shadow: 0 8px 24px rgba(11, 57, 42, 0.16);
}

.app-navbar .container {
    max-width: 1440px;
}

.app-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-navbar .navbar-nav {
    gap: 4px;
}

.app-navbar .navbar-nav .nav-link,
.app-navbar .nav-item > .nav-link {
    padding: 9px 11px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 150ms ease, background-color 150ms ease;
}

.app-navbar .navbar-nav .nav-link:hover,
.app-navbar .nav-item > .nav-link:hover,
.app-navbar .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.app-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 231, 207, 0.3);
}

.app-navbar .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid #e6ece7;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(25, 56, 39, 0.14);
}

.app-navbar .dropdown-item {
    padding: 9px 11px;
    border-radius: 8px;
    color: #34443a;
    font-size: 0.9rem;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus,
.app-navbar .dropdown-item.active {
    color: #14583c;
    background: #edf6ef;
}

.app-navbar .badge {
    font-size: 0.68rem;
    vertical-align: 0.08em;
}

.app-main {
    max-width: 1440px;
    min-height: calc(100vh - 72px);
    padding: 30px 24px 56px;
}

.app-page-heading {
    margin: 0 0 26px;
    padding: 25px 30px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(115deg, #0d4a3a, #187353);
    box-shadow: 0 12px 28px rgba(11, 57, 42, 0.12);
}

.app-page-heading .dashboard-eyebrow {
    display: block;
    margin-bottom: 8px;
}

.app-page-heading h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-page-heading p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.app-page .card {
    overflow: hidden;
    border: 1px solid #e7ece8;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(25, 56, 39, 0.055);
}

.app-page .card-header {
    border-bottom: 1px solid #edf1ee;
    color: #26372d;
}

.app-page .card-body {
    color: #34443a;
}

.app-page .table {
    --bs-table-color: #34443a;
    --bs-table-hover-color: #1f2a37;
    --bs-table-hover-bg: #f3f8f4;
    margin-bottom: 0;
    vertical-align: middle;
}

.app-page .table thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom-color: #e4ebe6;
    color: #617067;
    background: #f7faf8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-page .table tbody td {
    padding-top: 13px;
    padding-bottom: 13px;
    border-color: #edf1ee;
}

.app-page .form-label,
.app-page .form-check-label {
    color: #34443a;
    font-size: 0.88rem;
    font-weight: 600;
}

.app-page .form-control,
.app-page .form-select {
    min-height: 42px;
    border-color: #dce5de;
    border-radius: 10px;
    color: #26372d;
    background-color: #fff;
}

.app-page textarea.form-control {
    min-height: auto;
}

.app-page .form-control::placeholder {
    color: #929d96;
}

.app-page .form-control:focus,
.app-page .form-select:focus,
.app-page .form-check-input:focus {
    border-color: #6ca987;
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 90, 0.14);
}

.app-page .form-check-input:checked {
    border-color: #1f8a5a;
    background-color: #1f8a5a;
}

.app-page .form-text {
    color: #758179;
}

.app-page .btn {
    border-radius: 9px;
    font-weight: 600;
}

.app-page .btn-primary {
    color: #fff;
    background-color: #1f8a5a;
    border-color: #1f8a5a;
}

.app-page .btn-primary:hover,
.app-page .btn-primary:focus {
    background-color: #17714b;
    border-color: #17714b;
}

.app-page .btn-outline-primary {
    color: #176744;
    border-color: #6ca987;
}

.app-page .btn-outline-primary:hover,
.app-page .btn-outline-primary:focus {
    color: #fff;
    background-color: #17714b;
    border-color: #17714b;
}

.app-page .btn-outline-success {
    color: #176744;
    border-color: #8db69a;
}

.app-page .list-group-item {
    padding-top: 13px;
    padding-bottom: 13px;
    border-color: #edf1ee;
    color: #34443a;
    background: #fff;
}

.app-page .alert {
    border: 1px solid transparent;
    border-radius: 12px;
}

.app-page .alert-success {
    color: #14583c;
    border-color: #cbe6d3;
    background: #edf8f0;
}

.app-page .alert-danger {
    color: #842d35;
    border-color: #f0c9cd;
    background: #fff1f2;
}

.app-page .alert-info {
    color: #28586a;
    border-color: #cce5ed;
    background: #eff9fc;
}

.app-page .empty-state {
    padding: 36px 18px;
    color: #68766e;
    text-align: center;
}

.app-page .empty-state > i {
    display: block;
    margin-bottom: 12px;
    color: #4c9b6d;
    font-size: 2.4rem;
}

.app-page .empty-state h3 {
    color: #26372d;
    font-size: 1.1rem;
    font-weight: 700;
}

.app-page .empty-state p {
    margin-bottom: 18px;
}

.app-page .service-details {
    padding: 15px 16px;
    border: 1px solid #dcebe0;
    border-radius: 12px;
    color: #46584d;
    background: #f5faf6;
}

.app-page .service-details p {
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 1199.98px) {
    .app-navbar .navbar-collapse {
        padding: 10px 0 16px;
    }

    .app-navbar .navbar-nav {
        gap: 2px;
    }

    .app-navbar .nav-item > .nav-link {
        display: inline-block;
    }

    .app-navbar .navbar-collapse > .nav-item,
    .app-navbar .navbar-collapse > .dropdown {
        margin-top: 4px;
    }
}

@media (max-width: 575.98px) {
    .app-main {
        padding: 20px 14px 40px;
    }

    .app-page-heading {
        margin-bottom: 20px;
        padding: 22px;
        border-radius: 16px;
    }

    .app-page .card-header.d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-welcome {
        min-height: 150px;
        padding: 24px;
    }

    .welcome-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 2rem;
    }
}

@media print {
    .app-page .app-navbar,
    .app-page .app-page-heading,
    .app-page .btn,
    .app-page .form-control,
    .app-page .form-select {
        display: none !important;
    }

    .app-page .app-main {
        max-width: none;
        padding: 0;
    }
}
