@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fc;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --side: linear-gradient(180deg, #2e3150 0%, #3f4068 100%);
    --line: rgba(79, 91, 130, 0.12);
    --text: #202638;
    --muted: #7e879f;
    --violet: #b870ff;
    --cyan: #45d6ff;
    --amber: #f4b73f;
    --mint: #4bc78f;
    --shadow: 0 24px 48px rgba(45, 58, 98, 0.12);
    --shadow-soft: 0 16px 30px rgba(45, 58, 98, 0.08);
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(24% 20% at 0% 0%, rgba(184, 112, 255, 0.12), transparent 72%),
        radial-gradient(24% 18% at 100% 0%, rgba(69, 214, 255, 0.1), transparent 72%),
        linear-gradient(180deg, #f8f9fd 0%, #eef2f8 100%);
}

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

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    padding: 28px 24px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    color: #384052;
    font-size: 14px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    background: #fffdf8;
    color: #1f2430;
    outline: none;
    font: inherit;
}

.field select,
.admin-select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    background: #fffdf8;
    color: #1f2430;
    outline: none;
    font: inherit;
}

.field textarea,
.admin-textarea {
    width: 100%;
    min-height: 124px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    background: #fffdf8;
    color: #1f2430;
    outline: none;
    font: inherit;
    resize: vertical;
}

.field input:focus {
    border-color: rgba(184, 112, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(184, 112, 255, 0.12);
}

.field select:focus,
.admin-select:focus {
    border-color: rgba(184, 112, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(184, 112, 255, 0.12);
}

.field textarea:focus,
.admin-textarea:focus {
    border-color: rgba(184, 112, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(184, 112, 255, 0.12);
}

.button {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #bc7dff 0%, #8f53dd 100%);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(143, 83, 221, 0.18);
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.flash.error {
    background: rgba(217, 75, 69, 0.08);
    border: 1px solid rgba(217, 75, 69, 0.16);
    color: #ad302a;
}

.flash.ok {
    background: rgba(75, 199, 143, 0.08);
    border: 1px solid rgba(75, 199, 143, 0.16);
    color: #0f8f59;
}

.admin-dashboard-frame {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    min-height: calc(100vh - 56px);
    align-items: start;
}

.admin-side-control,
.admin-middle-stage {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.admin-side-control {
    padding: 22px 18px;
    border-radius: 30px;
    background: var(--side);
    color: #f7f8ff;
}

.admin-side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-side-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #bd80ff 0%, #7f8dff 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(145, 98, 235, 0.2);
}

.admin-side-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.admin-side-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(247, 248, 255, 0.72);
    font-size: 12px;
}

.admin-side-nav {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-side-link,
.admin-side-logout {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(247, 248, 255, 0.86);
    display: flex;
    align-items: center;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.admin-side-link.is-active,
.admin-side-logout:hover {
    background: linear-gradient(90deg, rgba(189, 128, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: inset 3px 0 0 #d096ff;
    color: #ffffff;
}

.admin-middle-stage {
    padding: 18px;
    border-radius: 30px;
    background:
        radial-gradient(28% 18% at 0% 0%, rgba(184, 112, 255, 0.08), transparent 72%),
        radial-gradient(26% 18% at 100% 0%, rgba(69, 214, 255, 0.08), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96));
}

.admin-stage-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-stage-copy h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.admin-stage-copy p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.admin-side-logout {
    margin-top: 10px;
}

.admin-screen {
    display: block;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.admin-summary-card,
.admin-panel {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.admin-summary-card {
    min-height: 132px;
    padding: 18px 20px;
    border-radius: 24px;
    display: grid;
    align-content: space-between;
    color: #ffffff;
    text-decoration: none;
}

.admin-summary-card small {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.88;
}

.admin-summary-card strong {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-summary-card span {
    font-size: 12px;
    opacity: 0.9;
}

.admin-summary-card.violet {
    background: linear-gradient(135deg, #cf8dff 0%, #a85fec 100%);
}

.admin-summary-card.cyan {
    background: linear-gradient(135deg, #62ddff 0%, #2dbef4 100%);
}

.admin-summary-card.amber {
    background: linear-gradient(135deg, #f7cf72 0%, #f3b338 100%);
    color: #2d2109;
}

.admin-summary-card.amber small,
.admin-summary-card.amber span {
    color: rgba(45, 33, 9, 0.76);
    opacity: 1;
}

.admin-summary-card.mint {
    background: linear-gradient(135deg, #7bddb1 0%, #41bf87 100%);
}

.admin-middle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 14px;
}

.admin-users-layout {
    display: block;
}

.admin-panel {
    padding: 18px;
    border-radius: 24px;
    background: var(--panel);
}

.admin-panel-large {
    min-height: 320px;
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-panel-head strong {
    display: block;
    font-size: 16px;
}

.admin-panel-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.admin-panel-head em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(184, 112, 255, 0.12);
    color: #8048c1;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.admin-line-chart {
    position: relative;
    min-height: 248px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(241, 245, 255, 0.96));
}

.admin-chart-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(79, 91, 130, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 91, 130, 0.07) 1px, transparent 1px);
    background-size: calc(100% / 7) calc(100% / 6);
}

.admin-line {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    border-radius: 999px;
}

.admin-line-a {
    height: 140px;
    background: linear-gradient(180deg, rgba(69, 214, 255, 0.15), rgba(69, 214, 255, 0.5));
    clip-path: polygon(0% 84%, 10% 72%, 20% 56%, 34% 70%, 48% 44%, 60% 36%, 72% 50%, 84% 26%, 100% 40%, 100% 100%, 0% 100%);
}

.admin-line-b {
    bottom: 38px;
    height: 118px;
    background: linear-gradient(180deg, rgba(184, 112, 255, 0.14), rgba(184, 112, 255, 0.42));
    clip-path: polygon(0% 74%, 12% 62%, 24% 76%, 38% 54%, 52% 30%, 64% 54%, 78% 24%, 90% 44%, 100% 24%, 100% 100%, 0% 100%);
}

.admin-line-point {
    position: absolute;
    right: 24%;
    top: 34%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #59d9ff;
    box-shadow: 0 0 0 6px rgba(89, 217, 255, 0.18);
}

.admin-info-list {
    display: grid;
    gap: 12px;
}

.admin-info-list-tight {
    margin-top: 14px;
}

.admin-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f7f9ff;
}

.admin-info-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-info-row strong {
    font-size: 15px;
}

.admin-info-row .ok {
    color: var(--mint);
}

.admin-user-feed {
    display: grid;
    gap: 12px;
}

.admin-user-feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9ff;
}

.admin-user-feed-main,
.admin-user-feed-side {
    display: grid;
    gap: 5px;
}

.admin-user-feed-main strong,
.admin-user-feed-side strong {
    font-size: 15px;
    line-height: 1.1;
}

.admin-user-feed-main span,
.admin-user-feed-side span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-user-feed-side {
    text-align: right;
}

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

.admin-insight-card {
    min-height: 94px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
    border: 1px solid rgba(79, 91, 130, 0.08);
    display: grid;
    align-content: space-between;
}

.admin-insight-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-insight-card strong {
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-table-summary {
    display: grid;
    gap: 2px;
}

.admin-table-summary strong {
    font-size: 24px;
    line-height: 1;
}

.admin-table-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.admin-search-input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    border-radius: 14px;
    background: #fffdf8;
    color: #1f2430;
    outline: none;
    font: inherit;
}

.admin-search-input:focus {
    border-color: rgba(184, 112, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(184, 112, 255, 0.12);
}

.admin-search-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #bc7dff 0%, #8f53dd 100%);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(79, 91, 130, 0.08);
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

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

.admin-row-action,
.admin-secondary-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.admin-row-action {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.admin-row-action.edit {
    background: rgba(184, 112, 255, 0.12);
    color: #8548c7;
}

.admin-row-action.delete {
    background: rgba(217, 75, 69, 0.1);
    color: #bf3c36;
}

.admin-row-action.approve {
    background: rgba(75, 199, 143, 0.12);
    color: #178a58;
}

.admin-row-action.reject {
    background: rgba(244, 183, 63, 0.16);
    color: #9a6300;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-status-badge.is-pending {
    background: rgba(244, 183, 63, 0.16);
    color: #9a6300;
}

.admin-status-badge.is-approved {
    background: rgba(75, 199, 143, 0.12);
    color: #178a58;
}

.admin-status-badge.is-rejected {
    background: rgba(217, 75, 69, 0.1);
    color: #bf3c36;
}

.admin-edit-form {
    display: grid;
    gap: 14px;
}

.admin-edit-meta {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: #f7f9ff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

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

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 31, 55, 0.42);
    backdrop-filter: blur(10px);
}

.admin-modal-card {
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 91, 130, 0.14);
    box-shadow: 0 30px 80px rgba(28, 36, 63, 0.22);
}

.admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-modal-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.admin-modal-head span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.admin-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eef2ff;
    color: #6c43b7;
    text-decoration: none;
    font-size: 26px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(108, 67, 183, 0.08);
}

.admin-modal-close:hover {
    background: #e4e9ff;
}

.admin-form-actions .button {
    width: auto;
    min-width: 150px;
}

.admin-secondary-button {
    background: #eef2ff;
    color: #58617b;
}

.admin-empty-state {
    min-height: 220px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #f7f9ff;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.admin-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-page-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f4ff;
    color: #5e6782;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.admin-page-link.is-active {
    background: linear-gradient(135deg, #bc7dff 0%, #8f53dd 100%);
    color: #ffffff;
}

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

.admin-settings-card.is-wide {
    grid-column: 1 / -1;
}

.admin-settings-form {
    display: grid;
    gap: 14px;
}

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

.admin-file-input {
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(79, 91, 130, 0.22);
    background: #fffdf8;
}

.admin-image-preview {
    min-height: 170px;
    border-radius: 18px;
    border: 1px solid rgba(79, 91, 130, 0.08);
    overflow: hidden;
    background: #f7f9ff;
    display: grid;
    place-items: center;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    background: #f7f9ff;
}

.admin-image-placeholder {
    padding: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.admin-link-preview {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    background: #fffdf8;
    color: #4e5fb7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-all;
}

.admin-toggle-row {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(79, 91, 130, 0.14);
    background: #fffdf8;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #273046;
    font-size: 14px;
    font-weight: 700;
}

.admin-toggle-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.admin-helper-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-helper-note code {
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf1ff;
    color: #485596;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.admin-table-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(79, 91, 130, 0.12);
    background: #f5f7fc;
}

.admin-table-chip,
.admin-status-chip {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff3ff;
    color: #5e6782;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-chip.ok {
    background: rgba(75, 199, 143, 0.12);
    color: #17915c;
}

.admin-row-subcopy {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

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

.admin-health-chip {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    background: #f7f9ff;
    font-size: 14px;
    font-weight: 700;
}

.admin-health-chip.ok {
    color: var(--mint);
}

.admin-action-button {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #bc7dff 0%, #8f53dd 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .shell {
        width: min(100%, calc(100% - 24px));
    }

    .admin-dashboard-frame {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-side-control {
        padding: 18px;
    }

    .admin-side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .admin-middle-stage {
        padding: 16px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100%, calc(100% - 18px));
        padding: 12px 0 96px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .admin-dashboard-frame,
    .admin-summary-grid,
    .admin-middle-grid,
    .admin-settings-grid,
    .admin-settings-two {
        grid-template-columns: 1fr;
    }

    .admin-side-control,
    .admin-middle-stage {
        padding: 16px;
        border-radius: 24px;
    }

    .admin-side-brand {
        margin-bottom: 16px;
    }

    .admin-side-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 20px;
    }

    .admin-side-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 60;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 10px;
        border-radius: 22px;
        background: rgba(40, 43, 70, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 32px rgba(18, 22, 39, 0.28);
        backdrop-filter: blur(10px);
    }

    .admin-side-link,
    .admin-side-logout {
        min-height: 46px;
        padding: 0 10px;
        border-radius: 14px;
        white-space: normal;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        line-height: 1.1;
    }

    .admin-side-link.is-active,
    .admin-side-logout:hover {
        box-shadow: none;
        background: linear-gradient(135deg, rgba(189, 128, 255, 0.34), rgba(255, 255, 255, 0.08));
    }

    .admin-stage-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-stage-copy h1 {
        font-size: 28px;
    }

    .admin-stage-copy p {
        font-size: 13px;
    }

    .admin-middle-stage {
        padding-bottom: 18px;
    }

    .admin-summary-card {
        min-height: 118px;
        padding: 16px 18px;
    }

    .admin-summary-card strong {
        font-size: 30px;
    }

    .admin-panel {
        padding: 16px;
    }

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

    .admin-search-form {
        width: 100%;
    }

    .admin-search-input {
        flex: 1 1 auto;
    }

    .admin-search-button {
        width: auto;
        min-width: 96px;
        padding: 0 14px;
    }

    .admin-panel-head {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
    }

    .admin-user-feed-row {
        min-height: 0;
        padding: 12px 14px;
    }

    .admin-user-feed-main strong,
    .admin-user-feed-side strong {
        font-size: 14px;
    }

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

    .admin-info-row {
        min-height: 50px;
        padding: 12px 14px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(79, 91, 130, 0.08);
    }

    .admin-table tr:last-child {
        border-bottom: 0;
    }

    .admin-table td {
        border-bottom: 0;
        padding: 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-size: 13px;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .admin-form-actions .button,
    .admin-secondary-button {
        width: 100%;
    }

    .admin-modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .admin-modal-card {
        width: 100%;
        max-height: 88vh;
        padding: 18px 16px;
        border-radius: 24px 24px 18px 18px;
    }

    .admin-modal-head {
        margin-bottom: 16px;
    }

    .admin-modal-head strong {
        font-size: 17px;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-image-preview {
        min-height: 140px;
    }
}

.admin-mobile-menu-toggle,
.admin-mobile-menu-overlay,
.admin-mobile-menu-panel {
    display: none;
}

@media (max-width: 760px) {
    body.admin-mobile-menu-open {
        overflow: hidden;
    }

    .admin-side-control {
        display: none;
    }

    .admin-dashboard-frame {
        gap: 0;
    }

    .admin-middle-stage {
        margin-top: 54px;
    }

    .admin-mobile-menu-toggle {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 120;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 16px;
        background: linear-gradient(180deg, #3d416d 0%, #282b46 100%);
        color: #ffffff;
        box-shadow: 0 14px 28px rgba(18, 22, 39, 0.22);
        display: grid;
        place-items: center;
        gap: 3px;
        cursor: pointer;
    }

    .admin-mobile-menu-toggle span {
        width: 5px;
        height: 5px;
        border-radius: 999px;
        background: #ffffff;
        display: block;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .admin-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(18, 22, 39, 0.46);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .admin-mobile-menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 130;
        width: min(320px, calc(100% - 38px));
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px 14px 18px;
        background: linear-gradient(180deg, #2e3150 0%, #3f4068 100%);
        color: #f7f8ff;
        box-shadow: -24px 0 44px rgba(18, 22, 39, 0.28);
        transform: translateX(104%);
        transition: transform 0.24s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-mobile-menu-open .admin-mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .admin-mobile-menu-open .admin-mobile-menu-panel {
        transform: translateX(0);
    }

    .admin-mobile-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .admin-mobile-menu-panel .admin-side-brand {
        margin: 0;
    }

    .admin-mobile-menu-close {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font: inherit;
        font-size: 18px;
        font-weight: 900;
        cursor: pointer;
    }

    .admin-mobile-menu-panel .admin-side-nav {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .admin-mobile-menu-panel .admin-side-link,
    .admin-mobile-menu-panel .admin-side-logout {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        text-align: left;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 1.2;
        color: rgba(247, 248, 255, 0.9);
    }

    .admin-mobile-menu-panel .admin-side-link.is-active,
    .admin-mobile-menu-panel .admin-side-logout:hover {
        background: linear-gradient(90deg, rgba(189, 128, 255, 0.26), rgba(255, 255, 255, 0.08));
        box-shadow: inset 3px 0 0 #d096ff;
    }

    .admin-mobile-menu-panel .admin-side-logout {
        margin-top: auto;
        background: rgba(255, 255, 255, 0.08);
    }
}
