@font-face {
    font-family: "Geist Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2") format("woff2-variations");
}

:root {
    color-scheme: dark;
    --sikat-bg: #07090f;
    --sikat-panel: rgba(18, 22, 31, 0.78);
    --sikat-panel-solid: #111620;
    --sikat-border: rgba(148, 163, 184, 0.18);
    --sikat-border-strong: rgba(148, 163, 184, 0.28);
    --sikat-text: #f8fafc;
    --sikat-muted: #8b97a8;
    --sikat-soft: #cbd5e1;
    --sikat-primary: #7c8cf8;
    --sikat-cyan: #38bdf8;
    --sikat-green: #34d399;
    --sikat-amber: #f8c15c;
    --sikat-rose: #fb7185;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% -10%, rgba(124, 140, 248, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 2%, rgba(56, 189, 248, 0.12), transparent 24rem),
        linear-gradient(180deg, #080b12 0%, #07090f 46%, #090c12 100%);
    color: var(--sikat-text);
    font-family: "Geist Variable", "Geist", "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    background:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.sikat-navbar {
    min-height: 76px;
    background: rgba(7, 9, 15, 0.68);
    border-bottom: 1px solid var(--sikat-border);
    backdrop-filter: blur(18px);
}

.sikat-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

.brand-mark,
.account-avatar,
.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7687f5, #58c7f3);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(88, 199, 243, 0.18);
}

.brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
}

.brand-subtitle {
    color: var(--sikat-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.sikat-navbar .nav-link {
    color: var(--sikat-muted);
    font-weight: 650;
}

.sikat-navbar .nav-link:hover,
.sikat-navbar .nav-link.active {
    color: #ffffff;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    color: var(--sikat-text);
    background: rgba(17, 22, 32, 0.78);
    border: 1px solid var(--sikat-border);
    border-radius: 999px;
}

.account-trigger:hover,
.account-trigger:focus-visible {
    color: #ffffff;
    background: rgba(25, 31, 43, 0.9);
    border-color: var(--sikat-border-strong);
}

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(124, 140, 248, 0.22);
    color: #dfe5ff;
    font-size: 0.88rem;
    font-weight: 750;
}

.account-meta {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.account-meta span {
    font-size: 0.88rem;
    font-weight: 700;
}

.account-meta small {
    max-width: 170px;
    overflow: hidden;
    color: var(--sikat-muted);
    font-size: 0.73rem;
    text-overflow: ellipsis;
}

.account-menu {
    padding: 0.45rem;
    background: #111620;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.account-menu .dropdown-item {
    color: var(--sikat-soft);
    border-radius: 6px;
    font-weight: 600;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus {
    color: #ffffff;
    background: rgba(124, 140, 248, 0.15);
}

.account-menu .dropdown-divider {
    border-color: var(--sikat-border);
}

.dashboard-hero {
    padding: 4rem 0 2rem;
}

.eyebrow,
.app-code,
.access-note,
.section-subtitle {
    color: var(--sikat-muted);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 4vw, 4.75rem);
    font-weight: 800;
    line-height: 0.95;
}

.dashboard-copy {
    max-width: 720px;
    margin: 1.1rem 0 0;
    color: var(--sikat-soft);
    font-size: 1.03rem;
    line-height: 1.75;
}

.gateway-summary,
.toolbar-panel,
.application-card,
.empty-state {
    border: 1px solid var(--sikat-border);
    background: var(--sikat-panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.gateway-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 8px;
}

.gateway-summary > div {
    padding: 1.1rem;
}

.gateway-summary > div + div {
    border-left: 1px solid var(--sikat-border);
}

.summary-value,
.summary-label {
    display: block;
}

.summary-value {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.summary-label {
    margin-top: 0.45rem;
    color: var(--sikat-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.toolbar-panel {
    padding: 0.9rem;
    border-radius: 8px;
}

.search-control {
    min-height: 48px;
    color: #ffffff;
    background: rgba(7, 9, 15, 0.78);
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
}

.search-control::placeholder {
    color: #697586;
}

.search-control:focus {
    color: #ffffff;
    background: rgba(7, 9, 15, 0.95);
    border-color: rgba(124, 140, 248, 0.62);
    box-shadow: 0 0 0 0.22rem rgba(124, 140, 248, 0.14);
}

.applications-section {
    padding: 1.5rem 0 4.5rem;
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 0.94rem;
}

.application-card {
    position: relative;
    display: flex;
    min-height: 285px;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 8px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.application-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(124, 140, 248, 0.2), transparent 44%);
    opacity: 0.72;
    pointer-events: none;
}

.application-card:hover {
    transform: translateY(-3px);
    border-color: var(--sikat-border-strong);
    background: rgba(21, 27, 38, 0.92);
}

.application-card > * {
    position: relative;
    z-index: 1;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    background: rgba(124, 140, 248, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-pill {
    padding: 0.32rem 0.55rem;
    color: var(--sikat-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sikat-border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 750;
}

.app-content {
    padding: 1.45rem 0;
}

.app-code {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.app-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
}

.app-content p {
    margin: 0.85rem 0 0;
    color: var(--sikat-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--sikat-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.launch-button {
    min-width: 84px;
    color: #07111f;
    background: #f8fafc;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
}

.launch-button:hover,
.launch-button:focus {
    color: #07111f;
    background: #dbeafe;
}

.accent-cyan::before {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent 44%);
}

.accent-cyan .app-icon {
    background: rgba(56, 189, 248, 0.22);
}

.accent-green::before {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), transparent 44%);
}

.accent-green .app-icon {
    background: rgba(52, 211, 153, 0.2);
}

.accent-amber::before {
    background: linear-gradient(135deg, rgba(248, 193, 92, 0.2), transparent 44%);
}

.accent-amber .app-icon {
    background: rgba(248, 193, 92, 0.2);
}

.accent-blue::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), transparent 44%);
}

.accent-blue .app-icon {
    background: rgba(96, 165, 250, 0.2);
}

.accent-rose::before {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), transparent 44%);
}

.accent-rose .app-icon {
    background: rgba(251, 113, 133, 0.18);
}

.empty-state {
    margin-top: 1.5rem;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.empty-state p {
    color: var(--sikat-muted);
}

.auth-shell,
.welcome-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% -8%, rgba(124, 140, 248, 0.2), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(56, 189, 248, 0.12), transparent 24rem),
        linear-gradient(180deg, #080b12 0%, #07090f 100%);
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(100%, 430px);
    padding: 1.35rem;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(18, 22, 31, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.auth-heading {
    margin: 2rem 0 1.5rem;
}

.auth-heading h1,
.welcome-content h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.08;
}

.auth-heading h1 {
    font-size: 1.7rem;
}

.auth-heading p {
    margin: 0.55rem 0 0;
    color: var(--sikat-muted);
    font-size: 0.94rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--sikat-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-control {
    min-height: 46px;
    color: #ffffff;
    background: rgba(7, 9, 15, 0.72);
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
}

.auth-control:focus {
    color: #ffffff;
    background: rgba(7, 9, 15, 0.92);
    border-color: rgba(124, 140, 248, 0.62);
    box-shadow: 0 0 0 0.22rem rgba(124, 140, 248, 0.14);
}

.auth-control.is-invalid {
    border-color: rgba(251, 113, 133, 0.82);
}

.auth-error {
    margin-top: 0.45rem;
    color: #fda4af;
    font-size: 0.8rem;
    font-weight: 650;
}

.auth-alert {
    padding: 0.8rem 0.95rem;
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 8px;
    font-size: 0.88rem;
}

.auth-alert-danger {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.24);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sikat-muted);
    font-size: 0.88rem;
    font-weight: 650;
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--sikat-primary);
}

.auth-button,
.auth-button-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}

.auth-button {
    color: #07111f;
    background: #f8fafc;
    border: 1px solid #f8fafc;
}

.auth-button:hover,
.auth-button:focus {
    color: #07111f;
    background: #dbeafe;
    border-color: #dbeafe;
}

.auth-button-secondary {
    color: var(--sikat-soft);
    background: rgba(17, 22, 32, 0.72);
    border: 1px solid var(--sikat-border);
}

.auth-button-secondary:hover,
.auth-button-secondary:focus {
    color: #ffffff;
    background: rgba(25, 31, 43, 0.9);
    border-color: var(--sikat-border-strong);
}

.auth-switch {
    margin: 1.15rem 0 0;
    color: var(--sikat-muted);
    font-size: 0.9rem;
    text-align: center;
}

.auth-switch a {
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #dbeafe;
}

.welcome-shell {
    display: flex;
    flex-direction: column;
}

.welcome-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: 1.15rem 0;
}

.welcome-actions,
.welcome-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.welcome-content {
    display: flex;
    width: min(100% - 2rem, 780px);
    min-height: calc(100vh - 86px);
    margin: 0 auto;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0 6rem;
    text-align: center;
}

.welcome-content h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
}

.welcome-content p {
    max-width: 640px;
    margin: 1.1rem auto 0;
    color: var(--sikat-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.welcome-cta {
    justify-content: center;
    margin-top: 1.8rem;
}

.admin-dashboard {
    min-height: calc(100vh - 76px);
    padding: 4rem 0 5rem;
}

.admin-header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.admin-header p {
    margin: 0.9rem 0 0;
    color: var(--sikat-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-setting-section {
    padding: 1.2rem;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(18, 22, 31, 0.54);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.admin-setting-section h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-menu-list {
    display: grid;
    gap: 0.7rem;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: 0.95rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(7, 9, 15, 0.42);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-menu-item:hover,
.admin-menu-item:focus-visible {
    transform: translateY(-2px);
    border-color: var(--sikat-border-strong);
    background: rgba(25, 31, 43, 0.74);
}

.admin-menu-item strong,
.admin-menu-item small {
    display: block;
}

.admin-menu-item strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
}

.admin-menu-item small {
    margin-top: 0.25rem;
    color: var(--sikat-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-menu-arrow {
    color: var(--sikat-muted);
    font-size: 1.1rem;
}

.admin-page-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-filter-panel,
.admin-table-card {
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(18, 22, 31, 0.54);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.admin-filter-panel {
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.admin-table-card {
    overflow: hidden;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--sikat-soft);
    --bs-table-border-color: var(--sikat-border);
    min-width: 1040px;
}

.admin-table thead th {
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: rgba(7, 9, 15, 0.62);
    border-bottom: 1px solid var(--sikat-border);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table tbody td {
    padding: 0.95rem 1rem;
    color: var(--sikat-soft);
    border-color: var(--sikat-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.admin-apps-table {
    min-width: 880px;
}

.admin-table-link {
    color: #dbeafe;
    text-decoration: none;
}

.admin-table-link:hover {
    color: #ffffff;
}

.app-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.app-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-logo-preview.is-large {
    width: 72px;
    height: 72px;
}

.form-help {
    display: block;
    margin-top: 0.45rem;
    color: var(--sikat-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-badge.is-active {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.13);
    border: 1px solid rgba(52, 211, 153, 0.24);
}

.status-badge.is-inactive {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.24);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.table-action-button {
    min-height: 32px;
    padding: 0.35rem 0.55rem;
    color: var(--sikat-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sikat-border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

.table-action-button:hover,
.table-action-button:focus {
    color: #ffffff;
    background: rgba(124, 140, 248, 0.15);
    border-color: var(--sikat-border-strong);
}

.table-action-button.is-danger {
    color: #fecdd3;
}

.table-action-button.is-danger:hover,
.table-action-button.is-danger:focus {
    background: rgba(251, 113, 133, 0.14);
    border-color: rgba(251, 113, 133, 0.28);
}

.table-action-button.is-success {
    color: #bbf7d0;
}

.table-action-button.is-success:hover,
.table-action-button.is-success:focus {
    background: rgba(52, 211, 153, 0.13);
    border-color: rgba(52, 211, 153, 0.24);
}

.admin-empty-table {
    display: grid;
    gap: 0.25rem;
    padding: 2rem;
    color: var(--sikat-muted);
    text-align: center;
}

.admin-empty-table strong {
    color: #ffffff;
}

.excel-paste-area {
    min-height: 112px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.55;
}

.bulk-user-card {
    margin-top: 1rem;
}

.bulk-user-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--sikat-border);
    background: rgba(7, 9, 15, 0.38);
}

.bulk-user-toolbar strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.bulk-user-actions,
.admin-page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bulk-user-table {
    min-width: 1520px;
}

.project-table-scroll .bulk-user-table {
    min-width: 1840px;
}

.module-table-scroll .bulk-user-table {
    min-width: 1280px;
}

.project-module-project-table {
    min-width: 620px;
}

.project-module-project-row.is-selected td {
    background: rgba(124, 140, 248, 0.12);
}

.project-module-module-scroll {
    max-height: 360px;
    overflow: auto;
}

.project-module-module-table {
    min-width: 620px;
}

.project-module-module-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.project-module-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
}

.project-module-check input,
.module-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--sikat-primary);
}

.batch-user-table {
    min-width: 1460px;
}

.project-form-card,
.module-form-card {
    display: flex;
    height: 300px;
    flex-direction: column;
}

.project-table-scroll,
.module-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.project-table-scroll .admin-table thead th,
.module-table-scroll .admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.project-category-filter,
.module-category-filter {
    width: 210px;
    min-height: 44px;
}

.bulk-user-table .auth-control {
    min-height: 40px;
    min-width: 150px;
    font-size: 0.86rem;
}

.bulk-user-table th:first-child,
.bulk-user-table td:first-child {
    width: 70px;
    text-align: center;
}

.bulk-user-table th:last-child,
.bulk-user-table td:last-child {
    width: 100px;
}

.readonly-id {
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    color: var(--sikat-muted);
    font-weight: 800;
}

.admin-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-edit-form {
    max-width: 980px;
}

.access-mode-switch {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.access-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.access-check-list {
    grid-template-columns: 1fr;
    max-width: 860px;
}

.access-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 88px;
    padding: 1rem;
    color: inherit;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(18, 22, 31, 0.54);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.access-check-item:hover {
    border-color: var(--sikat-border-strong);
    background: rgba(25, 31, 43, 0.74);
}

.access-check-item input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: var(--sikat-primary);
}

.access-check-item strong,
.access-check-item small {
    display: block;
}

.access-check-item strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.access-check-item small {
    margin-top: 0.25rem;
    color: var(--sikat-muted);
    font-size: 0.8rem;
    line-height: 1.35;
    word-break: break-word;
}

.simple-dashboard {
    min-height: calc(100vh - 76px);
    padding: 3rem 0 5rem;
}

.simple-dashboard-header {
    margin-bottom: 2.8rem;
}

.simple-dashboard-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.25;
}

.simple-section-layout {
    max-width: 1120px;
    margin: 0 auto;
}

.simple-app-section {
    padding: 1.2rem;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(18, 22, 31, 0.42);
}

.simple-app-section h2 {
    margin: 0 0 1.2rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 780;
}

.simple-app-grid {
    display: grid;
    gap: 1.65rem 1.1rem;
    justify-items: center;
}

.simple-app-grid-side {
    grid-template-columns: repeat(3, minmax(62px, 1fr));
}

.simple-app-grid-panel {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.simple-app-link {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    color: var(--sikat-soft);
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease;
}

.simple-app-link:hover,
.simple-app-link:focus-visible {
    color: #ffffff;
    transform: translateY(-3px);
}

.simple-app-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid var(--sikat-border-strong);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(17, 22, 32, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850;
    overflow: hidden;
}

.simple-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-app-name {
    max-width: 96px;
    color: currentColor;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.25;
}

.simple-empty-apps {
    grid-column: 1 / -1;
    padding: 0.85rem;
    color: var(--sikat-muted);
    border: 1px dashed var(--sikat-border);
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 650;
    text-align: center;
}

.simple-app-logo.accent-violet {
    box-shadow: inset 0 0 0 1px rgba(124, 140, 248, 0.2), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #cfd6ff;
}

.simple-app-logo.accent-cyan {
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #bae6fd;
}

.simple-app-logo.accent-green {
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #bbf7d0;
}

.simple-app-logo.accent-amber {
    box-shadow: inset 0 0 0 1px rgba(248, 193, 92, 0.22), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #fde68a;
}

.simple-app-logo.accent-blue {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #bfdbfe;
}

.simple-app-logo.accent-rose {
    box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.22), 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #fecdd3;
}

.organization-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.organization-table-card,
.organization-tree-card {
    min-width: 0;
}

.organization-count,
.organization-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--sikat-border);
    border-radius: 999px;
    color: var(--sikat-soft);
    background: rgba(124, 140, 248, 0.12);
    font-size: 0.78rem;
    font-weight: 750;
}

.organization-user-meta,
.organization-person small {
    display: block;
    margin-top: 0.25rem;
    color: var(--sikat-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.organization-edit-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.organization-tree-scroll {
    overflow-x: auto;
    padding: 0.4rem 0.2rem 0.7rem;
}

.organization-tree,
.organization-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.organization-tree ul {
    margin-left: 1.1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--sikat-border-strong);
}

.organization-tree-node {
    position: relative;
    min-width: 280px;
    padding-top: 0.75rem;
}

.organization-tree-node::before {
    content: "";
    position: absolute;
    top: 2.2rem;
    left: -1rem;
    width: 1rem;
    border-top: 1px solid var(--sikat-border-strong);
}

.organization-tree > .organization-tree-node::before {
    display: none;
}

.organization-person {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--sikat-border);
    border-radius: 8px;
    background: rgba(17, 22, 32, 0.8);
}

.organization-person strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.organization-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.18);
    font-size: 0.85rem;
    font-weight: 850;
}

.organization-cycle-warning {
    color: #fecdd3 !important;
}

.organization-page {
    min-height: calc(100vh - 76px);
    padding: 1.5rem 0 3rem;
    background: #eee9df;
    color: #1f1714;
}

.organization-page .auth-alert {
    color: #6f3a2f;
    background: #fffaf4;
    border-color: #e5d7ca;
}

.organization-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.organization-header h1 {
    margin: 0;
    color: #080605;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.15;
}

.organization-header p {
    margin: 0.35rem 0 0;
    color: #7e6159;
    font-size: 0.9rem;
    font-weight: 550;
}

.organization-view-switch {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid #d8cabe;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
}

.organization-view-switch button,
.organization-filters button {
    min-height: 30px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #6f3a2f;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 750;
}

.organization-view-switch button {
    padding: 0.25rem 0.85rem;
}

.organization-view-switch button.is-active,
.organization-filters button.is-active {
    color: #ffffff;
    background: #9c4b3e;
}

.organization-view-switch button.is-active {
    color: #8d4237;
    background: #f4eae3;
}

.organization-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.organization-filters button {
    padding: 0.35rem 0.95rem;
    border-color: #d8cabe;
    background: rgba(255, 255, 255, 0.8);
}

.organization-filters span {
    color: #a1796d;
    font-size: 0.82rem;
    font-weight: 650;
}

.organization-table-card,
.organization-tree-card {
    overflow: hidden;
    border: 1px solid #e6ded5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.organization-table {
    --bs-table-bg: transparent;
    min-width: 1180px;
    color: #15110f;
}

.organization-table thead th {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e6ded5;
    color: #a06d61;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.organization-table tbody td {
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid #ece4dc;
    color: #211714;
    font-size: 0.88rem;
    vertical-align: middle;
}

.organization-table tbody tr:hover td {
    background: #fffaf4;
}

.organization-table tbody td:first-child {
    color: #9f7469;
    width: 64px;
}

.organization-employee,
.organization-person-inline,
.organization-subordinate-stack {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.organization-employee strong,
.organization-job {
    color: #080605;
    font-size: 0.92rem;
    font-weight: 750;
}

.organization-table small {
    display: block;
    margin-top: 0.18rem;
    color: #9f7469;
    font-size: 0.78rem;
}

.organization-round-avatar,
.organization-mini-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--avatar-color, #9c4b3e);
    font-weight: 850;
}

.organization-round-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.organization-mini-avatar {
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 0.62rem;
}

.organization-avatar-stack {
    display: inline-flex;
}

.organization-avatar-stack .organization-mini-avatar + .organization-mini-avatar {
    margin-left: -0.45rem;
}

.organization-level-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    color: #9c4b3e;
    background: #f3e9e4;
    font-size: 0.75rem;
    font-weight: 850;
}

.organization-level-pill.is-staff {
    color: #057347;
    background: #eaf8ef;
}

.organization-level-pill.is-head {
    color: #2563eb;
    background: #eaf1ff;
}

.organization-level-pill.is-c-level {
    color: #7c2d12;
    background: #fff1df;
}

.organization-muted {
    color: #b28d82;
}

.organization-edit-button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.45rem;
    border: 0;
    color: #7d4c42;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 750;
}

.organization-edit-button:hover,
.organization-edit-button:focus {
    color: #9c4b3e;
}

.organization-tree-card {
    padding: 1.25rem;
}

.organization-page .organization-tree ul {
    border-color: #d8cabe;
}

.organization-page .organization-tree-node::before {
    border-color: #d8cabe;
}

.organization-page .organization-person {
    border-color: #e6ded5;
    background: #ffffff;
}

.organization-page .organization-person strong {
    color: #080605;
}

.organization-page .organization-avatar {
    color: #ffffff;
    background: #9c4b3e;
}

.organization-page .organization-badge {
    border-color: #e6ded5;
    color: #8d4237;
    background: #f7ece6;
}

.organization-modal .modal-content {
    border: 1px solid #e6ded5;
    border-radius: 12px;
    color: #1f1714;
    background: #fffaf4;
}

.organization-modal .modal-header,
.organization-modal .modal-footer {
    border-color: #e6ded5;
}

.organization-modal .modal-title {
    margin: 0;
    color: #080605;
    font-size: 1.15rem;
    font-weight: 850;
}

.organization-modal .modal-header p {
    margin: 0.25rem 0 0;
    color: #7e6159;
    font-size: 0.85rem;
}

.organization-modal .auth-label {
    color: #7e6159;
}

.organization-modal .auth-control {
    color: #1f1714;
    background: #ffffff;
    border-color: #d8cabe;
}

.organization-modal select.auth-control {
    min-height: 210px;
}

.organization-page {
    color: var(--sikat-text);
    background: transparent;
}

.organization-page .auth-alert {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.22);
}

.organization-header h1 {
    color: #ffffff;
}

.organization-header p,
.organization-filters span,
.organization-table small,
.organization-modal .modal-header p,
.organization-modal .auth-label {
    color: var(--sikat-muted);
}

.organization-view-switch {
    border-color: var(--sikat-border);
    background: rgba(17, 22, 32, 0.78);
}

.organization-view-switch button,
.organization-filters button {
    color: var(--sikat-soft);
}

.organization-view-switch button.is-active,
.organization-filters button.is-active {
    color: #ffffff;
    background: rgba(124, 140, 248, 0.72);
}

.organization-view-switch button.is-active {
    background: rgba(124, 140, 248, 0.24);
}

.organization-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.organization-employee-search {
    display: grid;
    gap: 0.35rem;
    min-width: min(360px, 100%);
}

.organization-employee-search span {
    color: var(--sikat-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.organization-employee-search .auth-control {
    color: var(--sikat-text);
    background: rgba(17, 22, 32, 0.82);
    border-color: var(--sikat-border);
}

.organization-filters {
    margin-bottom: 0;
}

.organization-filters button {
    border-color: var(--sikat-border);
    background: rgba(17, 22, 32, 0.78);
}

.organization-table-card,
.organization-tree-card {
    border-color: var(--sikat-border);
    background: rgba(17, 22, 32, 0.78);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.organization-table {
    color: var(--sikat-text);
}

.organization-table thead th {
    border-bottom-color: var(--sikat-border);
    color: var(--sikat-muted);
    background: rgba(15, 19, 28, 0.8);
}

.organization-table tbody td {
    border-bottom-color: var(--sikat-border);
    color: var(--sikat-soft);
}

.organization-table tbody tr:hover td {
    background: rgba(124, 140, 248, 0.08);
}

.organization-table tbody td:first-child,
.organization-muted {
    color: var(--sikat-muted);
}

.organization-employee strong,
.organization-job,
.organization-page .organization-person strong,
.organization-modal .modal-title {
    color: #ffffff;
}

.organization-mini-avatar {
    border-color: #111620;
}

.organization-level-pill {
    color: #dfe5ff;
    background: rgba(124, 140, 248, 0.16);
}

.organization-level-pill.is-staff {
    color: #bbf7d0;
    background: rgba(52, 211, 153, 0.14);
}

.organization-level-pill.is-head {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.14);
}

.organization-level-pill.is-c-level {
    color: #fde68a;
    background: rgba(248, 193, 92, 0.14);
}

.organization-edit-button {
    color: #dfe5ff;
}

.organization-edit-button:hover,
.organization-edit-button:focus {
    color: #ffffff;
}

.organization-page .organization-tree ul,
.organization-page .organization-tree-node::before {
    border-color: var(--sikat-border-strong);
}

.organization-page .organization-person {
    border-color: var(--sikat-border);
    background: rgba(17, 22, 32, 0.8);
}

.organization-page .organization-avatar {
    background: rgba(124, 140, 248, 0.32);
}

.organization-page .organization-badge {
    border-color: var(--sikat-border);
    color: #dfe5ff;
    background: rgba(124, 140, 248, 0.16);
}

.organization-modal .modal-content {
    border-color: var(--sikat-border);
    color: var(--sikat-text);
    background: #111620;
}

.organization-modal .modal-header,
.organization-modal .modal-footer {
    border-color: var(--sikat-border);
}

.organization-modal .auth-control {
    color: var(--sikat-text);
    background: rgba(7, 9, 15, 0.78);
    border-color: var(--sikat-border);
}

@media (max-width: 991.98px) {
    .sikat-navbar {
        min-height: 68px;
    }

    .account-trigger {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .dashboard-hero {
        padding-top: 3rem;
    }

    .simple-app-grid-side {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }

    .simple-app-grid-panel {
        grid-template-columns: repeat(2, minmax(84px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .brand-copy,
    .account-meta {
        max-width: 190px;
    }

    .organization-edit-form,
    .organization-person {
        grid-template-columns: 1fr;
    }

    .organization-tree-node {
        min-width: 240px;
    }

    .dashboard-title {
        font-size: 2.35rem;
    }

    .gateway-summary {
        grid-template-columns: 1fr;
    }

    .gateway-summary > div + div {
        border-top: 1px solid var(--sikat-border);
        border-left: 0;
    }

    .application-card {
        min-height: 260px;
    }

    .auth-card {
        padding: 1.1rem;
    }

    .welcome-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-actions {
        width: 100%;
    }

    .welcome-actions .btn {
        flex: 1;
    }

    .welcome-content {
        min-height: auto;
        padding: 4rem 0 5rem;
        text-align: left;
    }

    .welcome-content p {
        margin-left: 0;
    }

    .welcome-cta {
        justify-content: flex-start;
    }

    .admin-dashboard {
        padding-top: 3rem;
    }

    .admin-settings-grid {
        grid-template-columns: 1fr;
    }

    .organization-layout {
        grid-template-columns: 1fr;
    }

    .organization-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .organization-employee-search {
        min-width: 100%;
    }

    .admin-page-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-actions {
        justify-content: flex-start;
    }

    .admin-form-footer,
    .bulk-user-toolbar,
    .bulk-user-actions,
    .admin-page-actions,
    .access-mode-switch {
        align-items: stretch;
        flex-direction: column;
    }

    .access-check-grid {
        grid-template-columns: 1fr;
    }

    .simple-dashboard {
        padding-top: 3rem;
    }

    .simple-dashboard-header {
        margin-bottom: 2.35rem;
    }

    .simple-app-section {
        padding: 1rem;
    }

    .simple-app-section h2 {
        margin-bottom: 1rem;
        text-align: center;
    }

    .simple-app-grid-side {
        grid-template-columns: repeat(3, minmax(68px, 1fr));
    }

    .simple-app-grid-panel {
        grid-template-columns: repeat(2, minmax(88px, 1fr));
        gap: 1.55rem 0.9rem;
    }

    .simple-app-logo {
        width: 58px;
        height: 58px;
        font-size: 0.92rem;
    }

    .simple-app-name {
        font-size: 0.82rem;
    }
}
