.dmware-services-index {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 64px;
}

.dmware-services-index .dmware-services-hero {
    margin-bottom: 20px !important;
}

.dmware-services-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dmware-services-stat {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    padding: 19px 22px;
    border: 1px solid var(--dmware-border);
    border-radius: 17px;
    background: var(--dmware-card);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .12);
}

.dmware-services-stat::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #788196;
}

.dmware-services-stat-active::after {
    background: #6ed3a7;
}

.dmware-services-stat-attention::after {
    background: #f0b96b;
}

.dmware-services-stat span {
    display: block;
    color: var(--dmware-muted);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .02em;
}

.dmware-services-stat strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.1;
}

.dmware-services-notice {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 1px solid rgba(240, 185, 107, .32);
    border-radius: 15px;
    background: rgba(240, 185, 107, .08);
    color: #e9edf6;
}

.dmware-services-notice > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(240, 185, 107, .18);
    color: #ffd18e;
    font-weight: 800;
}

.dmware-services-notice p {
    margin: 0;
    color: var(--dmware-muted);
    font-size: 14px;
    line-height: 1.55;
}

.dmware-services-notice strong {
    color: #fff;
}

.dmware-services-notice-success {
    border-color: rgba(110, 211, 167, .34);
    background: rgba(110, 211, 167, .09);
}

.dmware-services-notice-success > span {
    background: rgba(110, 211, 167, .18);
    color: #a8ebce;
}

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

.dmware-service-index-card {
    display: flex;
    min-width: 0;
    min-height: 340px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dmware-border);
    border-radius: 20px;
    background: var(--dmware-card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .15);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dmware-service-index-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .2);
}

.dmware-service-index-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 0;
}

.dmware-service-type {
    color: #dfe5f2;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dmware-service-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(110, 211, 167, .27);
    border-radius: 999px;
    background: rgba(110, 211, 167, .1);
    color: #a8ebce;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dmware-service-state::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ed3a7;
}

.dmware-service-status-attention .dmware-service-state {
    border-color: rgba(240, 185, 107, .32);
    background: rgba(240, 185, 107, .1);
    color: #ffd18e;
}

.dmware-service-status-attention .dmware-service-state::before {
    background: #f0b96b;
}

.dmware-service-status-cancelled .dmware-service-state,
.dmware-service-status-expired .dmware-service-state {
    border-color: rgba(234, 114, 125, .3);
    background: rgba(234, 114, 125, .1);
    color: #ffb9c0;
}

.dmware-service-status-cancelled .dmware-service-state::before,
.dmware-service-status-expired .dmware-service-state::before {
    background: #ea727d;
}

.dmware-service-status-pending-cancel .dmware-service-state,
.dmware-service-status-pending .dmware-service-state {
    border-color: rgba(90, 169, 207, .35);
    background: rgba(90, 169, 207, .1);
    color: #b9e5fa;
}

.dmware-service-status-pending-cancel .dmware-service-state::before,
.dmware-service-status-pending .dmware-service-state::before {
    background: #5aa9cf;
}

.dmware-service-index-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 22px 22px;
}

.dmware-service-index-card h2 {
    overflow-wrap: anywhere;
    margin: 0 !important;
    color: #fff;
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 720;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.dmware-service-index-card h2 a {
    color: inherit;
    text-decoration: none;
}

.dmware-service-index-card h2 a:hover {
    color: #f29bc3;
}

.dmware-service-plan {
    min-height: 24px;
    margin: 8px 0 22px;
    color: var(--dmware-muted);
    font-size: 14px;
    line-height: 1.5;
}

.dmware-service-index-card h2 + .dmware-service-metrics {
    margin-top: 18px;
}

.dmware-service-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: auto 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.dmware-service-metrics > div {
    min-width: 0;
    padding: 14px 15px;
    background: var(--dmware-card-soft);
}

.dmware-service-metrics dt {
    margin-bottom: 4px;
    color: #909aaf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dmware-service-metrics dd {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.dmware-service-index-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 22px;
    border-top: 1px solid var(--dmware-border);
    background: rgba(255, 255, 255, .018);
}

.dmware-service-index-card-footer > span {
    color: #8993a8;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.dmware-service-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.dmware-services-index .dmware-services-button,
.dmware-services-index a.dmware-services-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.dmware-services-index .dmware-services-button:hover {
    transform: translateY(-1px);
}

.dmware-services-button-primary {
    background: var(--dmware-accent) !important;
    color: #fff !important;
}

.dmware-services-button-primary:hover {
    background: #e25999 !important;
}

.dmware-services-button-secondary {
    border-color: rgba(255, 255, 255, .15) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #f7f8fb !important;
}

.dmware-services-button-secondary:hover {
    border-color: rgba(255, 255, 255, .25) !important;
    background: rgba(255, 255, 255, .1) !important;
}

.dmware-services-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.dmware-services-support article,
.dmware-services-empty {
    padding: 24px;
    border: 1px solid var(--dmware-border);
    border-radius: 20px;
    background: var(--dmware-card);
}

.dmware-services-support .dmware-service-eyebrow {
    margin-bottom: 8px;
}

.dmware-services-support h2,
.dmware-services-empty h2 {
    margin: 0 0 8px !important;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.dmware-services-support p,
.dmware-services-empty p {
    margin: 0 0 15px;
    color: var(--dmware-muted);
    font-size: 14px;
    line-height: 1.55;
}

.dmware-services-support a:not(.dmware-services-button) {
    color: #f29bc3;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dmware-services-support article > div {
    display: flex;
    gap: 18px;
}

.dmware-services-empty {
    text-align: center;
}

.dmware-services-empty .dmware-services-button {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .dmware-services-grid {
        grid-template-columns: 1fr;
    }

    .dmware-service-index-card {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .dmware-services-index {
        width: min(100% - 24px, 1180px);
        margin-bottom: 40px;
    }

    .dmware-services-index .dmware-service-hero {
        padding: 24px !important;
    }

    .dmware-services-summary {
        gap: 8px;
    }

    .dmware-services-stat {
        min-height: 78px;
        padding: 15px 13px;
    }

    .dmware-services-stat span {
        font-size: 11px;
    }

    .dmware-services-stat strong {
        font-size: 24px;
    }

    .dmware-service-index-card-header,
    .dmware-service-index-card-body,
    .dmware-service-index-card-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .dmware-service-index-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dmware-service-actions {
        width: 100%;
    }

    .dmware-service-actions .dmware-services-button {
        flex: 1;
    }

    .dmware-services-support {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dmware-services-notice {
        align-items: flex-start;
    }

    .dmware-service-index-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dmware-service-metrics {
        grid-template-columns: 1fr;
    }

    .dmware-service-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}
