.post-editor {
    padding: 24px 0 60px;
}

.post-editor .editor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.post-editor .editor-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #95a1c2;
    margin: 0 0 8px;
}

.post-editor .editor-head h1 {
    margin: 0 0 12px;
}

.post-editor .editor-head p {
    margin: 0;
    color: #95a1c2;
}

.post-editor .editor-actions {
    display: flex;
    gap: 12px;
}

.post-editor .editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.post-editor .editor-card {
    background: rgba(10, 17, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.post-editor .editor-card h2,
.post-editor .editor-card h3 {
    margin: 0 0 18px;
}

.post-editor .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.post-editor .field label {
    font-weight: 600;
    color: #f5f7ff;
}

.post-editor .field.dual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.post-editor input[type="text"],
.post-editor input[type="number"],
.post-editor input[type="file"],
.post-editor select,
.post-editor textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #f5f7ff;
    font: inherit;
}

.post-editor textarea {
    min-height: 120px;
}

.post-editor input::placeholder,
.post-editor textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.post-editor .ck.ck-toolbar {
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.post-editor .ck.ck-editor__main > .ck-editor__editable {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: #f5f7ff;
    min-height: 260px;
    padding: 20px;
}

.post-editor .ck.ck-editor__top {
    border: none;
    box-shadow: none;
}

.post-editor small {
    color: #95a1c2;
}

.post-editor .toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.post-editor .toggle input {
    width: 18px;
    height: 18px;
}

.post-editor .editor-sidebar .editor-card {
    margin-bottom: 16px;
}

.post-editor .upload-btn {
    display: inline-flex;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    justify-content: center;
    cursor: pointer;
    color: #95a1c2;
}

.post-editor .upload-btn input {
    display: none;
}

.post-editor .cover-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.post-editor .cover-preview img {
    width: 100%;
    display: block;
}

.post-editor .cover-preview span {
    display: block;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
}

/* --- Posts list --- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-success {
    background: rgba(49, 196, 141, 0.18);
    color: #31c48d;
}

.badge-danger {
    background: rgba(255, 138, 102, 0.2);
    color: #ff8a66;
}

.maintenance-card .maintenance-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.maintenance-card .maintenance-head p {
    margin: 8px 0 0;
    color: #95a1c2;
}

.maintenance-card .switch-field {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.maintenance-card .switch-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 6px;
}

.maintenance-card .switch-field strong {
    display: block;
    margin-bottom: 4px;
}

.maintenance-card .switch-field p {
    margin: 0;
    color: #95a1c2;
}

.maintenance-lock {
    padding: 80px 0;
}

.maintenance-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.maintenance-info {
    flex: 1 1 320px;
}

.maintenance-info h1 {
    margin: 16px 0;
}

.maintenance-info p {
    color: #a9b5d6;
    line-height: 1.6;
}

.maintenance-label {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: #e3e9ff;
}

.maintenance-auth-shell {
    flex: 0 0 360px;
    max-width: 420px;
    width: 100%;
    margin: 0;
}

.maintenance-auth-shell .auth-card {
    box-shadow: 0 35px 120px rgba(6, 11, 40, 0.55);
}

@media (max-width: 768px) {
    .maintenance-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .maintenance-auth-shell {
        flex: 1 1 auto;
    }
}

.badge-status.is-live {
    background: rgba(49, 196, 141, 0.2);
    color: #31c48d;
}

.badge-status.is-draft {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.badge-vip {
    background: rgba(45, 107, 255, 0.2);
    color: #2d6bff;
    margin-left: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.admin-content {
    padding: 40px 0;
}

.admin-content .container {
    width: 100%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .admin-content .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.table-wrapper {
    width: 100%;
}

.table-wrapper table {
    width: 100%;
}

@media (max-width: 960px) {
    .post-editor .editor-grid {
        grid-template-columns: 1fr;
    }

    .post-editor .editor-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-editor .editor-actions {
        width: 100%;
        flex-direction: column;
    }

    .post-editor .editor-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

