@font-face {
    font-family: "Peyda";
    src:
        url("PeydaWebVF.woff2") format("woff2"),
        url("PeydaWebVF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #eef5ff;
    --card: rgba(255, 255, 255, 0.58);
    --card-strong: rgba(255, 255, 255, 0.78);
    --text: #10233f;
    --muted: #6f7f95;
    --blue: #0c8ed9;
    --blue-dark: #05669f;
    --danger: #c8324b;
    --ok: #1e9d68;
    --border: rgba(255, 255, 255, 0.72);
    --app-font: "Peyda", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--app-font);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(95, 188, 255, 0.42), transparent 34rem),
        radial-gradient(circle at bottom left, rgba(206, 225, 255, 0.85), transparent 28rem),
        linear-gradient(135deg, #f7fbff 0%, var(--bg) 55%, #eaf1ff 100%);
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.glass {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 24px 80px rgba(63, 115, 178, 0.16);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 24px;
}

.brand {
    font-size: 20px;
    font-weight: 900;
}

.navlinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.header-user {
    margin-inline-end: 4px;
    color: var(--text);
    font-weight: 900;
}

.header-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    color: #0c4a6e;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(186, 230, 253, 0.42) 55%,
        rgba(125, 211, 252, 0.32) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 24px rgba(14, 116, 144, 0.14);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.header-icon-tile svg {
    width: 21px;
    height: 21px;
}

.header-icon-tile:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(14, 116, 144, 0.2);
}

.header-icon-tile:active {
    transform: scale(0.96);
}

.header-icon-tile--danger {
    color: #7f1d1d;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(254, 202, 202, 0.5) 45%,
        rgba(252, 165, 165, 0.4) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(185, 28, 28, 0.14),
        0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-icon-tile--danger:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(254, 202, 202, 0.6) 45%,
        rgba(252, 165, 165, 0.5) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(185, 28, 28, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.08);
}

.hero,
.panel,
.order-builder,
.auth-card {
    border-radius: 30px;
    padding: 28px;
}

.hero {
    margin-bottom: 22px;
}

.hero h1,
.auth-card h1,
.panel h1 {
    margin: 8px 0;
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: -0.04em;
}

.hero p,
.auth-card p,
.panel p {
    color: var(--muted);
    line-height: 1.9;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--blue-dark);
    background: rgba(213, 238, 255, 0.92);
    font-weight: 800;
    font-size: 13px;
}

.auth-card {
    width: min(440px, 100%);
    margin: 60px auto;
    text-align: center;
}

.form {
    display: grid;
    gap: 16px;
    text-align: right;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

input,
select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(186, 211, 235, 0.62);
    border-radius: 18px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    font: inherit;
}

input:focus,
select:focus {
    border-color: rgba(12, 142, 217, 0.62);
    box-shadow: 0 0 0 4px rgba(12, 142, 217, 0.12);
}

.btn,
button {
    min-height: 52px;
    border: 0;
    border-radius: 18px;
    padding: 0 20px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.btn:disabled,
button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 14px 30px rgba(12, 142, 217, 0.24);
}

.glass-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 13px 16px;
    color: #0c4a6e;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(186, 230, 253, 0.45) 50%,
        rgba(125, 211, 252, 0.35) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(14, 116, 144, 0.18),
        0 2px 8px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    -webkit-tap-highlight-color: transparent;
}

.glass-button:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(186, 230, 253, 0.55) 50%,
        rgba(125, 211, 252, 0.45) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(14, 116, 144, 0.22),
        0 2px 10px rgba(15, 23, 42, 0.08);
}

.glass-button:active {
    transform: scale(0.98);
}

.glass-button:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.55);
    outline-offset: 2px;
}

.glass-button.small {
    width: auto;
    min-height: 44px;
    min-width: 120px;
    padding: 11px 18px;
    font-size: 13px;
}

.danger {
    color: #7f1d1d;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(254, 202, 202, 0.5) 45%,
        rgba(252, 165, 165, 0.4) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(185, 28, 28, 0.14),
        0 2px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.danger:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(254, 202, 202, 0.6) 45%,
        rgba(252, 165, 165, 0.5) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(185, 28, 28, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.08);
}

.danger:active {
    transform: scale(0.98);
}

.ssl-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.ssl-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 178px;
    padding: 18px;
    border: 1px solid rgba(205, 225, 244, 0.82);
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.52);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.82) inset,
        0 18px 46px rgba(63, 115, 178, 0.1);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.ssl-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ssl-card.active {
    background: rgba(207, 230, 248, 0.72);
    border-color: rgba(118, 183, 230, 0.7);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 22px 54px rgba(14, 116, 144, 0.16);
}

.ssl-card.disabled {
    opacity: 0.45;
}

.lock {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, #dff3ff, #98d6ff);
    font-size: 28px;
}

.ssl-card strong {
    display: block;
    margin-bottom: 6px;
}

.ssl-card small,
.hint,
.empty,
.order-row small {
    color: var(--muted);
}

.domain-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(650px, 100%);
    margin: 0 auto;
}

.domain-fields {
    display: grid;
    gap: 16px;
}

.multi-domain-fields {
    display: grid;
    gap: 16px;
}

.multi-domain-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.multi-domain-row input,
.domain-fields > input {
    min-height: 70px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 34px rgba(63, 115, 178, 0.08);
}

.remove-domain-btn {
    width: 48px;
    min-height: 48px;
    padding: 0;
    color: #34495d;
    background: transparent;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
}

.add-domain-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 18px;
    min-height: 48px;
    border-radius: 0;
    color: #0073d8;
    background: rgba(226, 238, 250, 0.38);
    font-size: 18px;
    font-weight: 900;
}

.add-domain-btn strong {
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.submit-row .glass-button {
    width: min(330px, 100%);
}

.panel {
    margin-top: 22px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-title h1,
.section-title h2 {
    margin: 0;
}

.orders {
    display: grid;
    gap: 12px;
}

.dashboard-panel .section-title p {
    margin: 8px 0 0;
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(205, 225, 244, 0.7);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.order-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.order-info strong {
    direction: ltr;
    text-align: right;
}

.order-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.order-action-btn {
    width: auto;
    min-width: 128px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.42);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--blue-dark);
    background: rgba(213, 238, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.status.issued {
    color: var(--ok);
    background: rgba(223, 249, 235, 0.9);
}

.status.failed {
    color: var(--danger);
    background: rgba(255, 229, 235, 0.9);
}

.dns-help {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 18px 0 26px;
    text-align: center;
}

.records {
    display: grid;
    gap: 18px;
}

.record-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px 18px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.52);
}

.record-domain {
    grid-row: span 2;
    color: var(--text);
    font-weight: 900;
    direction: ltr;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.copy-row input,
code {
    direction: ltr;
    text-align: left;
}

.copy-row button {
    min-width: 74px;
    color: var(--blue-dark);
    background: rgba(217, 240, 255, 0.92);
}

.ok {
    grid-column: 2;
    color: var(--ok);
    font-weight: 800;
}

.warn {
    grid-column: 2;
    color: #aa7b00;
    font-weight: 800;
}

.issued-box {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(223, 249, 235, 0.76);
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 12px;
}

.key-card {
    display: grid;
    gap: 10px;
    min-height: 300px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 18px 44px rgba(63, 115, 178, 0.12);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.key-card h3,
.key-card span {
    margin: 0;
    text-align: center;
}

.key-card pre {
    position: relative;
    max-height: 190px;
    margin: 0;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    color: rgba(16, 35, 63, 0.78);
    font: 14px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.key-card pre::after {
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92));
    content: "";
}

.key-card .btn {
    align-self: end;
}

.download-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.download-actions .btn {
    width: min(190px, 100%);
}

.download-modal {
    width: min(840px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
}

.download-modal h2 {
    margin: 0;
    padding: 20px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.42);
}

.download-modal .modal__hint {
    margin: 0;
    padding: 36px 24px 20px;
    text-align: center;
    font-size: 18px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    width: 42px;
    min-height: 42px;
    padding: 0;
    color: var(--text);
    background: transparent;
    font-size: 32px;
    font-weight: 400;
}

.download-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 14px;
    padding: 16px 42px 42px;
}

.download-format-card {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 18px;
    min-height: 380px;
    min-width: 0;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.28);
}

.download-format-card + .download-format-card {
    border-right: 0;
}

.download-format-card h3 {
    margin: 0;
    color: #0073d8;
    font-size: 22px;
}

.download-format-card p {
    max-width: 250px;
    margin: 0;
    color: #32475c;
    text-align: center;
    line-height: 1.8;
}

.download-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(260px, 100%);
    min-height: 50px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: #0073d8;
    direction: ltr;
    white-space: nowrap;
}

.download-file-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-file-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 38px;
    border-radius: 10px;
    background: rgba(213, 238, 255, 0.95);
    font-size: 0;
}

.download-file-row strong::before {
    content: "↓";
    font-size: 24px;
    line-height: 1;
}

.pfx-form {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(260px, 100%);
}

.pfx-form label,
.pfx-form .glass-button {
    width: 100%;
}

.password-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
}

.password-tools input {
    min-width: 0;
    padding-inline: 12px;
    direction: ltr;
    text-align: left;
}

.password-tools button {
    min-height: 52px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--blue-dark);
    background: rgba(213, 238, 255, 0.95);
    font-size: 13px;
}

code {
    display: block;
    overflow: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.actions {
    margin-top: 22px;
    text-align: center;
}

.alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--blue-dark);
    background: rgba(213, 238, 255, 0.9);
}

.alert.error {
    color: var(--danger);
    background: rgba(255, 229, 235, 0.9);
}

.inline-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
}

.inline-message.success {
    color: var(--blue-dark);
    background: rgba(213, 238, 255, 0.9);
}

.inline-message.error {
    color: var(--danger);
    background: rgba(255, 229, 235, 0.9);
}

.grid-form {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    margin-bottom: 22px;
}

.users-page .section-title {
    align-items: flex-start;
}

.users-list {
    display: grid;
    gap: 12px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(205, 225, 244, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-row.inactive {
    opacity: 0.55;
}

.user-row__info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.user-row__display {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.user-row__username {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
}

.user-row__meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.user-row__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    color: #0c4a6e;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(186, 230, 253, 0.42) 55%,
        rgba(125, 211, 252, 0.32) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 24px rgba(14, 116, 144, 0.14);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.icon-tile svg {
    width: 22px;
    height: 22px;
}

.icon-tile:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(14, 116, 144, 0.2);
}

.icon-tile:active {
    transform: scale(0.96);
}

.icon-tile--danger {
    color: #7f1d1d;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(254, 202, 202, 0.5) 45%,
        rgba(252, 165, 165, 0.4) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(185, 28, 28, 0.14),
        0 2px 8px rgba(15, 23, 42, 0.06);
}

.icon-tile--danger:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(254, 202, 202, 0.6) 45%,
        rgba(252, 165, 165, 0.5) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 12px 32px rgba(185, 28, 28, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.08);
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
}

.check-label input {
    width: 18px;
    min-height: 18px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal[hidden] {
    display: none !important;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px 20px 20px;
    border-radius: 24px;
}

.modal__panel h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.modal__hint {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.8;
}

.modal-form {
    gap: 14px;
}

.modal-check {
    min-height: auto;
    padding: 4px 0;
}

.modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.modal-cancel {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(205, 225, 244, 0.82);
}

.modal__panel--confirm {
    text-align: center;
}

.modal__panel--confirm .modal-actions {
    grid-template-columns: 1fr 1fr;
}

body.modal-open {
    overflow: hidden;
}

.back {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
}

@media (max-width: 850px) {
    .ssl-types,
    .grid-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .key-grid {
        grid-template-columns: 1fr 1fr;
    }

    .download-format-grid {
        padding: 16px 20px 28px;
    }

    .download-format-card {
        padding: 22px 16px;
    }

    .modal__panel--confirm .modal-actions {
        grid-template-columns: 1fr;
    }

    .record-card {
        grid-template-columns: 1fr;
    }

    .record-domain,
    .ok,
    .warn {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 700px) {
    .download-modal .modal__hint {
        padding: 28px 18px 16px;
        font-size: 16px;
    }

    .download-format-grid {
        grid-template-columns: 1fr;
        padding: 14px 18px 28px;
    }

    .download-format-card {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .ssl-types,
    .domain-row,
    .grid-form,
    .key-grid,
    .download-format-grid {
        grid-template-columns: 1fr;
    }

    .download-format-card + .download-format-card {
        border-top: 1px solid rgba(205, 225, 244, 0.62);
        border-right: 0;
    }

    .user-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-row__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .section-title,
    .order-row,
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .order-action-btn {
        width: 100%;
    }
}
