* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f3f6fa;
    color: #0a2540;
    font-family: "Segoe UI", sans-serif;
}

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

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

:root {
    --brand-blue: #3055A3;
    --brand-light-blue: #0698D6;
    --brand-green: #3EAD55;
    --brand-black: #1D1D1B;
    --brand-muted: #5F6670;
    --brand-line: rgba(29,29,27,0.09);
    --brand-shadow: 0 10px 26px rgba(29,29,27,0.07);
    --brand-font: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --brand-display: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef5fb, #ffffff);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(10,37,64,0.08);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(10,37,64,0.12);
}

.login-card img {
    height: 46px;
    width: auto;
    margin-bottom: 24px;
}

.login-card h1,
.admin-topbar h1 {
    font-size: 30px;
    line-height: 1.2;
}

.login-card p {
    color: #5c6b7a;
    margin: 10px 0 24px;
}

.login-card form,
.admin-form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    color: #0a2540;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(10,37,64,0.14);
    border-radius: 10px;
    padding: 12px 14px;
    color: #0a2540;
    font: inherit;
    font-weight: 400;
    background: #fff;
}

textarea {
    resize: vertical;
}

button,
.primary-link,
.small-button {
    border: 0;
    border-radius: 10px;
    background: #0077cc;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
}

.small-button {
    padding: 8px 12px;
    font-size: 13px;
}

.muted-button {
    background: #eaf5ff;
    color: #0077cc;
}

.danger-button {
    background: #fff0f0;
    color: #a32121;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.inline-password-form,
.inline-status-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(150px, 1fr) auto;
    min-width: 260px;
}

.inline-status-form {
    grid-template-columns: minmax(110px, 1fr) auto;
    min-width: 210px;
}

.muted-text {
    color: #5c6b7a;
    font-size: 13px;
}

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

.quick-link-card {
    background: #f8fafc;
    border: 1px solid rgba(10,37,64,0.08);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.quick-link-card strong {
    color: #0a2540;
}

.quick-link-card span {
    color: #5c6b7a;
    line-height: 1.5;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(10,37,64,0.12);
    border-radius: 10px;
    color: #0a2540;
    font-weight: 700;
    padding: 11px 16px;
    background: #fff;
}

.alert {
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    font-weight: 600;
}

.alert.error {
    background: #fff0f0;
    color: #a32121;
}

.alert.success {
    background: #ecf9f1;
    color: #197045;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #071f3a;
    color: #fff;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

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

.admin-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.admin-brand span {
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

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

.admin-sidebar nav a,
.logout-link,
.admin-sidebar summary {
    border-radius: 10px;
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    padding: 12px 14px;
}

.admin-sidebar nav a:hover,
.logout-link:hover,
.admin-sidebar summary:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-sidebar nav a.active,
.admin-sidebar .admin-nav-direct.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.admin-sidebar details {
    display: grid;
    gap: 4px;
}

.admin-sidebar summary {
    cursor: pointer;
    list-style: none;
    position: relative;
}

.admin-sidebar summary::-webkit-details-marker {
    display: none;
}

.admin-sidebar summary::after {
    content: "+";
    position: absolute;
    right: 12px;
}

.admin-sidebar details[open] summary::after {
    content: "-";
}

.admin-sidebar details a {
    margin-left: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}

.logout-link {
    margin-top: auto;
}

.admin-main {
    padding: 34px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.admin-topbar span {
    color: #0077cc;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.metric-card,
.admin-panel {
    background: #fff;
    border: 1px solid rgba(10,37,64,0.08);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(10,37,64,0.06);
}

.metric-card {
    padding: 24px;
}

.metric-card span {
    color: #68788a;
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.metric-card strong {
    color: #0a2540;
    font-size: 32px;
}

.admin-panel {
    padding: 26px;
}

.admin-panel h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.admin-panel p {
    color: #5c6b7a;
    line-height: 1.7;
    margin-bottom: 18px;
}

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

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

th,
td {
    border-bottom: 1px solid rgba(10,37,64,0.08);
    padding: 14px 12px;
    text-align: left;
}

th {
    color: #68788a;
    font-size: 13px;
    text-transform: uppercase;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.document-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 14px;
    margin-top: 14px;
}

.product-image-manager {
    display: grid;
    gap: 14px;
}

.product-image-row {
    align-items: start;
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: 120px 1fr auto;
    padding: 14px;
}

.main-image-choice {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 40px;
}

.main-image-choice input {
    width: auto;
}

.product-list-thumb {
    align-items: center;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    display: flex;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 70px;
}

.product-list-thumb img {
    height: 100%;
    object-fit: contain;
    padding: 5px;
    width: 100%;
}

.product-list-thumb.is-empty {
    background: #f6f8fb;
    opacity: 0.62;
}

.product-image-row > .image-picker {
    grid-column: 2;
}

.product-image-row > .remove-product-image {
    grid-column: 3;
    grid-row: 1;
}

.menu-manager-list {
    display: grid;
    gap: 12px;
}

.menu-manager-row {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1.15fr 1.4fr 1fr 1fr 80px 110px auto auto;
    padding: 12px;
}

.menu-manager-row label {
    gap: 5px;
}

.menu-visible-check {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 40px;
}

.menu-visible-check input {
    width: auto;
}

.menu-manager-row.new-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-editor-list {
    display: grid;
    gap: 12px;
}

.menu-editor-row {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: 94px 1.1fr 1.25fr 1.1fr 1.1fr 82px 120px auto;
    padding: 14px;
}

.menu-editor-row label {
    gap: 5px;
}

.menu-editor-visible {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 42px;
}

.menu-editor-visible input {
    width: auto;
}

.menu-editor-add {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.checkbox-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.check-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(10,37,64,0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 9px;
    padding: 11px 12px;
}

.check-card input {
    width: auto;
}

.check-card span {
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        padding: 22px;
    }

    .metric-grid,
    .form-grid,
    .document-row,
    .product-image-row,
    .menu-manager-row,
    .menu-manager-row.new-row,
    .menu-editor-row,
    .menu-editor-add,
    .checkbox-grid,
    .checkbox-grid.compact {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Sertuğ Kimya ADMIN CORPORATE REFINEMENT */
body {
    background: #f6f8fb;
    color: var(--brand-black);
    font-family: var(--brand-font);
    font-size: 14px;
    line-height: 1.55;
}

.login-body {
    background: linear-gradient(135deg, #f5f8fb, #ffffff);
}

.login-card,
.metric-card,
.admin-panel {
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    box-shadow: var(--brand-shadow);
}

.login-card {
    padding: 28px;
}

.login-card img {
    height: 40px;
}

.login-card h1,
.admin-topbar h1 {
    color: var(--brand-black);
    font-family: var(--brand-display);
    font-size: 26px;
    font-weight: 650;
}

.login-card p,
.admin-panel p {
    color: var(--brand-muted);
}

.admin-sidebar {
    background: var(--brand-black);
    padding: 22px;
}

.admin-brand img {
    height: 32px;
}

.admin-sidebar nav a,
.logout-link {
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 12px;
}

.admin-sidebar summary {
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 12px;
}

.admin-sidebar details a {
    font-size: 13px;
    padding: 8px 12px;
}

/* IMPROVED SIDEBAR GROUPS */
.admin-sidebar {
    overflow-y: auto;
}

.admin-sidebar nav {
    gap: 10px;
}

.admin-sidebar details {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    overflow: hidden;
}

.admin-sidebar summary {
    align-items: center;
    color: #fff;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin: 0;
}

.admin-sidebar summary:hover {
    background: rgba(255,255,255,0.06);
}

.admin-sidebar summary::after {
    color: rgba(255,255,255,0.6);
    content: "⌄";
    font-size: 14px;
    position: static;
}

.admin-sidebar details[open] summary::after {
    content: "⌃";
}

.admin-sidebar details a {
    border-left: 2px solid rgba(255,255,255,0.12);
    border-radius: 0 8px 8px 0;
    color: rgba(255,255,255,0.72);
    display: block;
    margin: 0 10px 6px 18px;
    padding: 9px 10px;
}

.admin-sidebar details a:first-of-type {
    margin-top: 4px;
}

.admin-sidebar details a:hover {
    background: rgba(48,85,163,0.45);
    border-left-color: var(--brand-light-blue);
    color: #fff;
}

.admin-sidebar details a.active {
    background: rgba(48,85,163,0.6);
    border-left-color: var(--brand-light-blue);
    color: #fff;
}

.admin-nav-direct,
.admin-sidebar nav > a[target="_blank"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-nav-direct.active {
    background: rgba(48,85,163,0.6);
    border-color: rgba(111,166,255,0.38);
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    margin-bottom: 22px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.admin-topbar span {
    color: var(--brand-blue);
    font-size: 11px;
    letter-spacing: 1.2px;
}

button,
.primary-link,
.small-button {
    background: var(--brand-blue);
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 16px;
}

.small-button {
    padding: 7px 10px;
}

.muted-button {
    background: rgba(48,85,163,0.09);
    color: var(--brand-blue);
}

.danger-button {
    background: #fff0f0;
    color: #a32121;
}

.ghost-link {
    border-color: var(--brand-line);
    border-radius: 6px;
    color: var(--brand-black);
    padding: 9px 14px;
}

input,
textarea,
select {
    border-color: var(--brand-line);
    border-radius: 6px;
    color: var(--brand-black);
    font-family: var(--brand-font);
    font-size: 14px;
    padding: 10px 12px;
}

label {
    color: var(--brand-black);
    font-size: 14px;
    font-weight: 600;
}

.metric-grid,
.form-grid {
    gap: 14px;
}

.metric-card {
    padding: 20px;
}

.metric-card strong {
    color: var(--brand-blue);
    font-size: 26px;
}

.metric-card span,
th {
    color: var(--brand-muted);
    font-size: 12px;
}

.admin-panel {
    padding: 22px;
}

.admin-panel h2 {
    color: var(--brand-black);
    font-family: var(--brand-display);
    font-size: 20px;
    font-weight: 650;
}

th,
td {
    border-bottom-color: var(--brand-line);
    padding: 12px 10px;
}

/* FINAL ADMIN TYPE BALANCE */
h1,
h2,
h3,
label,
button,
.primary-link,
.small-button {
    letter-spacing: 0;
}

td,
input,
textarea,
select {
    font-weight: 400;
}

/* IMAGE EDITOR */
.image-picker {
    display: grid;
    gap: 10px;
    margin-top: -8px;
}

.image-picker-preview {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 120px;
    overflow: hidden;
}

.image-picker-preview img {
    height: 120px;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.image-picker-preview span {
    color: var(--brand-muted);
    font-size: 13px;
}

.image-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.image-picker-actions .small-button {
    cursor: pointer;
}

.image-editor-modal,
.image-library-modal {
    align-items: center;
    background: rgba(29,29,27,0.72);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 5000;
}

.image-editor-modal.active,
.image-library-modal.active {
    display: flex;
}

.image-editor-panel,
.image-library-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.24);
    max-width: 980px;
    padding: 20px;
    width: min(100%, 980px);
}

.image-library-panel {
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.image-editor-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.image-editor-head span {
    color: var(--brand-blue);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.image-editor-head h2 {
    color: var(--brand-black);
    font-size: 22px;
}

.image-editor-close,
.image-library-close {
    background: #f2f4f7;
    color: var(--brand-black);
}

.image-library-toolbar {
    margin-bottom: 14px;
}

.image-library-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 4px;
}

.image-library-item {
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    color: var(--brand-black);
    cursor: pointer;
    display: grid;
    gap: 8px;
    padding: 8px;
    text-align: left;
}

.image-library-item:hover {
    border-color: rgba(48,85,163,0.28);
    box-shadow: 0 10px 22px rgba(48,85,163,0.08);
}

.image-library-thumb {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(29,29,27,0.06);
    border-radius: 6px;
    display: flex;
    height: 108px;
    justify-content: center;
    overflow: hidden;
}

.image-library-thumb img {
    height: 100%;
    object-fit: contain;
    padding: 6px;
    width: 100%;
}

.image-library-name {
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-library-item small,
.image-library-empty {
    color: var(--brand-muted);
    font-size: 12px;
}

.image-library-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
}

.image-editor-canvas {
    background: #f6f8fb;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    height: 520px;
    overflow: hidden;
}

.image-editor-canvas img {
    display: block;
    max-width: 100%;
}

.image-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.image-editor-actions button {
    padding: 9px 12px;
}

@media (max-width: 700px) {
    .image-editor-canvas {
        height: 360px;
    }

    .image-editor-actions {
        justify-content: flex-start;
    }

    .image-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FORM REQUESTS */
.submission-list {
    display: grid;
    gap: 14px;
}

.submission-card {
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.submission-card.is-unread {
    background: #fff;
    border-color: rgba(48,85,163,0.22);
    box-shadow: 0 10px 26px rgba(48,85,163,0.08);
}

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

.submission-head h3 {
    color: var(--brand-black);
    font-size: 18px;
    margin-top: 8px;
}

.submission-head time {
    color: var(--brand-muted);
    font-size: 12px;
    white-space: nowrap;
}

.status-pill {
    background: rgba(48,85,163,0.09);
    border-radius: 999px;
    color: var(--brand-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
    padding: 5px 9px;
}

.status-pill.unread {
    background: #edf8f1;
    color: #197045;
}

.status-pill.success {
    background: #edf8f1;
    color: #197045;
}

.status-pill.warning {
    background: #fff7e8;
    color: #986300;
}

.submission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.submission-meta a,
.submission-meta span {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    color: var(--brand-muted);
    font-size: 13px;
    padding: 7px 10px;
}

.submission-card p {
    color: var(--brand-black);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 700px) {
    .submission-head {
        flex-direction: column;
    }
}

/* ADMIN LIST FILTERS */
.admin-filter-form {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr)) auto;
    margin-bottom: 18px;
    padding: 16px;
}

.admin-filter-form label {
    font-size: 13px;
}

.admin-filter-form input,
.admin-filter-form select {
    background: #fff;
}

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

.filter-actions button,
.filter-actions .ghost-link {
    min-height: 40px;
    white-space: nowrap;
}

.list-summary {
    align-items: center;
    color: var(--brand-muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.list-summary strong {
    color: var(--brand-blue);
}

.empty-state {
    color: var(--brand-muted);
    font-weight: 600;
    padding: 28px 12px;
    text-align: center;
}

@media (max-width: 1180px) {
    .admin-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .list-summary {
        align-items: stretch;
        flex-direction: column;
    }
}

/* PRODUCT EDIT HELPERS */
.slug-field {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
}

.slug-field .small-button {
    align-items: center;
    white-space: nowrap;
}

.file-upload-path {
    margin-bottom: 8px;
}

.filepond--root {
    font-family: var(--brand-font);
    margin-bottom: 0;
}

.filepond--panel-root {
    background: #f8fafc;
    border: 1px dashed rgba(48,85,163,0.28);
}

.filepond--drop-label {
    color: var(--brand-muted);
    font-size: 13px;
}

.filepond--label-action {
    color: var(--brand-blue);
    text-decoration-color: var(--brand-blue);
}

.panel-heading-row {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading-row h2,
.panel-heading-row p {
    margin-bottom: 6px;
}

.seo-ai-button {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-light-blue));
    box-shadow: 0 10px 22px rgba(48,85,163,0.18);
}

.field-hint {
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 500;
}

.admin-logo-thumb {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(48,85,163,0.12);
    border-radius: 8px;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    padding: 8px 12px;
    width: 112px;
}

.admin-logo-thumb img {
    display: block;
    max-height: 34px;
    max-width: 100%;
    object-fit: contain;
}

.seo-ai-note {
    background: rgba(48,85,163,0.07);
    border: 1px solid rgba(48,85,163,0.12);
    border-radius: 8px;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 12px;
    padding: 11px 12px;
}

.seo-tool-grid {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto;
}

.toggle-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    display: flex;
    gap: 18px;
    grid-template-columns: none;
    justify-content: space-between;
    padding: 16px;
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row small {
    color: var(--brand-muted);
    font-weight: 500;
    margin-top: 3px;
}

.toggle-row input[type="checkbox"] {
    accent-color: var(--brand-blue);
    height: 22px;
    width: 22px;
}

.home-section-list {
    display: grid;
    gap: 12px;
}

.home-section-toggle {
    margin: 0;
}

.home-section-toggle.is-dragging {
    opacity: 0.55;
}

.home-section-drag {
    cursor: grab;
    flex: 0 0 auto;
}

.home-section-toggle > span {
    flex: 1;
}

.home-section-switch {
    align-items: center;
    color: var(--brand-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    grid-template-columns: none;
    margin: 0;
    white-space: nowrap;
}

/* PRODUCT SORTING */
.order-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.order-actions span {
    color: var(--brand-muted);
    font-size: 13px;
}

.order-actions span.is-error {
    color: #a32121;
}

.drag-cell {
    width: 48px;
}

.drag-handle {
    align-items: center;
    background: #f3f6fa;
    border: 1px solid var(--brand-line);
    border-radius: 6px;
    color: var(--brand-muted);
    cursor: grab;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

tr[draggable="true"] {
    cursor: grab;
}

tr.is-dragging {
    background: #eef5ff;
    opacity: 0.62;
}

@media (max-width: 700px) {
    .slug-field {
        grid-template-columns: 1fr;
    }

    .panel-heading-row {
        flex-direction: column;
    }

    .seo-tool-grid {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .toggle-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-actions {
        justify-content: flex-start;
    }
}
