
/* Delete confirmation modal */
.delete-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 46, 0.22);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.delete-modal-overlay.is-open {
    display: flex;
}

.delete-modal-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 4px solid #20c997;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 34px 30px 28px;
    text-align: left;
}

.delete-modal-card h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2a44;
}

.delete-modal-card p {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.7;
    color: #53607f;
}

.delete-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.delete-cancel-btn,
.delete-confirm-btn {
    min-width: 118px;
    height: 46px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.delete-cancel-btn {
    background: #d9dde4;
    color: #4d5a78;
}

.delete-confirm-btn {
    background: #ff5a4f;
    color: #fff;
}

.delete-cancel-btn:hover,
.delete-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
    .delete-modal-card {
        padding: 28px 20px 22px;
    }

    .delete-modal-actions {
        flex-direction: row;
    }

    .delete-cancel-btn,
    .delete-confirm-btn {
        min-width: 104px;
        height: 44px;
        font-size: 15px;
    }
}

/* =========================
   Dashboard New Style
========================= */

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 22px;
    align-items: center;
    margin-bottom: 26px;
}

.dashboard-hero-content {
    padding: 8px 4px;
}

.dashboard-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ff8c7f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.dashboard-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1e2230;
}

.dashboard-subtitle {
    margin: 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.8;
    color: #7f879a;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.25s ease;
}

.dashboard-btn-primary {
    background: #9fc9b8;
    color: #fff;
}

.dashboard-btn-primary:hover {
    background: #87b5a2;
    transform: translateY(-1px);
}

.dashboard-btn-secondary {
    background: #f5f7fb;
    color: #30384c;
    border: 1px solid #e5e9f0;
}

.dashboard-btn-secondary:hover {
    background: #edf1f7;
    transform: translateY(-1px);
}

.dashboard-add-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-add-box {
    width: 100px;
    height: 150px;
    border-radius: 28px;
    border: 2px dashed #cfd6e2;
    display: grid;
    place-items: center;
    color: #657089;
    font-size: 34px;
    background: #fbfcfe;
    transition: 0.25s ease;
}

.dashboard-add-box:hover {
    background: #f3f6fb;
    transform: translateY(-2px);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 260px));
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-stat-card {
    border-radius: 28px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 20px 30px rgba(25, 30, 45, 0.10);
}

.dashboard-stat-green {
    background: #9fc9b8;
}

.dashboard-stat-purple {
    background: #5d5ba8;
}

.dashboard-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    opacity: 0.95;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stat-icon {
    font-size: 34px;
    margin-bottom: 18px;
}

.dashboard-stat-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.dashboard-stat-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(20, 25, 40, 0.04);
}

.dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-panel-head h3 {
    margin: 0;
    font-size: 28px;
    color: #23293b;
    letter-spacing: -0.02em;
}

.dashboard-panel-head span {
    color: #a4acbb;
    font-size: 18px;
}

.dashboard-summary-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-summary-item strong {
    display: block;
    color: #2a3042;
    font-size: 15px;
    margin-bottom: 4px;
}

.dashboard-summary-item small {
    color: #8a92a5;
    font-size: 13px;
}

.dashboard-summary-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 14px;
}

.dashboard-summary-dot.green {
    background: #d8c48a;
}

.dashboard-summary-dot.purple {
    background: #5d5ba8;
}

.dashboard-panel-text {
    margin: 0;
    color: #7f879a;
    line-height: 1.8;
    font-size: 15px;
    max-width: 540px;
}

@media (max-width: 1100px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-add-card {
        justify-content: flex-start;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 34px;
    }
}

/* =========================
   Settings Modern
========================= */

.admin-page-head-modern {
    margin-bottom: 22px;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ff8c7f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-modern-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-tabs-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-tab-modern {
    border: 0;
    background: #f4f6fa;
    color: #344054;
    border-radius: 18px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    border: 1px solid #e7ebf2;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}
.admin-tabs-modern > .admin-tab-modern {
    flex: 0 0 auto;
    width: auto;
}

.admin-tab-modern:hover {
    transform: translateY(-1px);
    background: #eef2f7;
}

.admin-tab-modern.is-active {
    background: #5d5ba8;
    color: #fff;
    border-color: #5d5ba8;
    box-shadow: 0 14px 30px rgba(93, 91, 168, 0.22);
}

.admin-tab-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    font-size: 11px;
    font-weight: 800;
}

.admin-tab-modern:not(.is-active) .admin-tab-number {
    background: #dde4ee;
    color: #5e697f;
}

.admin-tab-panels-modern {
    display: block;
}

.admin-tab-panel-modern {
    display: none;
}

.admin-tab-panel-modern.is-active {
    display: block;
}

.admin-panel-card {
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(22, 28, 45, 0.05);
}

.admin-panel-head-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-panel-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #9fc9b8;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.admin-panel-head-modern h3 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #20263a;
    letter-spacing: -0.02em;
}

.admin-panel-head-modern p {
    margin: 0;
    color: #8a93a8;
    line-height: 1.7;
}

.admin-form-grid {
    display: grid;
    gap: 18px;
}

.admin-form-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

.admin-modern-form .form-group {
    margin: 0;
}

.admin-modern-form .form-group > label:not(.admin-switch-card) {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #30384c;
}

.admin-modern-form .form-group input,
.admin-modern-form .form-group textarea,
.admin-modern-form .form-group select {
    width: 100%;
    border: 1px solid #e3e9f1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    color: #243047;
    transition: 0.25s ease;
}

.admin-modern-form .form-group input:focus,
.admin-modern-form .form-group textarea:focus,
.admin-modern-form .form-group select:focus {
    border-color: #9fc9b8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(159, 201, 184, 0.14);
}

.admin-modern-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-modern-form input[type="file"] {
    padding: 12px;
    background: #fff;
}

.admin-section-block {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}

.admin-section-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.admin-section-title {
    margin: 0 0 16px;
    font-size: 18px;
    color: #2a3247;
}

.settings-actions-modern {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.admin-save-btn {
    min-width: 180px;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: #9fc9b8;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(159, 201, 184, 0.24);
    transition: 0.25s ease;
    padding: 0 24px;
}

.admin-save-btn:hover {
    background: #87b5a2;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .admin-form-grid.two-cols {
        grid-template-columns: 1fr;
    }

    .settings-actions-modern {
        justify-content: stretch;
    }

    .admin-save-btn {
        width: 100%;
    }
}
/* =========================
   Categories Modern
========================= */

.admin-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: #9fc9b8;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 26px rgba(159, 201, 184, 0.22);
    transition: 0.25s ease;
}

.admin-add-btn:hover {
    background: #87b5a2;
    transform: translateY(-2px);
}

.admin-add-btn-plus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.22);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.admin-table-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 30px;
    box-shadow: 0 14px 34px rgba(22, 28, 45, 0.05);
    overflow: hidden;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 10px;
}

.admin-card-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #20263a;
    letter-spacing: -0.02em;
}

.admin-card-head p {
    margin: 0;
    color: #8a93a8;
    font-size: 14px;
}

.admin-table-wrap {
    padding: 0 16px 16px;
}

.admin-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
}

.admin-table-modern thead th {
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    color: #7d879a;
    padding: 0 14px 8px;
    border: 0;
}

.admin-table-modern tbody tr {
    background: #f9fbfd;
    box-shadow: 0 6px 18px rgba(26, 32, 44, 0.03);
}

.admin-table-modern tbody td {
    padding: 16px 14px;
    vertical-align: middle;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.admin-table-modern tbody td:first-child {
    border-left: 1px solid #edf1f5;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.admin-table-modern tbody td:last-child {
    border-right: 1px solid #edf1f5;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.admin-id-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #49556c;
    font-size: 12px;
    font-weight: 800;
}

.admin-table-thumb-wrap {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-table-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.admin-mini-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 68px;
    text-align: center;
    padding: 10px;
    border-radius: 18px;
    background: #eef2f7;
    color: #7e8798;
    font-size: 12px;
    font-weight: 700;
}

.admin-table-maintext strong {
    display: block;
    font-size: 15px;
    color: #243047;
}

.admin-slug-code {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f1f4f8;
    color: #5a6478;
    font-size: 12px;
    font-family: monospace;
    word-break: break-word;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status-badge.is-active {
    background: rgba(159, 201, 184, 0.18);
    color: #4f816e;
}

.admin-status-badge.is-hidden {
    background: rgba(93, 91, 168, 0.12);
    color: #5d5ba8;
}

.admin-order-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6ebf2;
    color: #415069;
    font-weight: 700;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-row-actions form {
    margin: 0;
}

.admin-action-link {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
}

.admin-action-link.edit {
    background: #eef2f8;
    color: #3f4c63;
}

.admin-action-link.edit:hover {
    background: #e3e9f2;
}

.admin-action-link.delete {
    background: rgba(255, 140, 127, 0.12);
    color: #c4574c;
}

.admin-action-link.delete:hover {
    background: rgba(255, 140, 127, 0.18);
}

.admin-empty-state {
    padding: 34px 20px;
    text-align: center;
}

.admin-empty-state h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #253047;
}

.admin-empty-state p {
    margin: 0 0 18px;
    color: #8992a6;
}

.inline-add {
    margin: 0 auto;
}

/* Mobile cards */
.admin-mobile-cards {
    display: none;
    gap: 16px;
    margin-top: 18px;
}

.admin-mobile-card-modern {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(22, 28, 45, 0.05);
}

.admin-mobile-image-modern {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
}

.admin-mobile-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-mobile-id {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #58657a;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-mobile-details-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.admin-mobile-details-modern div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-mobile-details-modern strong {
    font-size: 12px;
    color: #8a93a8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-mobile-details-modern span {
    color: #263147;
    font-size: 14px;
    word-break: break-word;
}

.admin-mobile-actions-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-mobile-actions-modern form {
    margin: 0;
}

.mobile-empty-state {
    display: block;
}

@media (max-width: 900px) {
    .categories-table-desktop {
        display: none;
    }

    .admin-mobile-cards {
        display: grid;
    }
}
/* =========================
   Category Form Modern
========================= */

.admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    background: #f4f6fa;
    border: 1px solid #e7ebf2;
    color: #344054;
    font-weight: 800;
    transition: 0.25s ease;
}

.admin-back-btn:hover {
    background: #edf1f7;
    transform: translateY(-1px);
}

.admin-editor-form {
    gap: 0;
}

.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
}

.admin-editor-main,
.admin-editor-side {
    min-width: 0;
}

.admin-editor-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-switch-card {
    min-height: 56px;
    border: 1px solid #e3e9f1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.admin-switch-card input {
    display: none;
}

.admin-switch-ui {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d8deea;
    position: relative;
    transition: 0.25s ease;
    flex: 0 0 52px;
}

.admin-switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: 0.25s ease;
}

.admin-switch-card input:checked + .admin-switch-ui {
    background: #9fc9b8;
}

.admin-switch-card input:checked + .admin-switch-ui::after {
    left: 26px;
}

.admin-switch-text {
    font-weight: 700;
    color: #2f3a4d;
}

.admin-file-box {
    border: 2px dashed #d7deea;
    border-radius: 20px;
    background: #fbfcfe;
    padding: 18px;
    transition: 0.25s ease;
}

.admin-file-box:hover {
    background: #f5f8fc;
    border-color: #c8d2e0;
}

.admin-file-box input[type="file"] {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: #42506a;
    font-size: 14px;
}

.admin-file-box {
    border: 2px dashed #d7deea;
    border-radius: 20px;
    background: #fbfcfe;
    padding: 14px 16px;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.admin-image-preview-card {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-image-preview-label {
    font-size: 13px;
    font-weight: 800;
    color: #748097;
}

.admin-preview-image-modern {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid #e6ebf2;
    box-shadow: 0 12px 22px rgba(22, 28, 45, 0.06);
}

.admin-empty-preview {
    margin-top: 18px;
    min-height: 180px;
    border-radius: 22px;
    border: 1px dashed #d9e0ea;
    background: #f9fbfd;
    color: #8b94a8;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    font-weight: 700;
}

.admin-publish-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-save-btn-full {
    width: 100%;
}

@media (max-width: 1100px) {
    .admin-editor-layout {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Posts Modern
========================= */

.admin-page-buttons-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-soft-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: #f4f6fa;
    border: 1px solid #e7ebf2;
    color: #344054;
    font-weight: 800;
    transition: 0.25s ease;
}

.admin-soft-btn:hover {
    background: #edf1f7;
    transform: translateY(-1px);
}

.admin-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2f8;
    color: #49556c;
    font-size: 12px;
    font-weight: 800;
}

.admin-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(93, 91, 168, 0.12);
    color: #5d5ba8;
    font-size: 12px;
    font-weight: 800;
}

.admin-type-badge.is-empty {
    background: #f1f4f8;
    color: #7a8598;
}

.admin-post-mobile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .posts-table-desktop {
        display: none;
    }
}
/* =========================
   Post Form Modern
========================= */

.admin-publish-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-publish-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
}

.admin-publish-meta-item strong {
    color: #2b3448;
    font-size: 14px;
    font-weight: 800;
}

.admin-publish-meta-item span {
    color: #7f8aa1;
    font-size: 13px;
    font-weight: 700;
}
/* =========================
   Post Type Form Modern
========================= */

.small-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
}

@media (max-width: 900px) {
    .small-layout {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Post Types List Modern
========================= */

.post-types-mobile-list {
    display: none;
}

@media (max-width: 900px) {
    .post-types-table-desktop {
        display: none;
    }

    .post-types-mobile-list {
        display: grid;
    }
}
.admin-settings-form.admin-modern-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
/* =========================
   Contact Messages Modern
========================= */

.admin-mail-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    min-height: 640px;
}

.admin-mail-sidebar,
.admin-mail-reader-card,
.admin-mail-reader-empty-box {
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 30px;
    box-shadow: 0 14px 34px rgba(22, 28, 45, 0.05);
}

.admin-mail-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    overflow: hidden;
}

.admin-mail-sidebar-head {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef2f6;
}

.admin-mail-sidebar-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #20263a;
    letter-spacing: -0.02em;
}

.admin-mail-sidebar-head p {
    margin: 0;
    color: #8a93a8;
    font-size: 14px;
}

.admin-mail-count {
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f8;
    color: #4d5870;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.admin-mail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow: auto;
}

.admin-mail-item {
    display: block;
    padding: 18px;
    border-radius: 22px;
    background: #f9fbfd;
    border: 1px solid #edf1f5;
    color: inherit;
    transition: 0.25s ease;
}

.admin-mail-item:hover {
    transform: translateY(-1px);
    background: #f5f8fc;
}

.admin-mail-item.is-active {
    background: rgba(93, 91, 168, 0.08);
    border-color: rgba(93, 91, 168, 0.18);
    box-shadow: 0 12px 24px rgba(93, 91, 168, 0.08);
}

.admin-mail-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-mail-item-top strong {
    color: #243047;
    font-size: 15px;
}

.admin-mail-item-top span {
    color: #8a93a8;
    font-size: 12px;
    white-space: nowrap;
}

.admin-mail-item-subject {
    font-size: 13px;
    font-weight: 800;
    color: #5d5ba8;
    margin-bottom: 8px;
}

.admin-mail-item p {
    margin: 0;
    color: #748197;
    font-size: 14px;
    line-height: 1.6;
}

.admin-mail-empty {
    min-height: 220px;
    border-radius: 24px;
    border: 1px dashed #d9e0ea;
    background: #f9fbfd;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.admin-mail-empty h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #253047;
}

.admin-mail-empty p {
    margin: 0;
    color: #8b94a8;
}

.admin-mail-reader {
    min-width: 0;
}

.admin-mail-reader-card {
    padding: 28px;
    min-height: 640px;
}

.admin-mail-reader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-mail-reader-head h2 {
    margin: 10px 0 0;
    font-size: 30px;
    color: #20263a;
    letter-spacing: -0.02em;
}

.admin-mail-date {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f4f6fa;
    color: #667287;
    font-size: 13px;
    font-weight: 700;
}

.admin-mail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-mail-meta-box {
    padding: 18px;
    border-radius: 20px;
    background: #f9fbfd;
    border: 1px solid #edf1f5;
}

.admin-mail-meta-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #8a93a8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-mail-meta-box div,
.admin-mail-meta-box a {
    color: #243047;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.admin-mail-message-body {
    margin-top: 4px;
}

.admin-mail-message-body h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #253047;
}

.admin-mail-message-content {
    padding: 22px;
    border-radius: 24px;
    background: #fbfcfe;
    border: 1px solid #edf1f5;
    color: #334056;
    line-height: 1.9;
    font-size: 15px;
    min-height: 180px;
}

.admin-mail-reader-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.admin-mail-reader-actions form {
    margin: 0;
}

.admin-delete-btn-wide {
    min-width: 130px;
    min-height: 54px;
    border-radius: 18px;
}

.admin-mail-reader-empty {
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-mail-reader-empty-box {
    width: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px;
}

.admin-mail-reader-empty-box h3 {
    margin: 10px 0 10px;
    font-size: 28px;
    color: #253047;
}

.admin-mail-reader-empty-box p {
    margin: 0;
    color: #8b94a8;
    max-width: 420px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .admin-mail-shell {
        grid-template-columns: 1fr;
    }

    .admin-mail-sidebar,
    .admin-mail-reader-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .admin-mail-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-mail-reader-card {
        padding: 20px;
    }

    .admin-mail-sidebar-head {
        padding: 20px;
    }
}

/* =========================================
   ADMIN LAYOUT V2 - closer to reference
========================================= */

:root {
    --admin-bg-soft: #eef1f8;
    --admin-sidebar-v2: #687495;
    --admin-sidebar-v2-dark: #606b8d;
    --admin-surface-v2: #ffffff;
    --admin-text-v2: #1f2538;
    --admin-muted-v2: #7f889d;
    --admin-line-v2: #e9edf4;
    --admin-green-v2: #9fc9b8;
    --admin-green-v2-dark: #86b8a4;
    --admin-purple-v2: #605dae;
    --admin-shadow-v2: 0 18px 40px rgba(29, 39, 70, 0.08);
}

body.admin-body-modern {
    margin: 0;
    background: #e9edf6;
    color: var(--admin-text-v2);
    font-family: Inter, Arial, sans-serif;
}

.admin-frame {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
}

.admin-sidebar-v2 {
    min-width: 0;
}

.admin-sidebar-inner {
    min-height: calc(100vh - 36px);
    background: linear-gradient(180deg, var(--admin-sidebar-v2) 0%, var(--admin-sidebar-v2-dark) 100%);
    border-radius: 28px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    color: #fff;
    box-shadow: var(--admin-shadow-v2);
}

.admin-brand-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
}

.admin-brand-text strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.admin-brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,0.74);
}

.admin-user-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #64708f;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.admin-user-text strong {
    display: block;
    font-size: 14px;
}

.admin-user-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
}

.admin-nav-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-v2 a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: 0.22s ease;
}

.admin-nav-v2 a:hover {
    background: rgba(255,255,255,0.14);
    transform: translateX(2px);
}

.admin-nav-v2 a.active {
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.admin-add-box-v2 {
    margin-top: 18px;
    min-height: 88px;
    border-radius: 20px;
    border: 1.5px dashed rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: 0.22s ease;
}

.admin-add-box-v2:hover {
    background: rgba(255,255,255,0.11);
}

.admin-add-circle-v2 {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #606b8d;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 38px;
}

.admin-add-box-v2 strong {
    display: block;
    font-size: 14px;
}

.admin-add-box-v2 small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}

.admin-logout-form-v2 {
    margin-top: auto;
    padding-top: 18px;
}

.admin-logout-form-v2 button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2d3550;
    font-weight: 800;
    cursor: pointer;
}

.admin-main-v2 {
    min-width: 0;
}

.admin-main-surface {
    min-height: calc(100vh - 36px);
    background: var(--admin-surface-v2);
    border-radius: 30px;
    padding: 22px 24px 26px;
    box-shadow: var(--admin-shadow-v2);
}

/* make internal page heads closer to the mockup */
.page-head {
    margin-bottom: 24px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #21273a;
}

.text-muted {
    color: var(--admin-muted-v2);
}

/* soften cards/tables */
.admin-table-card,
.admin-panel-card,
.admin-mail-sidebar,
.admin-mail-reader-card,
.admin-mail-reader-empty-box,
.dashboard-panel {
    border-radius: 24px !important;
    box-shadow: 0 10px 24px rgba(25, 30, 45, 0.04) !important;
}

/* buttons closer to reference */
.admin-add-btn,
.admin-save-btn,
.dashboard-btn-primary,
.admin-plan-btn {
    border-radius: 16px !important;
}

.admin-soft-btn,
.admin-back-btn,
.admin-action-link.edit {
    border-radius: 14px !important;
}

/* tighten huge empty spacing in dashboard */
.dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 100px !important;
    gap: 18px !important;
}

.dashboard-add-box {
    width: 76px !important;
    height: 110px !important;
    border-radius: 24px !important;
}

.dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    max-width: 520px;
}

.dashboard-panels {
    grid-template-columns: 300px minmax(0, 1fr) !important;
}

/* responsive */
@media (max-width: 1080px) {
    .admin-frame {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-inner,
    .admin-main-surface {
        min-height: auto;
    }

    .admin-sidebar-inner {
        border-radius: 24px;
    }

    .dashboard-panels {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .admin-frame {
        padding: 12px;
        gap: 12px;
    }

    .admin-main-surface {
        padding: 18px;
        border-radius: 22px;
    }

    .page-head h1 {
        font-size: 26px;
    }
}
/* =========================
   Shared helpers
========================= */

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.page-head-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-image {
    max-width: 100%;
    display: block;
}

.mini-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.type-badge {
    background: rgba(93, 91, 168, 0.12);
    color: #5d5ba8;
}

.muted-badge {
    background: #eef2f7;
    color: #7b8699;
}

@media (max-width: 768px) {
    .page-head-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-head-buttons {
        width: 100%;
    }

    .page-head-buttons > * {
        flex: 1 1 180px;
        justify-content: center;
    }
}
.admin-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #30384c;
}

.admin-modern-form .form-group input[type="checkbox"] {
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.admin-switch-card {
    position: relative;
    min-height: 56px;
    border: 1px solid #e3e9f1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    transition: 0.25s ease;
}

.admin-switch-card:hover {
    background: #f2f7f5;
    border-color: #d6e6df;
}

.admin-switch-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch-ui {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d8deea;
    position: relative;
    transition: 0.25s ease;
    flex: 0 0 52px;
}

.admin-switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: 0.25s ease;
}

.admin-switch-card input[type="checkbox"]:checked + .admin-switch-ui {
    background: #9fc9b8;
}

.admin-switch-card input[type="checkbox"]:checked + .admin-switch-ui::after {
    left: 26px;
}

.admin-switch-card:has(input[type="checkbox"]:focus-visible) {
    border-color: #9fc9b8;
    box-shadow: 0 0 0 4px rgba(159, 201, 184, 0.14);
}

.admin-switch-text {
    flex: 1;
    font-weight: 700;
    color: #2f3a4d;
    line-height: 1.3;
}
.admin-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #30384c;
}

.error-404-picker{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.error-404-option{
    display: block;
    cursor: pointer;
}

.error-404-option input{
    display: none;
}

.error-404-card{
    position: relative;
    background: #fff;
    border: 2px solid #e7eaf3;
    border-radius: 20px;
    padding: 12px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
    overflow: hidden;
}

.error-404-card img{
    width: 100%;
    height: 130px;
    object-fit: contain;
    display: block;
}

.error-404-option:hover .error-404-card{
    transform: translateY(-4px);
    border-color: #cfd8ea;
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.10);
}

.error-404-option input:checked + .error-404-card{
    border-color: #6d5bd0;
    box-shadow: 0 0 0 4px rgba(109, 91, 208, 0.12), 0 16px 32px rgba(109, 91, 208, 0.16);
}

.error-404-option input:checked + .error-404-card::after{
    content: "✓ Selected";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6d5bd0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}