:root {
    --cw-client-ink: #0b1220;
    --cw-client-navy: #101827;
    --cw-client-yellow: #fcd116;
    --cw-client-blue: #348fe2;
}

.fi-simple-layout {
    position: relative;
    background:
        linear-gradient(120deg, rgba(11, 18, 32, .97), rgba(16, 24, 39, .9)),
        url("/site/brand/network-bg.svg") center / cover fixed;
}

.fi-simple-layout::before {
    content: "";
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cw-client-yellow) 0 50%, var(--cw-client-blue) 50% 75%, #ce1126 75%);
}

.fi-simple-main-ctn {
    position: relative;
    z-index: 2;
}

.fi-simple-main {
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 22px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
}

.fi-simple-header-heading {
    letter-spacing: -.035em;
}

.fi-sidebar,
.fi-topbar nav {
    background: var(--cw-client-ink);
}

.fi-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, .08);
    background: var(--cw-client-ink);
}

.fi-sidebar-nav {
    background:
        linear-gradient(rgba(11, 18, 32, .95), rgba(11, 18, 32, .95)),
        url("/site/brand/network-bg.svg") center / cover;
}

.fi-sidebar-item-label,
.fi-sidebar-item-icon,
.fi-topbar .fi-icon-btn {
    color: #d8e1ec;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button,
.fi-sidebar-item.fi-sidebar-item-active > .fi-sidebar-item-button,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    color: var(--cw-client-ink) !important;
    background: var(--cw-client-yellow) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-icon,
.dark .fi-sidebar-item.fi-active .fi-sidebar-item-label,
.dark .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: var(--cw-client-ink) !important;
}

.fi-main {
    background: #f6f7fb;
}

.dark .fi-main {
    background: #080d16;
}

.cw-license-token {
    margin-bottom: 18px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid #26364b;
    border-left: 4px solid var(--cw-client-yellow);
    border-radius: 15px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(11, 18, 32, .98), rgba(22, 36, 55, .96)),
        url("/site/brand/network-bg.svg") center / cover;
    box-shadow: 0 14px 34px rgba(11, 18, 32, .2);
}

.cw-license-token__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cw-license-token__value {
    min-width: 0;
}

.cw-license-token__value > span {
    display: block;
    color: var(--cw-client-yellow);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cw-license-token__value code {
    margin-top: 7px;
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 800;
    letter-spacing: .055em;
}

.cw-license-token__copy {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #0b1220 !important;
    background: var(--cw-client-yellow) !important;
    box-shadow: 0 8px 20px rgba(252, 209, 22, .2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.cw-license-token__copy:hover {
    background: #ffe357 !important;
}

.cw-license-token > p {
    margin: 14px 0 0;
    color: #9faec1;
    font-size: 12px;
}

.cw-license-token > p strong {
    color: #dce6f2;
}

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

.cw-license-stat {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e3e8ef;
    border-radius: 13px;
    background: #f8fafc;
}

.dark .cw-license-stat {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
}

.cw-license-stat > span,
.cw-license-usage__header > div > span,
.cw-license-usage__remaining > span {
    display: block;
    color: #7b8798;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cw-license-stat > p {
    margin: 6px 0 0;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.dark .cw-license-stat > p {
    color: #f7f9fc;
}

.cw-license-stat > p small {
    color: #7b8798;
    font-size: 11px;
    font-weight: 600;
}

.cw-license-status {
    color: #168455 !important;
}

.dark .cw-license-status {
    color: #55d89a !important;
}

.cw-license-usage {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #fff;
}

.dark .cw-license-usage {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(8, 13, 22, .5);
}

.cw-license-usage__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.cw-license-usage__header > div > p {
    margin: 5px 0 0;
    color: #111827;
    font-size: 23px;
    font-weight: 850;
}

.dark .cw-license-usage__header > div > p {
    color: #f7f9fc;
}

.cw-license-usage__header p small {
    color: #7b8798;
    font-size: 12px;
    font-weight: 600;
}

.cw-license-usage__remaining {
    text-align: right;
}

.cw-license-usage__remaining > p {
    margin: 5px 0 0;
    color: #2a72b5;
    font-weight: 850;
}

.dark .cw-license-usage__remaining > p {
    color: #60aef3;
}

.cw-license-usage__empty {
    font-size: 15px !important;
}

.cw-license-progress {
    height: 10px;
    margin-top: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf0;
}

.dark .cw-license-progress {
    background: rgba(255, 255, 255, .09);
}

.cw-license-progress > div {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cw-client-blue), #63b3f5);
}

.cw-license-progress > div.is-danger {
    background: #ce1126;
}

.cw-license-usage__caption,
.cw-license-footer > p {
    margin: 8px 0 0;
    color: #7b8798;
    font-size: 11px;
}

.cw-license-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cw-license-footer > p {
    margin: 0;
}

@media (max-width: 900px) {
    .cw-license-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cw-license-token__row,
    .cw-license-usage__header,
    .cw-license-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cw-license-token__copy {
        width: 100%;
    }

    .cw-license-stats {
        grid-template-columns: 1fr;
    }

    .cw-license-usage__remaining {
        text-align: left;
    }
}

/* AI usage */
.cw-ai-unavailable {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border: 1px solid #e4e9ef;
    border-radius: 18px;
    background: linear-gradient(120deg, #f8fafc, #f2f6fa);
}

.dark .cw-ai-unavailable {
    border-color: rgba(255, 255, 255, .08);
    background: linear-gradient(120deg, #171a1f, #121821);
}

.cw-ai-unavailable__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--cw-client-blue), #075895);
    box-shadow: 0 10px 24px rgba(0, 77, 139, .22);
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.cw-ai-unavailable span,
.cw-ai-overage__copy > span {
    color: var(--cw-client-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cw-ai-unavailable h3,
.cw-ai-overage__copy h3 {
    margin: 4px 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
}

.dark .cw-ai-unavailable h3,
.dark .cw-ai-overage__copy h3 {
    color: #f8fafc;
}

.cw-ai-unavailable p,
.cw-ai-overage__copy p {
    margin: 0;
    color: #687489;
    font-size: 13px;
    line-height: 1.6;
}

.cw-ai-unavailable > a,
.cw-ai-invoice > a {
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--cw-client-yellow);
    box-shadow: 0 7px 18px rgba(252, 209, 22, .18);
    color: #171717;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.cw-ai-overview {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #dfe8f0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 10%, rgba(252, 209, 22, .13), transparent 28%),
        linear-gradient(135deg, #f8fbfd, #edf5fb);
}

.dark .cw-ai-overview {
    border-color: rgba(82, 164, 224, .16);
    background:
        radial-gradient(circle at 85% 10%, rgba(252, 209, 22, .08), transparent 28%),
        linear-gradient(135deg, #101822, #0c121b);
}

.cw-ai-gauge {
    display: grid;
    width: 145px;
    height: 145px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--cw-client-yellow) 0 var(--usage), rgba(0, 77, 139, .13) var(--usage) 360deg);
    box-shadow: 0 18px 40px rgba(0, 77, 139, .14);
}

.dark .cw-ai-gauge {
    background: conic-gradient(var(--cw-client-yellow) 0 var(--usage), rgba(255, 255, 255, .08) var(--usage) 360deg);
}

.cw-ai-gauge > div {
    display: grid;
    width: 111px;
    height: 111px;
    place-content: center;
    border-radius: 50%;
    background: white;
    text-align: center;
}

.dark .cw-ai-gauge > div {
    background: #111923;
}

.cw-ai-gauge strong {
    color: #172033;
    font-size: 28px;
    line-height: 1;
}

.dark .cw-ai-gauge strong {
    color: white;
}

.cw-ai-gauge span {
    margin-top: 5px;
    color: #7a8697;
    font-size: 11px;
}

.cw-ai-summary > span {
    color: #69768a;
    font-size: 12px;
}

.cw-ai-summary h3 {
    margin: 6px 0 20px;
    color: #172033;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.dark .cw-ai-summary h3 {
    color: white;
}

.cw-ai-summary h3 small {
    color: #7a8697;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.cw-ai-summary__numbers {
    display: flex;
    gap: 40px;
}

.cw-ai-summary__numbers p {
    margin: 0;
}

.cw-ai-summary__numbers b,
.cw-ai-summary__numbers span {
    display: block;
}

.cw-ai-summary__numbers b {
    color: #172033;
    font-size: 17px;
}

.dark .cw-ai-summary__numbers b {
    color: #f8fafc;
}

.cw-ai-summary__numbers span {
    margin-top: 2px;
    color: #7a8697;
    font-size: 11px;
}

.cw-ai-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.cw-ai-metrics > div {
    position: relative;
    padding: 17px 18px;
    overflow: hidden;
    border: 1px solid #e4e9ef;
    border-radius: 15px;
    background: #fff;
}

.dark .cw-ai-metrics > div {
    border-color: rgba(255, 255, 255, .08);
    background: #17191d;
}

.cw-ai-metrics > div::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--cw-client-blue);
    content: "";
}

.cw-ai-metrics span,
.cw-ai-metrics small {
    display: block;
    color: #7a8697;
    font-size: 11px;
}

.cw-ai-metrics strong {
    display: block;
    margin: 5px 0 2px;
    color: #172033;
    font-size: 18px;
}

.dark .cw-ai-metrics strong {
    color: #f8fafc;
}

.cw-ai-overage {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    align-items: end;
    gap: 20px;
    margin-top: 14px;
    padding: 20px 22px;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: #fafbfc;
}

.dark .cw-ai-overage {
    border-color: rgba(255, 255, 255, .08);
    background: #12161c;
}

.cw-ai-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dark .cw-ai-toggle {
    color: #e7ebf0;
}

.cw-ai-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    accent-color: var(--cw-client-blue);
}

.cw-ai-limit > span {
    display: block;
    margin-bottom: 6px;
    color: #687489;
    font-size: 11px;
    font-weight: 700;
}

.cw-ai-limit > div {
    display: flex;
    align-items: center;
    height: 43px;
    overflow: hidden;
    border: 1px solid #d6dce4;
    border-radius: 10px;
    background: white;
}

.dark .cw-ai-limit > div {
    border-color: rgba(255, 255, 255, .12);
    background: #0d1117;
}

.cw-ai-limit b {
    padding-left: 12px;
    color: #7a8697;
    font-size: 11px;
}

.cw-ai-limit input {
    width: 74px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #172033;
    font-weight: 800;
    outline: 0;
}

.dark .cw-ai-limit input {
    color: white;
}

.cw-ai-invoice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 17px 20px;
    border: 1px solid rgba(206, 17, 38, .22);
    border-radius: 14px;
    background: rgba(206, 17, 38, .05);
}

.cw-ai-invoice > div > * {
    display: block;
}

.cw-ai-invoice span {
    margin-top: 3px;
    color: #ce1126;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .cw-ai-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cw-ai-overage {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .cw-ai-unavailable,
    .cw-ai-overview {
        grid-template-columns: 1fr;
    }

    .cw-ai-unavailable {
        justify-items: start;
    }

    .cw-ai-overview {
        justify-items: center;
        text-align: center;
    }

    .cw-ai-summary__numbers {
        justify-content: center;
    }

    .cw-ai-overage {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cw-ai-invoice {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cw-ai-metrics {
        grid-template-columns: 1fr;
    }
}
