:root {
    --bg: #eef3f1;
    --sidebar: #102a24;
    --sidebar-text: #d8e8e0;
    --panel: #ffffff;
    --ink: #10201b;
    --muted: #5a6d66;
    --line: #d7e2de;
    --accent: #d97706;
    --accent-2: #1f7a5c;
    --radius: 22px;
    --shadow: 0 22px 48px rgba(16, 42, 36, 0.10);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }

.admin-body { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-body-guest {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(123, 99, 255, 0.22), transparent 26%),
        radial-gradient(circle at bottom right, rgba(31, 122, 92, 0.18), transparent 24%),
        linear-gradient(180deg, #f5f3ff 0%, #edf4f8 100%);
}
.admin-sidebar {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #1a0f49 0%, #2b1b72 52%, #3b26a1 100%);
    color: var(--sidebar-text);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    min-height: 100vh;
}
.admin-brand { display: flex; gap: 12px; align-items: center; }
.admin-brand .brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #dde4ff);
    color: #34208d;
    font-weight: 700;
}
.admin-brand small { color: rgba(216, 232, 224, 0.72); }
.admin-nav { display: grid; gap: 10px; }
.admin-nav a, .logout-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(216, 232, 224, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}
.admin-nav a.active, .admin-nav a:hover, .logout-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}
.logout-link { margin-top: auto; }
.admin-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #2f1598;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-main { padding: 32px; background: linear-gradient(180deg, #f5f4ff 0%, #edf3f7 100%); }
.admin-main-full {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px;
}
.admin-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-2); font-size: 12px; margin-bottom: 8px; }
.admin-header h1, .login-card h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.warning-box, .admin-flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #f6d29f;
    background: #fff7e8;
    color: #8b5308;
}

.admin-flash-success {
    border-color: #b7ebc6;
    background: #edfdf2;
    color: #17653a;
}

.admin-flash-error {
    border-color: #f4b5b5;
    background: #fff1f1;
    color: #9b1c1c;
}

.admin-flash-warning {
    border-color: #f6d29f;
    background: #fff7e8;
    color: #8b5308;
}

.admin-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-card, .admin-panel, .login-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.admin-card { padding: 22px; }
.admin-card span { color: var(--muted); display: block; margin-bottom: 10px; }
.admin-card strong { font-size: 1.7rem; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-panel { padding: 22px; }
.admin-panel h2 { margin-top: 0; }
.admin-users-layout { align-items: start; }

.locale-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.locale-tab {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 700;
}

.locale-tab:hover {
    border-color: var(--accent-2);
    color: var(--ink);
}

.locale-tab.is-active {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #ffffff;
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }

.form-status-row.is-read td {
    background: #ebfff1;
}

.form-status-row.is-unread td {
    background: #fff1f1;
}

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

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--ink);
    cursor: pointer;
}

.status-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
    cursor: pointer;
}

.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.admin-form input, .admin-form textarea, .admin-form select, .login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font: inherit;
    background: white;
    color: var(--ink);
}
.admin-form button, .login-form button {
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.inline-form { display: inline; margin: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

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

.admin-subpanel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    background: #fbfdfc;
    display: grid;
    gap: 12px;
}

.admin-subpanel h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.admin-stack {
    display: grid;
    gap: 18px;
}

.repeat-box {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 10px;
    background: #fff;
}

.repeat-box.compact {
    gap: 8px;
}

.helper-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.ai-blog-form {
    gap: 14px;
}

.ai-blog-status {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    color: var(--muted);
    min-height: 54px;
    display: flex;
    align-items: center;
}

.ai-blog-status.is-loading {
    background: #fbfdfc;
    color: var(--ink);
}

.ai-blog-status.is-success {
    border-color: #b7ebc6;
    background: #edfdf3;
    color: #17663f;
}

.ai-blog-status.is-error {
    border-color: #f4c7c3;
    background: #fff1f0;
    color: #b42318;
}

.settings-table-wrap {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

.settings-table-head {
    padding: 18px 18px 0;
}

.settings-table-head h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.settings-table {
    margin-top: 10px;
}

.settings-table th:first-child,
.settings-table td:first-child {
    width: 180px;
}

.settings-table th:nth-child(2),
.settings-table td:nth-child(2) {
    width: 42%;
}

.settings-table td input,
.settings-table td textarea,
.settings-table td select {
    width: 100%;
}

.settings-table-check {
    margin: 0;
}

.settings-table-actions {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
}

.media-field {
    display: grid;
    gap: 10px;
}

.media-field-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.media-upload-button {
    border: 1px solid var(--line);
    background: #f8fbfa;
    color: var(--ink);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.media-upload-button:hover {
    border-color: var(--accent-2);
}

.media-clear-button {
    background: #fff4f4;
    border-color: #f1c7c7;
    color: #a93737;
}

.media-clear-button:hover {
    border-color: #d97a7a;
}

.media-upload-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.media-upload-status.is-error {
    color: #b42318;
}

.media-preview {
    display: none;
    width: 100%;
    max-width: 260px;
    min-height: 90px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.media-preview.is-visible {
    display: block;
}

.media-preview img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.media-path {
    display: none;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted);
    word-break: break-all;
    background: #f8fbfa;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.media-path.is-visible {
    display: block;
}

.wysiwyg {
    display: grid;
    gap: 10px;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbfa;
}

.wysiwyg-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 8px;
    margin-right: 2px;
    border-right: 1px solid rgba(16, 32, 27, 0.08);
}

.wysiwyg-toolbar-group:last-child {
    border-right: none;
    padding-right: 0;
}

.wysiwyg-surface {
    display: grid;
}

.wysiwyg-toolbar button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}

.wysiwyg-toolbar button:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.wysiwyg-toolbar .wysiwyg-toggle.is-active {
    background: var(--accent-2);
    color: #fff;
    border-color: var(--accent-2);
}

.wysiwyg-toolbar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wysiwyg-editor {
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    padding: 16px;
    line-height: 1.7;
    outline: none;
}

.wysiwyg-editor:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.12);
}

.wysiwyg-editor .editor-figure {
    margin: 22px auto;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    clear: both;
}

.wysiwyg-editor .editor-figure.is-selected {
    outline: 3px solid rgba(31, 122, 92, 0.25);
    outline-offset: 6px;
}

.wysiwyg-editor .editor-figure.align-left {
    float: left;
    margin: 12px 24px 16px 0;
}

.wysiwyg-editor .editor-figure.align-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.wysiwyg-editor .editor-figure.align-right {
    float: right;
    margin: 12px 0 16px 24px;
}

.wysiwyg-editor .editor-figure.is-size-small {
    max-width: 220px;
}

.wysiwyg-editor .editor-figure.is-size-medium {
    max-width: 360px;
}

.wysiwyg-editor .editor-figure.is-size-large {
    max-width: 560px;
}

.wysiwyg-editor .editor-figure.is-size-full {
    max-width: 100%;
}

.wysiwyg-editor .editor-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.wysiwyg-editor .editor-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.wysiwyg-editor .editor-video-frame iframe,
.wysiwyg-editor .editor-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: 18px;
    pointer-events: none;
    user-select: none;
}

.wysiwyg-editor .editor-figure figcaption {
    pointer-events: none;
    user-select: none;
}

.wysiwyg-editor .editor-figure-handle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-2);
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(16, 32, 27, 0.18);
    cursor: nwse-resize;
    pointer-events: auto;
}

.wysiwyg-editor .editor-figure-handle::before,
.wysiwyg-editor .editor-figure-handle::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
}

.wysiwyg-editor .editor-figure-handle::before {
    width: 8px;
    height: 2px;
    top: 8px;
    left: 3px;
    transform: rotate(-45deg);
}

.wysiwyg-editor .editor-figure-handle::after {
    width: 2px;
    height: 8px;
    top: 4px;
    left: 8px;
    transform: rotate(-45deg);
}

body.is-editor-resizing {
    cursor: nwse-resize;
    user-select: none;
}

.wysiwyg-source {
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0f1720;
    color: #e8edf4;
    padding: 16px;
    font: 500 0.95rem/1.7 Consolas, "Courier New", monospace;
    resize: vertical;
    outline: none;
}

.wysiwyg-source:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.12);
}

.wysiwyg-helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.table-subtext {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.seo-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4efe5;
    color: #8b5308;
    font-size: 0.78rem;
    font-weight: 700;
}

.seo-chip.is-good {
    background: #e8f7ef;
    color: #1f7a5c;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.button-inline,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button-secondary {
    border: 1px solid var(--line);
    background: #f8fbfa;
    color: var(--ink);
}

.button-danger {
    border: 1px solid #f4c7c3;
    background: #fff1f0;
    color: #b42318;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-guide {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #fcfdfd;
}

.seo-guide strong {
    display: block;
    margin-bottom: 10px;
}

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

.theme-color-field {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.theme-color-field input[type="color"] {
    min-height: 44px;
    padding: 4px;
    cursor: pointer;
}

.theme-color-field input[readonly] {
    background: #f8fbfa;
    color: var(--ink);
    font-weight: 700;
}

.theme-preview-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.theme-preview-chip {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 8px;
}

.theme-preview-swatch {
    display: block;
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(16, 32, 27, 0.08);
}

.theme-preview-chip strong {
    font-size: 0.92rem;
}

.theme-preview-chip small {
    color: var(--muted);
    word-break: break-word;
}

.compact-list {
    gap: 8px;
    margin: 0;
}

.admin-toolbar-row {
    margin-top: 14px;
}

.live-seo-helper {
    margin-top: 8px;
}

.live-seo-card,
.live-seo-loading,
.live-seo-error {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdfc;
    padding: 16px;
}

.live-seo-loading {
    color: var(--muted);
    font-weight: 700;
}

.live-seo-error {
    color: #b42318;
    border-color: #f4c7c3;
    background: #fff1f0;
}

.live-seo-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.live-seo-top strong {
    display: block;
    font-size: 1.6rem;
    margin-top: 4px;
}

.live-seo-label,
.live-seo-route {
    color: var(--muted);
    font-size: 0.86rem;
}

.live-seo-route {
    word-break: break-all;
    text-align: right;
}

.live-seo-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.live-seo-metrics span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6f3;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 700;
}

.live-seo-section + .live-seo-section {
    margin-top: 14px;
}

.live-seo-section h4 {
    margin: 0 0 8px;
    font-size: 0.96rem;
}

.live-seo-section h5 {
    margin: 14px 0 10px;
    font-size: 0.9rem;
}

.live-seo-section p,
.live-seo-section ul {
    margin: 0;
    color: var(--muted);
}

.live-seo-section ul {
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.publish-checklist-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.publish-checklist-status.is-ready {
    background: #e8f7ef;
    color: #1f7a5c;
}

.publish-checklist-status.is-blocked {
    background: #fff1f0;
    color: #b42318;
}

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

.publish-check {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    display: grid;
    gap: 6px;
}

.publish-check strong {
    font-size: 0.9rem;
}

.publish-check span {
    color: var(--muted);
    font-size: 0.82rem;
}

.publish-check.is-pass {
    border-color: #cce9da;
    background: #f4fcf8;
}

.publish-check.is-fail {
    border-color: #f4c7c3;
    background: #fff6f5;
}

.publish-check.is-warn {
    border-color: #f6d29f;
    background: #fffaf0;
}

.publish-tech-note {
    margin-top: 12px;
    line-height: 1.6;
    font-size: 0.84rem;
}

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

.admin-media-seo-card strong {
    word-break: break-all;
}

.is-hidden-editor-source {
    display: none;
}

.simple-list { display: grid; gap: 12px; color: var(--muted); padding-left: 20px; }

.login-shell {
    width: min(1120px, 100%);
}

.login-card-auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    overflow: hidden;
    min-height: 680px;
}

.login-card-visual {
    position: relative;
    padding: 46px 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.10), transparent 26%),
        linear-gradient(145deg, #28156f 0%, #4a2ac7 54%, #726efc 100%);
    display: grid;
    align-content: start;
    gap: 22px;
}

.login-card-visual::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.login-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card-visual h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    line-height: 1.05;
    max-width: 10ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.login-card-visual p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.75;
}

.login-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.login-feature-item {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.login-feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.login-feature-item span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
    font-size: 0.94rem;
}

.login-card-form {
    padding: 52px 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
    display: grid;
    align-content: center;
}

.login-card-form h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    color: #120f2a;
}

.login-form-copy {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.login-form label span {
    font-weight: 700;
    color: #32403c;
}

.login-form input {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #d7dff0;
    background: #f8faff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #5a48d6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(90, 72, 214, 0.12);
}

.login-form button {
    min-height: 56px;
    margin-top: 6px;
    background: linear-gradient(135deg, #3d21b4 0%, #6e63ff 100%);
    box-shadow: 0 18px 34px rgba(61, 33, 180, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(61, 33, 180, 0.28);
}

@media (max-width: 1080px) {
    .admin-card-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-two-col { grid-template-columns: 1fr; }
    .homepage-grid { grid-template-columns: 1fr; }
    .theme-preview-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publish-checklist-grid { grid-template-columns: 1fr; }
    .login-card-auth { grid-template-columns: 1fr; min-height: auto; }
    .login-card-visual,
    .login-card-form { padding: 36px 30px; }
}

@media (max-width: 840px) {
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { gap: 14px; }
}

@media (max-width: 640px) {
    .admin-card-grid { grid-template-columns: 1fr; }
    .admin-main { padding: 18px; }
    .admin-main-full { padding: 18px; }
    .admin-media-seo-grid,
    .theme-color-grid,
    .theme-preview-row,
    .theme-color-field { grid-template-columns: 1fr; }
    .wysiwyg-toolbar-group {
        border-right: none;
        padding-right: 0;
        width: 100%;
    }
    .login-card-visual,
    .login-card-form { padding: 26px 20px; }
    .login-card-visual h1,
    .login-card-form h2 { font-size: 1.95rem; }
}
