:root {
    --app-bg: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f1f4f8;

    --text: #111827;
    --text-soft: #374151;
    --muted: #6b7280;
    --muted-light: #9ca3af;

    --border: #e5e9ef;
    --border-soft: #eef1f4;

    --primary: #111827;
    --primary-hover: #030712;
    --primary-soft: #eef1f5;

    --success: #15803d;
    --success-bg: #ecfdf3;

    --warning: #b45309;
    --warning-bg: #fff7ed;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;

    --info: #1d4ed8;
    --info-bg: #eff6ff;

    --radius-xs: 8px;
    --radius-sm: 11px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 28px;

    --shadow-sm:
        0 5px 16px rgba(17, 24, 39, .04);

    --shadow:
        0 10px 30px rgba(17, 24, 39, .07);

    --shadow-lg:
        0 20px 50px rgba(17, 24, 39, .13);

    --transition:
        .2s ease;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--app-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--app-bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body,
input,
select,
textarea,
button {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

button,
input,
select,
textarea {
    outline: none;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    color: #ffffff;
    background: #111827;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d1d5db;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* =========================================================
   AUTH / LOGIN
   ========================================================= */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(17, 24, 39, .08),
            transparent 32%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(17, 24, 39, .04),
            transparent 28%
        ),
        var(--app-bg);
}

.auth-shell {
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(34px, env(safe-area-inset-top))
        20px
        max(30px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.app-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: var(--primary);
    box-shadow:
        0 12px 25px rgba(17, 24, 39, .18);
    font-size: 23px;
}

.auth-brand h1 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -.45px;
}

.auth-brand p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.auth-card {
    padding: 26px 22px;
    border: 1px solid rgba(229, 233, 239, .95);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.auth-title {
    margin: 0;
    color: var(--text);
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.8px;
}

.auth-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.auth-footer {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-light);
    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, .11);
}


/* =========================================================
   INPUT / FORM
   ========================================================= */

.app-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 750;
}

.app-input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    z-index: 3;
    left: 16px;
    top: 50%;
    color: var(--muted-light);
    transform: translateY(-50%);
    pointer-events: none;
}

.app-input {
    min-height: 53px;
    padding-left: 45px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: var(--surface-soft);
    font-size: 12px;
    box-shadow: none !important;
    transition:
        border-color var(--transition),
        background var(--transition);
}

.app-input::placeholder,
.app-control::placeholder {
    color: #b3bac5;
}

.app-input:focus,
.app-control:focus,
.app-select:focus {
    border-color: #9ca3af;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(17, 24, 39, .035) !important;
}

.password-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    z-index: 4;
    right: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: var(--muted-light);
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--text);
    background: var(--primary-soft);
}

.app-form-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.app-control,
.app-select {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    background-color: var(--surface-soft);
    font-size: 11px;
    box-shadow: none !important;
}

.app-control {
    padding-left: 13px;
    padding-right: 13px;
}

textarea.app-control {
    min-height: 110px;
    padding-top: 12px;
    resize: vertical;
}

.form-select.app-control,
.form-select.app-select {
    padding-right: 38px;
}

.form-check-input {
    box-shadow: none !important;
}

.form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.form-check-input:focus {
    border-color: #9ca3af;
    box-shadow:
        0 0 0 3px rgba(17, 24, 39, .06) !important;
}

.form-switch .form-check-input {
    width: 42px;
    height: 23px;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.security-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-size: 10px;
    font-weight: 750;
}

.form-section-title {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title > i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 16px;
}

.form-section-title strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.form-section-title span {
    display: block;
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 9px;
}

.app-divider {
    margin: 23px 0;
    border-color: var(--border-soft);
    opacity: 1;
}

.security-option {
    min-height: 59px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.security-option strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
}

.security-option span {
    display: block;
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 9px;
}

.lock-field {
    animation: fadeUp .18s ease;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.app-primary-btn {
    min-height: 53px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: var(--primary);
    font-size: 11px;
    font-weight: 800;
    box-shadow:
        0 10px 20px rgba(17, 24, 39, .15);
    transition:
        transform .15s ease,
        background var(--transition);
}

.app-primary-btn:hover,
.app-primary-btn:focus,
.app-primary-btn:active {
    color: #ffffff !important;
    background: var(--primary-hover) !important;
}

.app-primary-btn:active {
    transform: scale(.985);
}

.page-add-btn,
.round-icon-btn {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition:
        transform .15s ease,
        background var(--transition);
}

.page-add-btn {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.page-add-btn:hover {
    color: #ffffff;
    background: var(--primary-hover);
}

.page-add-btn:active,
.round-icon-btn:active {
    transform: scale(.94);
}

.filter-btn {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary);
    font-size: 10px;
    font-weight: 750;
}

.filter-btn:hover,
.filter-btn:focus {
    color: #ffffff;
    background: var(--primary-hover);
}


/* =========================================================
   ALERT
   ========================================================= */

.app-alert {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 0;
    border-radius: 14px;
    font-size: 10px;
    line-height: 1.5;
}

.app-alert i {
    margin-top: 1px;
    flex: 0 0 auto;
}

.alert-success.app-alert {
    color: var(--success);
    background: var(--success-bg);
}

.alert-warning.app-alert {
    color: var(--warning);
    background: var(--warning-bg);
}

.alert-danger.app-alert {
    color: var(--danger);
    background: var(--danger-bg);
}

.alert-info.app-alert {
    color: var(--info);
    background: var(--info-bg);
}

.toast-message {
    margin-bottom: 15px;
}


/* =========================================================
   APP CONTAINER
   ========================================================= */

.app-body {
    min-height: 100vh;
    background: var(--app-bg);
}

.mobile-app {
    width: min(100%, 640px);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background: var(--app-bg);
}

.app-header {
    position: sticky;
    z-index: 500;
    top: 0;
    min-height: 72px;
    padding:
        max(10px, env(safe-area-inset-top))
        17px
        10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(229, 233, 239, .85);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: var(--primary);
    font-size: 17px;
    box-shadow:
        0 7px 16px rgba(17, 24, 39, .14);
}

.header-brand small {
    display: block;
    margin-bottom: 1px;
    color: var(--muted-light);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.header-brand strong {
    display: block;
    max-width: 180px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn,
.admin-avatar {
    width: 39px;
    height: 39px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: #ffffff;
}

.header-icon-btn {
    font-size: 15px;
}

.admin-avatar {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
    font-size: 11px;
    font-weight: 850;
}

.app-content {
    padding: 18px 16px 112px;
}


/* =========================================================
   DASHBOARD HERO
   ========================================================= */

.welcome-card {
    min-height: 158px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(255, 255, 255, .16),
            transparent 34%
        ),
        radial-gradient(
            circle at 20% 120%,
            rgba(255, 255, 255, .07),
            transparent 35%
        ),
        #111827;
    box-shadow:
        0 16px 35px rgba(17, 24, 39, .18);
}

.welcome-label {
    color: #d1d5db;
    font-size: 10px;
    font-weight: 600;
}

.welcome-card h1 {
    max-width: 260px;
    margin: 5px 0;
    color: #ffffff;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.8px;
}

.welcome-card p {
    max-width: 245px;
    margin: 0;
    color: #d1d5db;
    font-size: 10px;
    line-height: 1.55;
}

.welcome-shield {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 23px;
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    font-size: 31px;
    transform: rotate(5deg);
}


/* =========================================================
   SECTION
   ========================================================= */

.dashboard-section,
.detail-section {
    margin-top: 25px;
}

.section-heading {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--muted-light);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.35px;
}

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.3px;
}

.section-link {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.section-link:hover {
    color: var(--text);
}


/* =========================================================
   DASHBOARD STATS
   ========================================================= */

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

.stat-card {
    min-height: 92px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 17px;
}

.stat-icon.success {
    color: var(--success);
    background: var(--success-bg);
}

.stat-icon.warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.stat-icon.danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.stat-card strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 20px;
    font-weight: 850;
}


/* =========================================================
   QUICK MENU
   ========================================================= */

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

.quick-card {
    min-height: 126px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 21px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition:
        transform .15s ease,
        box-shadow var(--transition);
}

.quick-card:hover {
    box-shadow: var(--shadow);
}

.quick-card:active {
    transform: scale(.98);
}

.quick-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 16px;
}

.quick-card strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.quick-card small {
    margin-top: 3px;
    color: var(--muted-light);
    font-size: 9px;
}


/* =========================================================
   DASHBOARD LICENSE LIST
   ========================================================= */

.license-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.license-row {
    min-height: 88px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--border-soft);
    background: #ffffff;
    transition: background var(--transition);
}

.license-row:last-child {
    border-bottom: 0;
}

.license-row:hover {
    background: #fafbfc;
}

.license-row:active {
    background: #f7f8fa;
}

.license-row-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 15px;
}

.license-row-content {
    min-width: 0;
    flex: 1;
}

.license-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.license-row-top strong {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-code {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-meta {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    color: var(--muted-light);
    font-size: 8px;
}

.license-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.license-chevron {
    color: #d1d5db;
    font-size: 11px;
}


/* =========================================================
   STATUS CHIP
   ========================================================= */

.status-chip {
    padding: 5px 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .25px;
}

.status-chip.success {
    color: var(--success);
    background: var(--success-bg);
}

.status-chip.warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.status-chip.secondary {
    color: #4b5563;
    background: #f3f4f6;
}

.status-chip.danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.status-chip.dark {
    color: #ffffff;
    background: var(--primary);
}

.status-chip.info {
    color: var(--info);
    background: var(--info-bg);
}


/* =========================================================
   SYSTEM STATUS
   ========================================================= */

.system-card {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.system-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--success);
    background: var(--success-bg);
    font-size: 16px;
}

.system-card strong {
    display: block;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
}

.system-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 8px;
}

.online-chip {
    margin-left: auto;
    padding: 6px 9px;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    color: var(--success) !important;
    background: var(--success-bg);
    font-size: 7px !important;
    font-weight: 850;
}

.online-chip span {
    width: 6px;
    height: 6px;
    margin: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseOnline 1.8s infinite;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.page-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-heading h1 {
    margin: 4px 0 3px;
    color: var(--text);
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.7px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.back-link:hover {
    color: var(--text);
}


/* =========================================================
   FILTER / SEARCH
   ========================================================= */

.filter-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.search-box {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-soft);
    transition:
        border-color var(--transition),
        background var(--transition);
}

.search-box:focus-within {
    border-color: #9ca3af;
    background: #ffffff;
}

.search-box i {
    color: var(--muted-light);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 10px;
}

.search-box input::placeholder {
    color: #b1b7c1;
}

.result-info {
    margin: 14px 2px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted-light);
    font-size: 8px;
}

.result-info a {
    color: var(--text);
    font-weight: 750;
}


/* =========================================================
   LICENSE MANAGEMENT LIST
   ========================================================= */

.license-management-list {
    display: grid;
    gap: 10px;
}

.management-license-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition:
        transform .15s ease,
        box-shadow var(--transition);
}

.management-license-card:hover {
    box-shadow: var(--shadow);
}

.management-license-card:active {
    transform: scale(.985);
}

.management-license-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-product-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 15px;
}

.management-license-header strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.management-license-header span:not(.status-chip) {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted-light);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-token-display {
    margin-top: 13px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    border-radius: 11px;
    color: #4b5563;
    background: #f8fafc;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.license-card-info {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted-light);
    font-size: 8px;
}

.license-card-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.app-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.app-pagination a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.app-pagination a:active {
    transform: scale(.95);
}

.app-pagination span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
}

.empty-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 20px;
}

.empty-state strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.empty-state span {
    max-width: 270px;
    margin-top: 4px;
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.55;
}

.empty-mini {
    padding: 22px;
    text-align: center;
    color: var(--muted-light);
    font-size: 9px;
}


/* =========================================================
   LICENSE DETAIL TOPBAR
   ========================================================= */

.detail-topbar {
    min-height: 47px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    text-align: center;
}

.detail-topbar strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   LICENSE DETAIL HERO
   ========================================================= */

.license-hero-card {
    padding: 20px;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, .14),
            transparent 38%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(255, 255, 255, .06),
            transparent 32%
        ),
        var(--primary);
    box-shadow:
        0 14px 30px rgba(17, 24, 39, .17);
}

.detail-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-key-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    font-size: 16px;
}

.detail-product {
    display: block;
    margin-top: 18px;
    color: #aeb6c3;
    font-size: 8px;
    font-weight: 650;
}

.license-hero-card h1 {
    margin: 4px 0 18px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.copy-value {
    margin-top: 8px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .07);
}

.copy-value > div {
    min-width: 0;
    flex: 1;
}

.copy-value small {
    display: block;
    margin-bottom: 2px;
    color: #9ca3af;
    font-size: 6px;
    font-weight: 850;
    letter-spacing: 1px;
}

.copy-value strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-value.token strong {
    font-size: 7px;
}

.copy-value button {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, .09);
}

.copy-value button:hover {
    background: rgba(255, 255, 255, .15);
}


/* =========================================================
   LICENSE DETAIL INFO GRID
   ========================================================= */

.detail-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.detail-info-card {
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-info-card i {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 16px;
}

.detail-info-card span {
    display: block;
    color: var(--muted-light);
    font-size: 7px;
}

.detail-info-card strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   DETAIL LIST
   ========================================================= */

.detail-list-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-list-card > div {
    min-height: 52px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.detail-list-card > div:last-child {
    border-bottom: 0;
}

.detail-list-card span {
    flex: 0 0 auto;
    color: var(--muted-light);
    font-size: 8px;
}

.detail-list-card strong {
    max-width: 67%;
    color: var(--text);
    text-align: right;
    font-size: 8px;
    font-weight: 750;
}

.break-value {
    word-break: break-all;
}


/* =========================================================
   LICENSE ACTION
   ========================================================= */

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

.action-grid form {
    margin: 0;
}

.license-action-btn {
    width: 100%;
    min-height: 52px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
    background: #ffffff;
    font-size: 8px;
    font-weight: 800;
    transition:
        transform .15s ease,
        background var(--transition);
}

.license-action-btn:active {
    transform: scale(.97);
}

.license-action-btn:hover {
    background: #f8fafc;
}

.license-action-btn.success {
    color: var(--success);
    border-color: #dcfce7;
    background: var(--success-bg);
}

.license-action-btn.warning {
    color: var(--warning);
    border-color: #fed7aa;
    background: var(--warning-bg);
}

.license-action-btn.danger {
    color: var(--danger);
    border-color: #fee2e2;
    background: var(--danger-bg);
}

.delete-license-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #fee2e2;
    border-radius: 15px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: 9px;
    font-weight: 800;
}

.delete-license-btn:hover {
    color: #991b1b;
    border-color: #fecaca;
    background: #fee2e2;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-card {
    padding: 5px 15px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.timeline-item {
    min-height: 70px;
    padding: 13px 0 13px 18px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow:
        0 0 0 4px rgba(17, 24, 39, .06);
}

.timeline-item strong {
    display: block;
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
}

.timeline-item span:not(.timeline-dot) {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.timeline-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted-light);
    font-size: 7px;
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: max(9px, env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), 610px);
    height: 69px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    border: 1px solid rgba(229, 233, 239, .97);
    border-radius: 23px;
    background: rgba(255, 255, 255, .97);
    box-shadow:
        0 14px 35px rgba(17, 24, 39, .15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.bottom-nav-item {
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 15px;
    color: var(--muted-light);
    transition:
        color var(--transition),
        background var(--transition);
}

.bottom-nav-item i {
    font-size: 16px;
}

.bottom-nav-item span {
    font-size: 7px;
    font-weight: 750;
}

.bottom-nav-item.active {
    color: var(--text);
    background: #f4f6f8;
}

.bottom-action {
    width: 49px;
    height: 49px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--primary);
    box-shadow:
        0 9px 20px rgba(17, 24, 39, .25);
    font-size: 20px;
    transition: transform .15s ease;
}

.bottom-action:hover {
    color: #ffffff;
}

.bottom-action:active {
    transform: scale(.92);
}


/* =========================================================
   OFFCANVAS ACCOUNT
   ========================================================= */

.account-drawer {
    width: min(88%, 380px) !important;
    border: 0 !important;
    background: #ffffff;
}

.account-drawer .offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-soft);
}

.account-drawer .offcanvas-header small {
    color: var(--muted-light);
    font-size: 8px;
}

.account-drawer .offcanvas-header h5 {
    margin-top: 2px;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
}

.account-drawer .offcanvas-body {
    padding: 18px;
}

.profile-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
}

.profile-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.profile-card strong {
    display: block;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
}

.profile-card span {
    display: block;
    color: var(--muted-light);
    font-size: 8px;
}

.role-chip {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text) !important;
    background: #e9edf2;
    font-size: 6px !important;
    font-weight: 850;
}

.drawer-menu {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #ffffff;
}

.drawer-menu a {
    min-height: 57px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 10px;
    font-weight: 750;
}

.drawer-menu a:last-child {
    border-bottom: 0;
}

.drawer-menu a:hover {
    background: #fafbfc;
}

.drawer-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--text);
    background: var(--primary-soft);
}

.drawer-menu .danger {
    color: var(--danger);
}

.drawer-menu .danger .drawer-icon {
    color: var(--danger);
    background: var(--danger-bg);
}


/* =========================================================
   MODAL
   ========================================================= */

.modal-backdrop.show {
    opacity: .35;
}

.app-modal {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.app-modal .modal-header {
    padding: 16px 17px;
    border-color: var(--border-soft);
}

.app-modal .modal-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.app-modal .modal-body {
    padding: 17px;
}

.app-modal .modal-footer {
    padding: 12px 17px 17px;
    border-color: var(--border-soft);
}


/* =========================================================
   BOOTSTRAP OVERRIDES
   ========================================================= */

.btn-close {
    box-shadow: none !important;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.dropdown-item {
    font-size: 10px;
}

.dropdown-item:active {
    color: var(--text);
    background: var(--surface-soft);
}

.badge {
    font-weight: 700;
}

.table {
    --bs-table-bg: transparent;
}

.card {
    border-color: var(--border);
}


/* =========================================================
   UTILITY
   ========================================================= */

.text-break {
    word-break: break-all !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.min-w-0 {
    min-width: 0 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

.pb-app {
    padding-bottom:
        calc(100px + env(safe-area-inset-bottom));
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseOnline {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, .26);
    }

    50% {
        box-shadow:
            0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.management-license-card,
.stat-card,
.quick-card,
.detail-info-card,
.filter-card,
.app-form-card,
.license-list,
.detail-list-card,
.timeline-card {
    animation:
        fadeUp .25s ease both;
}


/* =========================================================
   RESPONSIVE SMALL DEVICE
   ========================================================= */

@media (max-width: 374px) {

    .app-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-shell {
        padding-left: 15px;
        padding-right: 15px;
    }

    .welcome-card {
        padding: 18px;
    }

    .welcome-card h1 {
        font-size: 22px;
    }

    .welcome-shield {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 19px;
        font-size: 26px;
    }

    .stat-card {
        padding: 12px;
        gap: 9px;
    }

    .stat-icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
        font-size: 15px;
    }

    .stat-card strong {
        font-size: 17px;
    }

    .quick-card {
        min-height: 115px;
        padding: 14px;
    }

    .detail-list-card strong {
        max-width: 58%;
    }

    .license-action-btn {
        font-size: 7px;
    }

}


/* =========================================================
   TABLET / DESKTOP PREVIEW
   ========================================================= */

@media (min-width: 641px) {

    .mobile-app {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow:
            0 0 50px rgba(17, 24, 39, .04);
    }

    .app-body {
        background:
            linear-gradient(
                90deg,
                #f0f2f5,
                #f7f8fa 50%,
                #f0f2f5
            );
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}

.product-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product-mini-stat {
    min-height: 83px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-mini-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text);
    background: var(--primary-soft);
    font-size: 14px;
}

.product-mini-icon.success {
    color: var(--success);
    background: var(--success-bg);
}

.product-mini-icon.secondary {
    color: #4b5563;
    background: #f3f4f6;
}

.product-mini-stat span {
    display: block;
    color: var(--muted-light);
    font-size: 7px;
}

.product-mini-stat strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
}

.product-list {
    display: grid;
    gap: 10px;
}

.product-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition:
        transform .15s ease,
        box-shadow var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-card:active {
    transform: scale(.985);
}

.product-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-icon-box {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: #111827;
    font-size: 16px;
}

.product-card-title {
    min-width: 0;
    flex: 1;
}

.product-card-title strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-title span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted-light);
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

.product-meta-row {
    margin-top: 14px;
    padding: 11px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.product-meta-row > div {
    padding: 0 10px;
    border-right: 1px solid var(--border-soft);
}

.product-meta-row > div:first-child {
    padding-left: 0;
}

.product-meta-row > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.product-meta-row span {
    display: block;
    color: var(--muted-light);
    font-size: 6px;
    font-weight: 800;
    letter-spacing: .4px;
}

.product-meta-row strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 9px;
    font-weight: 850;
}

.product-license-summary {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted-light);
    font-size: 7px;
}

.product-license-summary span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-license-summary i {
    font-size: 9px;
}

.product-hero {
    padding: 21px;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.15),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(255,255,255,.06),
            transparent 30%
        ),
        #111827;
    box-shadow:
        0 14px 30px rgba(17, 24, 39, .17);
}

.product-hero-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(255,255,255,.08);
    font-size: 20px;
}

.product-hero-code {
    display: block;
    color: #9ca3af;
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .7px;
}

.product-hero h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.55px;
}

.product-version-chip {
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255,255,255,.08);
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 7px;
    font-weight: 700;
}

.product-description-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--muted);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 9px;
    line-height: 1.7;
}

.form-hint {
    margin-top: 6px;
    color: var(--muted-light);
    font-size: 7px;
    line-height: 1.5;
}

@media (max-width: 374px) {
    .product-stat-grid {
        gap: 6px;
    }

    .product-mini-stat {
        min-height: 72px;
        padding: 9px;
        gap: 6px;
    }

    .product-mini-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 12px;
    }

    .product-mini-stat strong {
        font-size: 13px;
    }
}

.api-key-list {
    display: grid;
    gap: 11px;
}

.api-key-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.api-key-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: #111827;
}

.api-key-card-head strong {
    display: block;
    font-size: 11px;
    font-weight: 850;
}

.api-key-card-head span:not(.status-chip) {
    display: block;
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 8px;
}

.api-key-value {
    margin-top: 13px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface-soft);
}

.api-key-value code {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #374151;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-value button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.api-key-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    color: var(--muted-light);
    font-size: 7px;
}

.api-key-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.api-key-actions {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.api-key-actions form {
    margin: 0;
}

.api-key-actions button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: #fff;
    font-size: 8px;
    font-weight: 750;
}

.api-key-actions button.danger {
    color: var(--danger);
    border-color: #fee2e2;
    background: var(--danger-bg);
}

.docs-intro-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.14),
            transparent 35%
        ),
        #111827;
    box-shadow:
        0 14px 30px rgba(17,24,39,.15);
}

.docs-api-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.08);
    font-size: 19px;
}

.docs-intro-card > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.docs-intro-card > div:nth-child(2) > span {
    color: #9ca3af;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}

.docs-intro-card h2 {
    margin: 2px 0;
    font-size: 15px;
    font-weight: 850;
}

.docs-intro-card p {
    margin: 0;
    color: #d1d5db;
    font-size: 8px;
    line-height: 1.5;
}

.docs-section {
    margin-top: 25px;
}

.docs-section > h2 {
    margin: 3px 0 12px;
    font-size: 15px;
    font-weight: 850;
}

.docs-text {
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.65;
}

.docs-code-copy {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.docs-code-copy code {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--text);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-code-copy button {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--primary-soft);
}

.docs-code-block {
    overflow-x: auto;
    border: 1px solid #252c38;
    border-radius: 15px;
    background: #111827;
}

.docs-code-block pre {
    min-width: max-content;
    margin: 0;
    padding: 15px;
    color: #e5e7eb;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 8px;
    line-height: 1.7;
}

.endpoint-title {
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.endpoint-title code {
    color: var(--text);
    font-size: 9px;
}

.method-badge {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: 850;
}

.method-badge.post {
    color: #15803d;
    background: #dcfce7;
}

.method-badge.get {
    color: #1d4ed8;
    background: #dbeafe;
}

.docs-table {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
}

.docs-table-row {
    min-height: 47px;
    display: grid;
    grid-template-columns: 1fr .7fr 1.5fr;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 7px;
}

.docs-table-row:last-child {
    border-bottom: 0;
}

.docs-table-row.head {
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 7px;
    font-weight: 800;
}

.docs-table-row code {
    color: var(--text);
    font-size: 7px;
}

.docs-subtitle {
    margin: 16px 0 8px;
    font-size: 10px;
    font-weight: 800;
}

.error-code-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
}

.error-code-item {
    padding: 12px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 4px 10px;
    border-bottom: 1px solid var(--border-soft);
}

.error-code-item:last-child {
    border-bottom: 0;
}

.error-code-item code {
    color: var(--text);
    font-size: 7px;
    font-weight: 700;
}

.http-code {
    justify-self: end;
    color: var(--muted-light);
    font-size: 7px;
}

.error-code-item p {
    grid-column: 1 / -1;
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 7px;
}

.api-flow {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.api-flow > div {
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 13px;
    background: var(--surface-soft);
}

.api-flow > div > span {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #111827;
    font-size: 8px;
    font-weight: 850;
}

.api-flow strong {
    display: block;
    font-size: 9px;
}

.api-flow small {
    margin-left: auto;
    color: var(--muted-light);
    font-size: 7px;
}

.api-flow > i {
    display: block;
    margin: 5px 0;
    color: var(--muted-light);
    text-align: center;
    font-size: 11px;
}