@font-face {
    font-family: "ALKATIP Basma Tom";
    src: url("/fonts/ALKATIP%20Basma%20Tom.TTF") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "ch";
    src: url("/fonts/ch.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Gilass";
    src: url("/fonts/Gilass.ttf");
    font-display: swap;
}

@font-face {
    font-family: "KSMT UI";
    src: url("/fonts/ALKATIP%20Basma%20Tom.TTF") format("truetype");
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "KSMT UI";
    src: url("/fonts/ch.ttf") format("truetype");
    font-display: swap;
    unicode-range: U+0000-02AF, U+0300-052F, U+2000-2BFF, U+2E00-2E7F, U+3000-30FF, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

:root {
    --bg: #070b14;
    --card: rgba(255, 255, 255, 0.06);
    --card2: rgba(255, 255, 255, 0.09);
    --text: #eef3ff;
    --muted: rgba(238, 243, 255, 0.72);
    --line: rgba(238, 243, 255, 0.12);
    --primary: #2f7bff;
    --primary2: #00d4ff;
    --danger: #ff4d6d;
    --ok: #00d4a5;
    --shadow: 0 22px 90px rgba(0, 0, 0, 0.55);
    --font-ui: "KSMT UI";
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    direction: rtl;
}

body {
    margin: 0;
    font-family: var(--font-ui), ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
    font-size: 13px;
    line-height: 1.52;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand h1 {
    font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
}

::selection {
    background: rgba(124, 92, 255, 0.35);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 18px;
    position: relative;
    z-index: 1;
}

.k {
    font-family: "ch", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono";
    direction: ltr;
    text-align: left;
}

input[type="password"],
input[type="number"],
input[type="text"],
textarea,
select {
    font-family: inherit;
}

button {
    font-family: inherit;
}

input[type="password"] {
    direction: ltr;
    text-align: left;
}

.muted {
    color: var(--muted);
}

label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(10, 14, 24, 0.55);
    color: var(--text);
    outline: none;
    font-size: 12.5px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    flex: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: sticky;
    top: 12px;
    z-index: 10;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

@media (min-width: 920px) {
    .card.sidebar {
        position: sticky;
        top: 96px;
        align-self: start;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    box-shadow: 0 12px 40px rgba(124, 92, 255, 0.25);
}

.brand h1 {
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.2px;
    font-weight: 700;
}

.badge {
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.card .inner {
    padding: 16px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

@media (min-width: 920px) {
    .grid {
        grid-template-columns: 1fr 340px;
    }
    .sidebar {
        grid-column: 2;
    }
    .content {
        grid-column: 1;
    }
}

.sidebar {
    padding: 0;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.nav a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    text-decoration: none;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.nav a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(0, 212, 255, 0.12));
    border-color: rgba(124, 92, 255, 0.38);
}

.nav small {
    color: var(--muted);
    font-size: 11px;
}

.content {
    padding: 0;
}

.h2 {
    font-size: 15px;
    margin: 0 0 10px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(124, 92, 255, 0.55);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(0, 212, 255, 0.55));
    color: #061022;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 12.5px;
    font-family: var(--font-uy), "ch", ui-sans-serif, system-ui;
}

.btn.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 600;
}

.btn.danger {
    border-color: rgba(255, 77, 109, 0.55);
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.92), rgba(255, 121, 97, 0.55));
    color: #16060a;
}

.btn.ok {
    border-color: rgba(0, 212, 165, 0.55);
    background: linear-gradient(135deg, rgba(0, 212, 165, 0.92), rgba(0, 212, 255, 0.35));
    color: #04130f;
}

.btn:active {
    transform: translateY(1px);
}

.table-wrap {
    width: 100%;
    overflow: auto;
    border-radius: 14px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table th {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    padding: 0 10px;
}

.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.table td {
    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table tr td:first-child {
    border-left: 1px solid var(--line);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.table tr td:last-child {
    border-right: 1px solid var(--line);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.pill.active {
    border-color: rgba(0, 212, 165, 0.55);
    color: rgba(234, 255, 248, 0.92);
}

.pill.suspended {
    border-color: rgba(255, 204, 0, 0.45);
    color: rgba(255, 245, 216, 0.92);
}

.pill.revoked {
    border-color: rgba(255, 77, 109, 0.55);
    color: rgba(255, 228, 234, 0.92);
}

.flash {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    margin: 0 0 12px 0;
}

.flash.bad {
    border-color: rgba(255, 77, 109, 0.45);
    background: rgba(255, 77, 109, 0.08);
}

.flash.ok {
    border-color: rgba(0, 212, 165, 0.35);
    background: rgba(0, 212, 165, 0.08);
}

.mini {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-uy), "ch", ui-sans-serif, system-ui;
}

.frame {
    width: min(1180px, 100%);
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: 0 26px 120px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.frame-inner {
    padding: 22px;
    position: relative;
}

.navpill {
    width: min(720px, 100%);
    margin: 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
}

.navbrand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbrand .logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.navbrand .name {
    font-weight: 700;
    font-size: 14px;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navlinks a {
    text-decoration: none;
    color: rgba(238, 243, 255, 0.85);
    font-size: 13px;
}

.navlinks a:hover {
    color: rgba(238, 243, 255, 1);
}

.hero {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 12px 46px 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    color: rgba(238, 243, 255, 0.82);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    max-width: min(720px, 100%);
    margin: 0 0 14px 0;
    line-height: 1.35;
}

.headline {
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -0.4px;
    font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 520px) {
    .headline {
        font-size: 32px;
    }
}

.subline {
    margin: 0 0 22px 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 560px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cta {
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 12.5px;
    font-family: var(--font-uy), "ch", ui-sans-serif, system-ui;
}

.cta.primary {
    background: #f3f6ff;
    color: #0b1020;
    border-color: transparent;
}

.cta.secondary {
    background: rgba(0, 0, 0, 0.22);
    color: rgba(238, 243, 255, 0.92);
    direction: ltr;
}

.cta.secondary input {
    border: none;
    background: transparent;
    outline: none;
    color: rgba(238, 243, 255, 0.92);
    width: 240px;
    min-width: 190px;
    font-size: 13px;
    padding: 0 4px;
    margin: 0;
}

.cta.secondary input::placeholder {
    color: rgba(238, 243, 255, 0.55);
}

.cta.secondary .mini {
    border-radius: 999px;
    padding: 8px 12px;
}

.cta.primary:active,
.cta.secondary:active {
    transform: translateY(1px);
}

.hero-msg {
    width: min(560px, 100%);
    margin: 0 auto 12px auto;
    text-align: initial;
}

.text-xs {
    font-size: 12px;
}

.text-sm {
    font-size: 13px;
}

.mt-1 {
    margin-top: 2px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 14px;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 14px;
}

.my-2 {
    margin: 10px 0 12px 0;
}

.my-3 {
    margin: 12px 0 16px 0;
}

.gap-sm {
    gap: 10px;
}

.gap-md {
    gap: 12px;
}

.fw-700 {
    font-weight: 600;
}

.fw-800 {
    font-weight: 700;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.flex-0 {
    flex: 0;
}

.w-100 {
    width: 100%;
}

.w-160 {
    width: 160px;
}

.w-260 {
    width: 260px;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.minw-140 {
    min-width: 140px;
}

.minw-240 {
    min-width: 240px;
}

.card-compact {
    border-radius: 16px;
    margin: 0 0 14px 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(238, 243, 255, 0.88);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-uy), "ch", ui-sans-serif, system-ui;
}

.chip.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.38), rgba(0, 212, 255, 0.14));
    border-color: rgba(124, 92, 255, 0.55);
}

.toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: min(720px, calc(100% - 24px));
}

.toast {
    margin: 0 0 10px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgba(124, 92, 255, 0.9);
}

.docs-wrap {
    width: min(920px, 100%);
    margin: 18px auto 0 auto;
}

.page-title {
    font-size: 20px;
    margin: 10px 0 6px 0;
    font-weight: 900;
}

.page-sub {
    margin: 0 0 14px 0;
    color: var(--muted);
}

.section {
    margin: 0 0 14px 0;
}

.section-title {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 8px 0;
}

pre.code {
    margin: 8px 0 0 0;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 14, 24, 0.55);
    overflow: auto;
    white-space: pre;
}

@media (max-width: 520px) {
    .container {
        padding: 18px 12px;
    }
    .card .inner {
        padding: 14px;
    }
    .field {
        min-width: unset;
    }
}
