.services-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 1.2rem) 1.25rem 3rem;
}

.services-panel {
    border: 1px solid rgba(57, 255, 106, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 40px rgba(10, 20, 12, 0.2), inset 0 0 42px rgba(57, 255, 106, 0.04);
    padding: 1.15rem;
}

.services-head h1 {
    font-size: 1.03rem;
    color: #f2fff8;
}

.services-head p {
    color: rgba(224, 236, 229, 0.9);
    font-size: 0.79rem;
    margin-top: 0.34rem;
    max-width: 72ch;
}

.services-hero-icons {
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    color: rgba(196, 218, 204, 0.62);
}

.services-alert {
    margin-top: 0.85rem;
    border: 1px solid rgba(255, 120, 120, 0.42);
    background: rgba(120, 12, 12, 0.3);
    color: #ffd7d7;
    border-radius: 6px;
    padding: 0.65rem 0.78rem;
    font-size: 0.78rem;
}

.services-primary-cta {
    margin-top: 0.95rem;
    border: 1px solid rgba(57, 255, 106, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.services-primary-cta h2 {
    color: #f5fff8;
    font-size: 0.9rem;
}

.services-primary-cta p {
    margin-top: 0.2rem;
    color: rgba(218, 233, 223, 0.9);
    font-size: 0.74rem;
}

.service-card-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
}

.service-card,
.services-subpanel,
.portal-card,
.req-table tr {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(57, 255, 106, 0.16);
    border-radius: 8px;
}

.service-card {
    padding: 1rem 1rem 0.95rem;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
}

.service-card h2 {
    color: #f3fff8;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0;
}

.service-card p {
    color: rgba(219, 231, 224, 0.9);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0.55rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svc-card-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.svc-ico {
    width: 20px;
    height: 20px;
    color: var(--green);
    opacity: 0.88;
    filter: drop-shadow(0 0 10px rgba(57, 255, 106, 0.15));
    flex: 0 0 auto;
}

.svc-watermark {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 46px;
    height: 46px;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(-8deg);
    color: var(--green);
}

.services-sections {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.8rem;
}

.services-subpanel {
    padding: 0.92rem 0.98rem;
}

.services-subpanel h2 {
    color: var(--green);
    font-size: 0.84rem;
    margin-bottom: 0.52rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.how-step {
    border: 1px solid rgba(57, 255, 106, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.66rem;
}

.how-step-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.28rem;
}

.how-step-ico {
    width: 22px;
    height: 22px;
    color: var(--green);
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(57, 255, 106, 0.14));
    flex: 0 0 auto;
}

.how-step h3,
.mini-card h3,
.how-concise h3 {
    color: #effaf4;
    font-size: 0.78rem;
    margin: 0;
}

.how-step p,
.mini-card p,
.panel-note,
.faq-body {
    color: rgba(217, 231, 222, 0.9);
    font-size: 0.74rem;
    margin-top: 0.28rem;
}

.how-concise {
    margin-top: 0.78rem;
    border: 1px solid rgba(57, 255, 106, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.72rem;
}

.check-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.26rem;
    color: rgba(223, 236, 228, 0.92);
    font-size: 0.75rem;
}

.check-list.compact {
    gap: 0.2rem;
}

.how-meta-grid,
.remote-local-grid {
    margin-top: 0.62rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.panel-note {
    margin-top: 0.48rem;
    line-height: 1.55;
}

.panel-head {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.panel-head-ico {
    width: 17px;
    height: 17px;
    color: var(--green);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(57, 255, 106, 0.14));
    flex: 0 0 auto;
}

.panel-head-sub .panel-head-ico {
    width: 16px;
    height: 16px;
    opacity: 0.82;
}

.service-card,
.how-step,
.mini-card,
.how-concise,
.services-subpanel,
.services-primary-cta,
.services-cta-strip {
    background-image:
        radial-gradient(circle at 20% 0%, rgba(57, 255, 106, 0.1), transparent 45%),
        radial-gradient(circle at 100% 30%, rgba(57, 255, 106, 0.06), transparent 40%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03));
    background-blend-mode: screen, screen, normal;
}

.mini-card {
    border: 1px solid rgba(57, 255, 106, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.62rem;
}

.faq-list {
    display: grid;
    gap: 0.48rem;
}

.faq-item {
    border: 1px solid rgba(57, 255, 106, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    color: #f3fff8;
    text-align: left;
    font-family: inherit;
    font-size: 0.76rem;
    padding: 0.74rem 0.82rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    line-height: 1.35;
    cursor: pointer;
}

.faq-mark {
    color: var(--green);
    font-size: 0.9rem;
    line-height: 1;
}

.faq-body {
    padding: 0.74rem 0.82rem 0.92rem;
    border-top: 1px solid rgba(57, 255, 106, 0.12);
    line-height: 1.6;
    margin-top: 0;
}

.services-cta-strip {
    border: 1px solid rgba(57, 255, 106, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 16px rgba(57, 255, 106, 0.08);
    padding: 0.84rem 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.services-cta-strip h2 {
    color: #f4fff8;
    font-size: 0.9rem;
}

.services-cta-strip p {
    color: rgba(219, 233, 223, 0.9);
    font-size: 0.74rem;
    margin-top: 0.2rem;
}

.service-form {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.service-form .full {
    grid-column: 1 / -1;
}

.service-form label {
    display: block;
    color: rgba(218, 230, 222, 0.9);
    font-size: 0.73rem;
    margin-bottom: 0.24rem;
}

.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(57, 255, 106, 0.18);
    border-radius: 5px;
    color: #f2fff8;
    padding: 0.52rem 0.65rem;
    font-family: inherit;
    font-size: 0.77rem;
    transition: box-shadow 0.16s, border-color 0.16s, background-color 0.16s;
}

.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: none;
    border-color: rgba(57, 255, 106, 0.38);
    box-shadow: 0 0 0 2px rgba(57, 255, 106, 0.12);
    background: rgba(255, 255, 255, 0.14);
}

.service-form textarea {
    min-height: 160px;
}

.form-hint {
    margin-top: 0.34rem;
    color: rgba(211, 224, 215, 0.86);
    font-size: 0.71rem;
}

.service-btn,
.service-link-btn {
    border: 1px solid rgba(57, 255, 106, 0.28);
    background: rgba(57, 255, 106, 0.11);
    color: var(--green);
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    font-family: inherit;
    font-size: 0.74rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.16s, opacity 0.16s, border-color 0.16s;
}

.service-btn:hover,
.service-link-btn:hover {
    opacity: 0.95;
    box-shadow: 0 0 14px rgba(57, 255, 106, 0.12);
}

.service-link-btn-primary {
    border-color: rgba(57, 255, 106, 0.5);
    background: rgba(57, 255, 106, 0.2);
    color: #d8ffe7;
    box-shadow: 0 0 18px rgba(57, 255, 106, 0.2);
    animation: request-cta-pulse 2.4s ease-in-out infinite;
}

.service-link-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(57, 255, 106, 0.24);
    color: #d8f7e2;
}

@keyframes request-cta-pulse {
    0%,
    100% {
        box-shadow: 0 0 14px rgba(57, 255, 106, 0.14);
    }
    50% {
        box-shadow: 0 0 24px rgba(57, 255, 106, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-link-btn-primary {
        animation: none;
    }
}

.portal-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.8rem;
}

.portal-card {
    padding: 0.9rem;
}

.portal-card h2 {
    font-size: 0.82rem;
    color: var(--green);
    margin-bottom: 0.45rem;
}

.portal-row {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(57, 255, 106, 0.14);
    padding: 0.34rem 0;
    font-size: 0.74rem;
}

.portal-row .k {
    color: rgba(207, 221, 210, 0.86);
}

.portal-row .v {
    color: #effcf4;
    text-align: right;
}

.portal-note {
    border: 1px solid rgba(57, 255, 106, 0.14);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.55rem;
    font-size: 0.74rem;
    margin-top: 0.45rem;
    color: rgba(219, 232, 223, 0.9);
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    font-size: 0.74rem;
}

.req-table th,
.req-table td {
    text-align: left;
    padding: 0.42rem;
    border-bottom: 1px solid rgba(57, 255, 106, 0.14);
    vertical-align: top;
}

.req-table th {
    color: rgba(209, 223, 214, 0.88);
}

.attachment-table .service-link-btn {
    padding: 0.28rem 0.6rem;
}

.req-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.req-actions form {
    display: inline-flex;
}

.req-status-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.req-tab {
    border: 1px solid rgba(57, 255, 106, 0.14);
    border-radius: 4px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    color: rgba(222, 233, 227, 0.9);
    text-decoration: none;
}

.req-tab.active {
    border-color: rgba(57, 255, 106, 0.36);
    color: var(--green);
    background: rgba(57, 255, 106, 0.08);
}

.admin-two-col {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

body.light-mode .services-panel {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(20, 42, 22, 0.16);
    box-shadow: 0 16px 36px rgba(13, 30, 18, 0.08), inset 0 0 24px rgba(40, 120, 62, 0.05);
}

body.light-mode .service-card,
body.light-mode .services-subpanel,
body.light-mode .portal-card,
body.light-mode .req-table tr,
body.light-mode .faq-item,
body.light-mode .mini-card,
body.light-mode .how-step,
body.light-mode .services-cta-strip,
body.light-mode .services-primary-cta,
body.light-mode .portal-note,
body.light-mode .how-concise {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(24, 58, 28, 0.15);
}

body.light-mode .services-head h1,
body.light-mode .service-card h2,
body.light-mode .how-step h3,
body.light-mode .mini-card h3,
body.light-mode .faq-toggle,
body.light-mode .services-cta-strip h2,
body.light-mode .services-primary-cta h2,
body.light-mode .portal-row .v,
body.light-mode .how-concise h3 {
    color: #1f2b23;
}

body.light-mode .services-head p,
body.light-mode .service-card p,
body.light-mode .how-step p,
body.light-mode .mini-card p,
body.light-mode .panel-note,
body.light-mode .faq-body,
body.light-mode .check-list,
body.light-mode .form-hint,
body.light-mode .portal-note,
body.light-mode .portal-row .k,
body.light-mode .service-form label,
body.light-mode .req-table th,
body.light-mode .req-tab,
body.light-mode .services-primary-cta p {
    color: #385040;
}

body.light-mode .service-form input,
body.light-mode .service-form select,
body.light-mode .service-form textarea {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(22, 64, 28, 0.2);
    color: #1e2320;
}

body.light-mode .service-form input:focus,
body.light-mode .service-form select:focus,
body.light-mode .service-form textarea:focus {
    border-color: rgba(26, 136, 51, 0.46);
    box-shadow: 0 0 0 2px rgba(26, 136, 51, 0.16);
    background: #fff;
}

body.light-mode .service-btn,
body.light-mode .service-link-btn {
    background: rgba(26, 136, 51, 0.11);
    border-color: rgba(26, 136, 51, 0.4);
    color: #166f2e;
}

body.light-mode .service-link-btn-primary {
    background: rgba(26, 136, 51, 0.18);
    border-color: rgba(26, 136, 51, 0.48);
    color: #125f27;
}

body.light-mode .service-link-btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(26, 136, 51, 0.3);
}

body.light-mode .service-card,
body.light-mode .how-step,
body.light-mode .mini-card,
body.light-mode .how-concise,
body.light-mode .services-subpanel,
body.light-mode .services-primary-cta,
body.light-mode .services-cta-strip {
    background-image:
        radial-gradient(circle at 20% 0%, rgba(0, 140, 80, 0.1), transparent 45%),
        radial-gradient(circle at 100% 30%, rgba(0, 140, 80, 0.06), transparent 40%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    background-blend-mode: multiply, multiply, normal;
}

body.light-mode .svc-watermark {
    opacity: 0.06;
}

body.light-mode .svc-ico,
body.light-mode .how-step-ico,
body.light-mode .panel-head-ico {
    filter: drop-shadow(0 0 8px rgba(0, 140, 80, 0.1));
}

body.light-mode .hero-icon {
    color: rgba(30, 82, 42, 0.5);
}

body.light-mode .services-alert {
    background: rgba(255, 80, 80, 0.11);
    border-color: rgba(190, 34, 34, 0.32);
    color: #7f1e1e;
}

@media (max-width: 980px) {
    .how-grid,
    .how-meta-grid,
    .remote-local-grid,
    .admin-two-col,
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .req-table thead {
        display: none;
    }

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

    .req-table tr {
        margin-bottom: 0.8rem;
        padding: 0.55rem;
    }

    .req-table td {
        border: 0;
        padding: 0.2rem 0;
    }
}

@media (max-width: 640px) {
    .service-card-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .service-card {
        max-width: 100%;
    }
}

@media (max-width: 820px) {
    .services-shell {
        padding: calc(var(--nav-h) + 0.9rem) 0.8rem 1.4rem;
    }

    .services-primary-cta,
    .services-cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-form {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .service-btn,
    .service-link-btn {
        min-height: 44px;
    }

    .service-link-btn-primary,
    .service-link-btn-secondary {
        width: 100%;
    }

    .svc-watermark {
        width: 38px;
        height: 38px;
        right: 10px;
        top: 10px;
    }
}
