* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #e6e6e6;
    background:
        linear-gradient(rgba(9, 12, 18, 0.74), rgba(9, 12, 18, 0.82)),
        url("assets/background.png") center center / cover no-repeat fixed,
        radial-gradient(circle at top, rgba(79, 140, 255, 0.22), transparent 32%),
        linear-gradient(180deg, #090c12 0%, #0d1117 48%, #090c12 100%);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.page-shell--with-sidebar {
    width: min(1320px, calc(100% - 32px));
}

.page-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 20px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.is-active {
    color: #fff;
    border-color: rgba(79, 140, 255, 0.45);
    background: rgba(79, 140, 255, 0.16);
}

.page-body__main {
    min-width: 0;
}

.account-page {
    padding: 26px 28px 32px;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.account-tab {
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.account-tab:hover {
    color: #fff;
}

.account-tab.is-active {
    color: #fff;
    border-color: rgba(79, 140, 255, 0.45);
    background: rgba(79, 140, 255, 0.14);
}

.account-title {
    margin: 0 0 18px;
    font-size: 26px;
    color: #fff;
}

.account-subtitle {
    margin: 22px 0 10px;
    font-size: 17px;
    color: #fff;
}

.account-section:first-of-type .account-subtitle {
    margin-top: 0;
}

.account-user-summary {
    margin-bottom: 18px;
}

.account-meta {
    margin-bottom: 12px;
}

.account-hint {
    margin: 0 0 18px;
    max-width: 640px;
}

.account-actions {
    max-width: 420px;
}

.account-inline-form {
    margin: 12px 0 18px;
}

.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-eyebrow {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    margin-bottom: 4px;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.page-topbar--minimal {
    justify-content: flex-end;
    padding: 12px 14px;
}

.language-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.language-select__label {
    font-size: 13px;
}

.language-select__control {
    min-width: 88px;
    padding: 10px 36px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.language-select__control option {
    color: #111;
}

.ghost-link {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ghost-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
    gap: 26px;
    align-items: stretch;
}

.login-page {
    width: min(440px, 100%);
    margin: 72px auto 0;
}

.login-page__card {
    padding: 28px;
}

.login-page__title {
    margin: 0 0 20px;
    font-size: 28px;
    color: #fff;
    text-align: center;
}

.login-page__actions {
    display: grid;
    gap: 12px;
}

.login-page__aux {
    margin-top: 16px;
    text-align: center;
}

.login-page__back {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.login-page__back:hover {
    color: #fff;
}

.glass-card {
    background: linear-gradient(180deg, rgba(24, 28, 38, 0.82), rgba(15, 18, 27, 0.72));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.hero-panel {
    padding: 34px;
    display: grid;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.hero-panel__intro {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    margin: 0 0 12px;
    color: #fff;
}

.hero-copy,
.card-copy,
.muted {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.hero-copy {
    max-width: 62ch;
    margin: 0;
}

.hero-stat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hero-stat {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-stat__value {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
}

.hero-stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-provider-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.hero-provider-pill .provider-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.feature-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.login-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.9), rgba(12, 15, 24, 0.86));
}

.card-title {
    margin: 0 0 8px;
    font-size: 26px;
    color: #fff;
}

.card-copy {
    margin: 0 0 22px;
}

.info-section {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-section--accent {
    background:
        linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
}

.info-section--compact {
    padding-top: 16px;
    padding-bottom: 16px;
}

.section-copy {
    margin: 0 0 12px;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-success {
    background: rgba(60, 180, 110, 0.16);
    border-color: rgba(60, 180, 110, 0.3);
}

.notice-error {
    background: rgba(255, 80, 80, 0.16);
    border-color: rgba(255, 80, 80, 0.32);
}

.notice-info {
    background: rgba(79, 140, 255, 0.16);
    border-color: rgba(79, 140, 255, 0.3);
}

.provider-stack,
.action-stack {
    display: grid;
    gap: 12px;
}

.provider-button,
.primary-button,
.secondary-button,
.danger-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.provider-button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.provider-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.provider-button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.provider-button:not(.is-disabled):hover,
.secondary-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-button[data-provider="google"] .provider-icon {
    background: rgba(255, 255, 255, 0.12);
}

.provider-button[data-provider="discord"] .provider-icon {
    background: rgba(88, 101, 242, 0.25);
}

.password-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 10, 18, 0.68);
    color: #fff;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.field-input:focus,
.language-select__control:focus {
    outline: 2px solid rgba(79, 140, 255, 0.45);
    outline-offset: 2px;
}

.field-input:focus {
    outline: 2px solid rgba(79, 140, 255, 0.45);
    outline-offset: 1px;
}

.password-submit {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
}

.small-hint {
    font-size: 12px;
    margin: 0 0 4px;
}

.otp-setup-panel {
    display: grid;
    gap: 16px;
}

.otp-qr-card {
    max-width: 280px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.otp-qr {
    display: grid;
    place-items: center;
    margin-top: 10px;
    padding: 12px;
    min-height: 220px;
    border-radius: 14px;
    background: #fff;
}

.otp-qr img,
.otp-qr svg {
    width: 100%;
    height: auto;
    max-width: 220px;
    display: block;
}

.provider-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.primary-button {
    background: #4f8cff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 140, 255, 0.24);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.danger-button {
    background: rgba(255, 80, 80, 0.18);
    border: 1px solid rgba(255, 80, 80, 0.28);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 80, 80, 0.16);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.status-chip-row,
.identity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-chip,
.identity-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.identity-chip strong,
.service-list strong {
    color: #fff;
}

.service-list {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.service-item {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item--hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.service-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.service-card-grid--spaced {
    margin-top: 18px;
}

.service-client-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.service-client-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.service-client-card__title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.service-client-card__meta {
    color: rgba(255, 255, 255, 0.68);
}

.service-client-card__meta code {
    display: inline-block;
    margin-top: 0;
}

.service-client-card__actions {
    display: flex;
}

.service-client-card__actions .secondary-button {
    width: auto;
    min-width: 140px;
}

.service-item code,
.code-block {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9ddff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.avatar-fallback {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.user-name {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.meta-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-row span:first-child {
    color: rgba(255, 255, 255, 0.62);
}

.consent-list {
    margin: 18px 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 8px;
}

.admin-tab {
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

.admin-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.admin-tab.is-active {
    color: #fff;
    border-color: rgba(79, 140, 255, 0.45);
    background: rgba(79, 140, 255, 0.18);
}

.admin-tabs--sub {
    margin-top: 22px;
    margin-bottom: 4px;
}

.admin-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 20px 0 12px;
}

.admin-oauth-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.admin-oauth-edit-id {
    margin: 0;
}

.admin-textarea {
    min-height: 88px;
    resize: vertical;
    font-family: inherit;
}

.admin-secret-once {
    word-break: break-all;
}

.admin-body {
    min-height: 100vh;
}

.admin-topbar {
    flex-wrap: wrap;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}

.admin-button-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.admin-card {
    padding: 28px;
    margin-top: 16px;
}

.admin-form {
    max-width: 420px;
}

.admin-form--wide {
    max-width: 760px;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.admin-table th {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.admin-action-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.admin-identity-list {
    margin: 0;
    padding-left: 18px;
}

.admin-identity-list li {
    margin-bottom: 6px;
}

.admin-compact-form {
    max-width: 220px;
}

.admin-tiny-button {
    padding: 4px 10px;
    font-size: 12px;
    margin-left: 6px;
}

.admin-oauth-actions {
    margin-top: 12px;
}

.admin-oauth-actions--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-custom-field-section {
    margin-top: 28px;
}

.admin-database-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 24px;
}

.admin-database-title {
    margin: 0 0 6px;
}

.admin-db-cell code {
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-db-actions-cell {
    white-space: nowrap;
}

.admin-db-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 18px 0 22px;
}

.admin-db-field {
    min-width: 0;
}

.admin-db-field-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-db-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.admin-logs-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: none;
    margin-top: 18px;
}

.admin-log-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.admin-log-badge--success {
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.32);
}

.admin-log-badge--error {
    background: rgba(231, 76, 60, 0.16);
    border-color: rgba(231, 76, 60, 0.32);
}

.admin-log-badge--denied {
    background: rgba(241, 196, 15, 0.16);
    border-color: rgba(241, 196, 15, 0.32);
}

.admin-log-badge--info {
    background: rgba(79, 140, 255, 0.16);
    border-color: rgba(79, 140, 255, 0.32);
}

.admin-log-details summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
}

.admin-log-details pre {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-log-message {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .page-topbar {
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-stat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .page-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: auto;
    }

    .page-topbar,
    .user-summary,
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ghost-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .page-shell,
    .page-shell--with-sidebar {
        width: min(100%, calc(100% - 20px));
    }

    .page-topbar,
    .hero-panel,
    .login-card,
    .service-item {
        padding: 18px;
    }

    .hero-stat-list {
        grid-template-columns: 1fr;
    }

    .hero-provider-pill,
    .provider-button,
    .primary-button,
    .secondary-button,
    .danger-button {
        width: 100%;
    }
}
