* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #071326;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.admin-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 14%, rgba(23, 105, 255, 0.22), transparent 32%),
        radial-gradient(circle at 84% 20%, rgba(17, 208, 200, 0.18), transparent 30%),
        linear-gradient(135deg, #061a31 0%, #071326 55%, #f3f6fb 55%, #f3f6fb 100%);
}

.admin-login-page {
    width: min(560px, calc(100% - 28px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 28px 0;
}

.admin-login-card {
    width: 100%;
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(7, 19, 38, 0.25);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-login-brand > span,
.license-brand > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #39a7ff, #11d0c8);
    color: #ffffff;
    font-weight: 900;
}

.admin-login-brand strong {
    display: block;
    color: #071326;
    font-size: 20px;
    font-weight: 900;
}

.admin-login-brand small {
    display: block;
    margin-top: 4px;
    color: #52627a;
}

.admin-login-card h1 {
    margin: 10px 0 0;
    color: #071326;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-login-card p {
    margin: 0;
    color: #52627a;
    line-height: 1.5;
}

.admin-login-form {
    display: grid;
    gap: 12px;
}

.admin-login-form label {
    display: grid;
    gap: 7px;
}

.admin-login-form label span {
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.admin-login-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    outline: none;
}

.admin-login-form input:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.10);
}

.admin-login-note {
    padding: 13px;
    border: 1px solid #e8eef6;
    border-radius: 15px;
    background: #f8fbff;
    color: #52627a;
    font-size: 13px;
    line-height: 1.5;
}

.admin-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    text-align: center;
}

.admin-btn-primary {
    background: #1769ff;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 105, 255, 0.20);
}

.admin-btn-light {
    border: 1px solid #dce5ef;
    background: #ffffff;
    color: #071326;
}

.admin-alert {
    padding: 13px;
    border-radius: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.admin-alert-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.admin-alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.license-admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.license-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #061a31 0%, #071326 55%, #061225 100%);
    color: #ffffff;
}

.license-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.license-brand strong {
    font-size: 18px;
    font-weight: 900;
}

.license-nav {
    display: grid;
    gap: 7px;
}

.license-nav a,
.license-logout {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 13px;
    color: #dbe8f8;
    font-weight: 800;
}

.license-nav a:hover,
.license-nav a.active {
    background: #1769ff;
    color: #ffffff;
}

.license-logout {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.06);
}

.license-main {
    min-width: 0;
    padding: 24px;
}

.license-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.license-topbar span {
    color: #52627a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.license-topbar h1 {
    margin: 4px 0 0;
    color: #071326;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-kpi-grid article,
.admin-card {
    border: 1px solid #e1e8f2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.admin-kpi-grid article {
    padding: 18px;
}

.admin-kpi-grid span,
.admin-kpi-grid small {
    display: block;
    color: #52627a;
}

.admin-kpi-grid span {
    font-size: 13px;
    font-weight: 900;
}

.admin-kpi-grid strong {
    display: block;
    margin: 7px 0;
    color: #071326;
    font-size: 34px;
    line-height: 1;
}

.admin-card {
    padding: 20px;
}

.admin-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-card-head h2 {
    margin: 0;
    color: #071326;
    font-size: 24px;
}

.admin-card-head p {
    margin: 6px 0 0;
    color: #52627a;
}

.admin-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #52627a;
    background: #ffffff;
}

.admin-table {
    display: grid;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.6fr 0.8fr;
    gap: 12px;
    align-items: center;
}

.admin-table-head {
    padding: 10px 12px;
    border-radius: 14px 14px 0 0;
    background: #f8fbff;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.admin-table-row {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
}

.admin-table-row strong {
    display: block;
    color: #071326;
}

.admin-table-row small {
    display: block;
    margin-top: 3px;
    color: #52627a;
}

.admin-table-row em {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1769ff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.order-admin-list {
    display: grid;
    gap: 13px;
}

.order-admin-card {
    padding: 15px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: #f8fbff;
}

.order-admin-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.order-admin-head h3 {
    margin: 0;
    color: #071326;
    font-size: 18px;
}

.order-admin-head p {
    margin: 5px 0 0;
    color: #52627a;
}

.order-admin-head > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1769ff;
    font-size: 12px;
    font-weight: 900;
}

.order-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.order-admin-grid div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.order-admin-grid span {
    display: block;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.order-admin-grid strong {
    display: block;
    margin-top: 5px;
    color: #071326;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.order-admin-note {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.order-admin-note strong {
    display: block;
    color: #071326;
}

.order-admin-note p {
    margin: 7px 0 0;
    color: #52627a;
    line-height: 1.5;
}

.order-admin-actions {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(180px, 0.3fr);
    gap: 10px;
}

.order-admin-actions select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    background: #ffffff;
}

/* =========================================================
   Orders - payments
   ========================================================= */

.order-payment-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #fed7aa;
    border-radius: 15px;
    background: #fff7ed;
}

.order-payment-box > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 18px;
    font-weight: 900;
}

.order-payment-box strong {
    display: block;
    color: #9a3412;
    font-size: 14px;
    font-weight: 900;
}

.order-payment-box p {
    margin: 6px 0 0;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.5;
}

.order-payment-box b {
    color: #071326;
}

.order-payment-box.is-paid {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.order-payment-box.is-paid > span {
    background: #dcfce7;
    color: #166534;
}

.order-payment-box.is-paid strong,
.order-payment-box.is-paid p {
    color: #166534;
}

.order-payment-box.is-missing {
    border-color: #e2e8f0;
    background: #ffffff;
}

.order-payment-box.is-missing > span {
    background: #eaf3ff;
    color: #1769ff;
}

.order-payment-box.is-missing strong {
    color: #071326;
}

.order-payment-box.is-missing p {
    color: #52627a;
}

/* Delete actions */
.order-admin-delete-form,
.license-customer-actions form {
    margin: 0;
}

.license-customer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    .license-customer-actions {
        justify-content: stretch;
    }

    .license-customer-actions .admin-btn,
    .license-customer-actions form,
    .order-admin-delete-form .admin-btn {
        width: 100%;
    }
}

@media (max-width: 1050px) {
    .license-admin-layout {
        grid-template-columns: 1fr;
    }

    .license-sidebar {
        position: static;
    }

    .license-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-kpi-grid,
    .order-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .license-main {
        padding: 14px;
    }

    .license-topbar,
    .admin-card-head,
    .order-admin-head {
        flex-direction: column;
    }

    .license-nav,
    .admin-kpi-grid,
    .order-admin-grid,
    .order-admin-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Orders - automatisch licentie aanmaken
   ========================================================= */

.order-admin-actions-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 0.5fr) minmax(260px, 0.5fr);
    gap: 10px;
    align-items: center;
}

.order-admin-approve-form {
    margin: 0;
}

.order-admin-completed {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.order-license-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    background: #ffffff;
}

.order-license-box > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    font-size: 18px;
    font-weight: 900;
}

.order-license-box strong {
    display: block;
    color: #166534;
    font-size: 14px;
    font-weight: 900;
}

.order-license-box p {
    margin: 6px 0 0;
    color: #14532d;
    font-size: 13px;
    line-height: 1.5;
}

.order-license-box b {
    color: #071326;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .order-admin-actions-wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Customers + Licenses admin
   ========================================================= */

.license-customer-list,
.license-admin-list {
    display: grid;
    gap: 13px;
}

.license-customer-card,
.license-admin-card {
    padding: 15px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: #f8fbff;
}

.license-customer-head,
.license-admin-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.license-customer-head h3,
.license-admin-head h3 {
    margin: 0;
    color: #071326;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.license-customer-head p,
.license-admin-head p {
    margin: 5px 0 0;
    color: #52627a;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.license-customer-head > span,
.license-admin-head > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.license-customer-head > span.is-active,
.license-admin-head > span.is-active {
    background: #dcfce7;
    color: #166534;
}

.license-customer-head > span.is-inactive,
.license-admin-head > span.is-inactive {
    background: #f1f5f9;
    color: #475569;
}

.license-admin-head > span.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.license-customer-grid,
.license-admin-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.license-customer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-customer-grid div,
.license-admin-grid div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.license-customer-grid span,
.license-admin-grid span {
    display: block;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.license-customer-grid strong,
.license-admin-grid strong {
    display: block;
    margin-top: 5px;
    color: #071326;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.license-customer-note {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.license-customer-note strong {
    color: #071326;
}

.license-customer-note p {
    margin: 7px 0 0;
    color: #52627a;
    line-height: 1.5;
}

.license-customer-actions {
    display: flex;
    justify-content: flex-end;
}

.license-edit-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.22fr) minmax(160px, 0.22fr) minmax(120px, 0.18fr) minmax(0, 1fr) minmax(130px, 0.2fr);
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 15px;
    background: #ffffff;
}

.license-edit-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.license-edit-form label span {
    color: #071326;
    font-size: 12px;
    font-weight: 900;
}

.license-edit-form input,
.license-edit-form select,
.license-edit-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #ffffff;
    color: #071326;
    outline: none;
    font-size: 13px;
}

.license-edit-form textarea {
    min-height: 42px;
    padding-top: 10px;
    resize: vertical;
}

.license-edit-form input:focus,
.license-edit-form select:focus,
.license-edit-form textarea:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.10);
}

.license-edit-actions {
    display: flex;
}

.license-quick-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.license-quick-actions form {
    margin: 0;
}

.admin-btn-danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.16);
}

@media (max-width: 1180px) {
    .license-customer-grid,
    .license-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-edit-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-edit-wide,
    .license-edit-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .license-customer-head,
    .license-admin-head {
        flex-direction: column;
    }

    .license-customer-grid,
    .license-admin-grid,
    .license-edit-form {
        grid-template-columns: 1fr;
    }

    .license-customer-actions,
    .license-quick-actions,
    .license-edit-actions {
        justify-content: stretch;
    }

    .license-customer-actions .admin-btn,
    .license-quick-actions .admin-btn,
    .license-edit-actions .admin-btn,
    .license-quick-actions form {
        width: 100%;
    }
}

/* =========================================================
   Plans admin
   ========================================================= */

.plan-create-card {
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
}

.plan-create-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 0;
    background: #ffffff;
    color: #071326;
    text-align: left;
}

.plan-create-toggle::after {
    content: "⌄";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #ffffff;
    color: #1769ff;
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.18s ease, background 0.18s ease;
}

.plan-create-card.is-open .plan-create-toggle::after {
    transform: rotate(180deg);
    background: #eaf3ff;
}

.plan-create-toggle > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf3ff;
    color: #1769ff;
    font-size: 22px;
    font-weight: 900;
}

.plan-create-toggle strong {
    display: block;
    color: #071326;
    font-size: 16px;
    font-weight: 900;
}

.plan-create-toggle small {
    display: block;
    margin-top: 4px;
    color: #52627a;
    font-size: 13px;
    line-height: 1.4;
}

.plan-create-body {
    padding: 0 16px 16px;
    border-top: 1px solid #edf2f7;
}

.plan-create-body[hidden] {
    display: none;
}

.plan-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
}

.plan-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.plan-form label span {
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.plan-form input[type="text"],
.plan-form input[type="number"],
.plan-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    background: #ffffff;
    color: #071326;
    outline: none;
    font-size: 13px;
}

.plan-form textarea {
    min-height: 100px;
    padding-top: 11px;
    resize: vertical;
    line-height: 1.5;
}

.plan-form input:focus,
.plan-form textarea:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.10);
}

.plan-form-wide,
.plan-form-actions {
    grid-column: 1 / -1;
}

.plan-check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    background: #f8fbff;
}

.plan-check-row input {
    width: 18px;
    height: 18px;
    accent-color: #1769ff;
}

.plan-check-row span {
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.plan-form-actions {
    display: flex;
    justify-content: flex-end;
}

.plan-admin-list {
    display: grid;
    gap: 13px;
}

.plan-admin-card {
    padding: 15px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: #f8fbff;
}

.plan-admin-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.plan-admin-head h3 {
    margin: 0;
    color: #071326;
    font-size: 19px;
    overflow-wrap: anywhere;
}

.plan-admin-head p {
    margin: 5px 0 0;
    color: #52627a;
    line-height: 1.45;
}

.plan-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.plan-badges span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.plan-badges .is-active {
    background: #dcfce7;
    color: #166534;
}

.plan-badges .is-inactive {
    background: #f1f5f9;
    color: #475569;
}

.plan-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.plan-admin-grid div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.plan-admin-grid span {
    display: block;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.plan-admin-grid strong {
    display: block;
    margin-top: 5px;
    color: #071326;
    font-size: 13px;
}

.plan-edit-details {
    overflow: hidden;
    border: 1px solid #edf2f7;
    border-radius: 15px;
    background: #ffffff;
}

.plan-edit-details summary {
    padding: 13px;
    color: #1769ff;
    font-weight: 900;
    cursor: pointer;
}

.plan-edit-form {
    padding: 0 13px 13px;
}

.plan-delete-form {
    display: flex;
    justify-content: flex-end;
    padding: 0 13px 13px;
    margin: 0;
}

@media (max-width: 1050px) {
    .plan-form,
    .plan-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .plan-create-toggle,
    .plan-admin-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .plan-admin-head {
        flex-direction: column;
    }

    .plan-form,
    .plan-admin-grid {
        grid-template-columns: 1fr;
    }

    .plan-form-actions,
    .plan-delete-form {
        justify-content: stretch;
    }

    .plan-form-actions .admin-btn,
    .plan-delete-form .admin-btn {
        width: 100%;
    }
}

/* =========================================================
   License checks admin
   ========================================================= */

.license-check-list {
    display: grid;
    gap: 13px;
}

.license-check-card {
    padding: 15px;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    background: #f8fbff;
}

.license-check-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.license-check-head h3 {
    margin: 0;
    color: #071326;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.license-check-head p {
    margin: 5px 0 0;
    color: #52627a;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.license-check-head > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.license-check-head > span.is-active {
    background: #dcfce7;
    color: #166534;
}

.license-check-head > span.is-inactive {
    background: #f1f5f9;
    color: #475569;
}

.license-check-head > span.is-danger {
    background: #fee2e2;
    color: #991b1b;
}

.license-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.license-check-grid div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.license-check-grid span {
    display: block;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.license-check-grid strong {
    display: block;
    margin-top: 5px;
    color: #071326;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.license-check-message {
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #ffffff;
}

.license-check-message strong {
    display: block;
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.license-check-message p {
    margin: 6px 0 0;
    color: #52627a;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .license-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .license-check-head {
        flex-direction: column;
    }

    .license-check-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Settings admin
   ========================================================= */

.settings-card {
    margin-bottom: 18px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-form label,
.settings-test-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.settings-form label span,
.settings-test-form label span {
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="number"],
.settings-form input[type="password"],
.settings-form select,
.settings-test-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    background: #ffffff;
    color: #071326;
    outline: none;
    font-size: 13px;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-test-form input:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.10);
}

.settings-form-wide {
    grid-column: 1 / -1;
}

.settings-check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    background: #f8fbff;
}

.settings-check-row input {
    width: 18px;
    height: 18px;
    accent-color: #1769ff;
}

.settings-check-row span {
    color: #071326;
    font-size: 13px;
    font-weight: 900;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-test-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.3fr);
    gap: 12px;
    align-items: end;
}

.settings-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.settings-info-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #f8fbff;
}

.settings-info-grid span {
    display: block;
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}

.settings-info-grid strong {
    display: block;
    margin-top: 5px;
    color: #071326;
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .settings-form,
    .settings-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-test-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .settings-form,
    .settings-info-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-actions {
        justify-content: stretch;
    }

    .settings-form-actions .admin-btn,
    .settings-test-form .admin-btn {
        width: 100%;
    }
}