/* ---- Layout ---- */
.ld-wrapper {
    max-width: 720px;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
}

.ld-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.ld-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ld-count {
    font-size: 13px;
    color: #666;
}

.ld-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---- Comment Form ---- */
.ld-comment-form-wrap {
    margin-bottom: 20px;
}

.ld-comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ld-comment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.ld-comment-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

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

.ld-submit-btn, .ld-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f6f8fa;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.15s;
}

.ld-submit-btn:hover, .ld-btn:hover {
    background: #e9ecef;
}

.ld-btn-primary {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.ld-btn-primary:hover {
    background: #0052a3;
}

.ld-btn-block {
    display: block;
    width: 100%;
}

.ld-cancel-reply {
    padding: 6px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    font-family: inherit;
}

.ld-cancel-reply:hover {
    color: #333;
}

.ld-login-prompt {
    padding: 12px 16px;
    background: #f6f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.ld-login-prompt a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.ld-login-prompt a:hover {
    text-decoration: underline;
}

/* ---- Comments List ---- */
.ld-comments-list {
    margin-top: 8px;
}

.ld-comment {
    display: flex;
    gap: 10px;
    padding: 12px 0;
}

.ld-children {
    margin-left: 46px;
    border-left: 2px solid #e8e8e8;
    padding-left: 12px;
}

.ld-depth-1 .ld-children {
    margin-left: 36px;
}

.ld-comment-avatar {
    flex-shrink: 0;
}

.ld-avatar {
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.ld-comment-body {
    flex: 1;
    min-width: 0;
}

.ld-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ld-author {
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.ld-author:hover {
    color: #0066cc;
}

.ld-date {
    font-size: 12px;
    color: #888;
}

.ld-pending-badge {
    font-size: 11px;
    background: #fff3cd;
    color: #856404;
    padding: 1px 6px;
    border-radius: 3px;
}

.ld-comment-content {
    font-size: 14px;
    word-wrap: break-word;
    margin-bottom: 6px;
}

.ld-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.ld-upvote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.15s;
}

.ld-upvote-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.ld-upvote-btn.ld-voted {
    border-color: #0066cc;
    background: #e8f0fe;
    color: #0066cc;
}

.ld-upvote-icon {
    font-size: 10px;
}

.ld-reply-btn, .ld-report-btn {
    padding: 2px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    font-family: inherit;
}

.ld-reply-btn:hover, .ld-report-btn:hover {
    color: #0066cc;
}

/* ---- Empty ---- */
.ld-empty {
    padding: 32px 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ---- User Menu ---- */
.ld-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ld-user-menu-toggle {
    cursor: pointer;
}

.ld-user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 140px;
    z-index: 100;
    margin-top: 6px;
}

.ld-user-dropdown.ld-open {
    display: block;
}

.ld-user-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.ld-user-dropdown a:hover {
    background: #f0f4f8;
}

/* ---- Bell / Notifications ---- */
.ld-bell-wrap {
    position: relative;
}

.ld-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    display: flex;
    align-items: center;
}

.ld-bell:hover {
    color: #0066cc;
}

.ld-bell-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.ld-notifications-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 6px;
}

.ld-notifications-dropdown.ld-open {
    display: block;
}

.ld-notif-header {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.ld-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
}

.ld-notif-item:hover {
    background: #f8f9fa;
}

.ld-notif-item.ld-read {
    opacity: 0.6;
}

.ld-notif-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.ld-notif-text {
    flex: 1;
    color: #333;
}

.ld-notif-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.ld-notif-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ---- Modals ---- */
.ld-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ld-modal.ld-open {
    display: flex;
}

.ld-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.ld-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ld-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.ld-modal-close:hover {
    color: #333;
}

.ld-modal h3, .ld-modal h4 {
    margin: 0 0 16px;
}

.ld-modal input[type="text"],
.ld-modal input[type="email"],
.ld-modal input[type="password"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.ld-modal input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.15);
}

.ld-modal-switch {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 14px;
}

.ld-modal-switch a {
    color: #0066cc;
    text-decoration: none;
}

.ld-modal-switch a:hover {
    text-decoration: underline;
}

.ld-modal hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ---- Profile Modal ---- */
.ld-profile-card {
    text-align: center;
}

.ld-profile-card img {
    margin-bottom: 12px;
}

.ld-profile-card h3 {
    margin-bottom: 8px;
}

.ld-profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
}

.ld-profile-comments {
    text-align: left;
    margin-top: 12px;
}

.ld-profile-comments h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.ld-profile-comment {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ld-profile-comment p {
    margin: 0 0 4px;
    font-size: 13px;
}

/* ---- Popular Posts ---- */
.ld-popular-posts {
    font-size: 14px;
}

.ld-popular-posts h4 {
    margin: 0 0 8px;
}

.ld-popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ld-popular-posts li {
    padding: 4px 0;
}

.ld-popular-posts a {
    text-decoration: none;
    color: #0066cc;
}

.ld-popular-posts a:hover {
    text-decoration: underline;
}

.ld-popular-stats {
    font-size: 12px;
    color: #888;
}

.ld-popular-empty {
    color: #888;
    font-size: 13px;
}

/* ---- Messages ---- */
.ld-message {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.ld-message-info {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #c5d9f7;
}

.ld-message-error {
    background: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8c5c5;
}

/* ---- Reply form container ---- */
.ld-reply-form-container {
    margin-top: 8px;
}

/* ========== ADMIN DESIGN SYSTEM ========== */
.ld-admin {
    --c-primary: #2563eb;
    --c-primary-hover: #1d4ed8;
    --c-primary-light: #eff6ff;
    --c-success: #059669;
    --c-success-light: #ecfdf5;
    --c-warning: #d97706;
    --c-warning-light: #fffbeb;
    --c-danger: #dc2626;
    --c-danger-light: #fef2f2;
    --c-text: #1e293b;
    --c-muted: #64748b;
    --c-border: #e2e8f0;
    --c-bg: #f1f5f9;
    --c-card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
}

/* ---------- Layout ---------- */
.ld-admin > h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 20px;
    padding: 0;
}

.ld-admin .ld-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.ld-admin .ld-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}

.ld-admin .ld-card-header h2,
.ld-admin .ld-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}

/* ---------- Stats Grid ---------- */
.ld-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ld-stat-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ld-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ld-stat-num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.1;
}

.ld-stat-label {
    display: block;
    font-size: 12px;
    color: var(--c-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ---------- Chart ---------- */
.ld-chart-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.ld-chart-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.ld-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding: 0 4px;
}

.ld-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.ld-bar {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, var(--c-primary), #60a5fa);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.ld-bar-label {
    font-size: 10px;
    color: var(--c-muted);
    margin-top: 6px;
    white-space: nowrap;
}

/* ---------- Grid Layout ---------- */
.ld-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.ld-admin-grid .ld-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Quick Actions ---------- */
.ld-quick-actions-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.ld-quick-actions-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.ld-quick-actions-card .button {
    margin-right: 8px;
}

/* ---------- Filters ---------- */
.ld-admin-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ld-admin-filters .button {
    font-size: 12px;
    min-height: 30px;
    line-height: 28px;
}

/* ---------- Tables ---------- */
.ld-admin table.wp-list-table {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ld-admin table.wp-list-table thead th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
}

.ld-admin table.wp-list-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 13px;
}

/* ---------- Badges ---------- */
.ld-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ld-badge-red { background: var(--c-danger-light); color: var(--c-danger); }
.ld-badge-orange { background: var(--c-warning-light); color: var(--c-warning); }
.ld-badge-green { background: var(--c-success-light); color: var(--c-success); }
.ld-badge-blue { background: var(--c-primary-light); color: var(--c-primary); }

.ld-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.ld-status-pending { background: var(--c-warning-light); color: var(--c-warning); }
.ld-status-approved { background: var(--c-success-light); color: var(--c-success); }

/* ---------- Author Meta ---------- */
.ld-author-meta {
    font-size: 11px;
    margin-top: 2px;
}

/* ---------- Comment Actions ---------- */
.ld-comment-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ld-comment-actions .button-small {
    font-size: 11px;
    min-height: 26px;
    line-height: 24px;
}

.ld-bulk-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* ---------- Admin Modals ---------- */
#ld-suspend-modal,
#ld-edit-user-modal,
#ld-profile-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

#ld-suspend-modal.ld-open,
#ld-edit-user-modal.ld-open,
#ld-profile-modal.ld-open {
    display: flex;
}

#ld-suspend-modal .ld-modal-backdrop,
#ld-edit-user-modal .ld-modal-backdrop,
#ld-profile-modal .ld-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
}

#ld-suspend-modal .ld-modal-content,
#ld-edit-user-modal .ld-modal-content,
#ld-profile-modal .ld-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

#ld-suspend-modal .ld-modal-close,
#ld-edit-user-modal .ld-modal-close,
#ld-profile-modal .ld-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 0;
}

#ld-suspend-modal .ld-modal-close:hover,
#ld-edit-user-modal .ld-modal-close:hover,
#ld-profile-modal .ld-modal-close:hover {
    color: #475569;
}

#ld-suspend-modal h3,
#ld-edit-user-modal h3,
#ld-profile-modal h3 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
}

/* ---------- Profile Modal ---------- */
.ld-profile { text-align: center; }

.ld-profile-header img {
    border-radius: 50%;
    margin-bottom: 14px;
    border: 3px solid var(--c-border);
}

.ld-profile-name {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
}

.ld-profile-title {
    display: inline-block;
    background: var(--c-primary-light);
    color: var(--c-primary);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ld-profile-status {
    display: block;
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 14px;
    text-transform: capitalize;
}

.ld-profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 16px 0;
}

.ld-profile-stats .ld-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--c-primary);
}

.ld-profile-stats .ld-stat {
    font-size: 12px;
    color: var(--c-muted);
}

.ld-profile-bio {
    color: var(--c-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.ld-profile-comments { text-align: left; }
.ld-profile-comments h4 { font-size: 14px; margin: 0 0 8px; }
.ld-profile-comment-list { list-style: none; padding: 0; margin: 0; }
.ld-profile-comment-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.ld-profile-comment-list li:last-child { border-bottom: none; }

/* ---------- SETTINGS PAGE ---------- */
.ld-settings-wrap {
    max-width: 800px;
}

.ld-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ld-settings-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.ld-settings-header .ld-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--c-primary);
    border-radius: 6px;
    transition: all 0.15s;
}

.ld-settings-header .ld-docs-link:hover {
    background: var(--c-primary);
    color: #fff;
}

.ld-settings-section {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.ld-settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    user-select: none;
}

.ld-settings-section-header:hover {
    background: #f1f5f9;
}

.ld-settings-section-header .ld-section-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.ld-settings-section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.ld-settings-section-header .ld-section-toggle {
    font-size: 12px;
    color: var(--c-muted);
    transition: transform 0.2s;
}

.ld-settings-section.open .ld-section-toggle {
    transform: rotate(180deg);
}

.ld-settings-section-body {
    padding: 20px 24px;
}

.ld-settings-section.closed .ld-settings-section-body {
    display: none;
}

.ld-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ld-field:last-child {
    border-bottom: none;
}

.ld-field-label {
    flex: 0 0 200px;
    padding-top: 4px;
}

.ld-field-label label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
}

.ld-field-label .ld-field-desc {
    display: block;
    font-size: 11px;
    color: var(--c-muted);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
}

.ld-field-input {
    flex: 1;
    min-width: 0;
}

.ld-field-input input[type="text"],
.ld-field-input input[type="number"],
.ld-field-input input[type="email"],
.ld-field-input select,
.ld-field-input textarea {
    width: 100%;
    max-width: 360px;
    padding: 7px 10px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--c-text);
    background: #fff;
    transition: border-color 0.15s;
}

.ld-field-input input:focus,
.ld-field-input select:focus,
.ld-field-input textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
    outline: none;
}

.ld-field-input textarea {
    max-width: 400px;
    min-height: 60px;
}

.ld-field-input input[type="number"] {
    max-width: 100px;
}

.ld-field-input .ld-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.ld-field-input .ld-checkbox-wrap label {
    font-size: 13px;
    cursor: pointer;
}

.ld-field-input .ld-post-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-field-input .ld-post-types label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.ld-field-input .ld-post-types label:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
}

.ld-field-input .ld-post-types input:checked + span {
    color: var(--c-primary);
    font-weight: 500;
}

/* ---------- Maintenance Buttons ---------- */
.ld-maintenance-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ld-maintenance-grid form {
    display: inline;
}

/* ---------- User Titles Table ---------- */
.ld-titles-table-wrap table {
    max-width: 500px;
}

.ld-titles-table-wrap td {
    padding: 6px 4px;
}

.ld-titles-table-wrap input {
    width: 100%;
    box-sizing: border-box;
}

/* ---------- Announcements ---------- */
.ld-announcements-wrap {
    max-width: 600px;
}

.ld-announcements-wrap table td {
    vertical-align: middle;
}

/* ---------- Save Button ---------- */
.ld-settings-save {
    padding: 20px 24px;
    border-top: 1px solid var(--c-border);
    text-align: right;
}

.ld-settings-save .button-primary {
    padding: 6px 24px;
    font-size: 14px;
}

/* ---------- Char counter (shared) ---------- */
.ld-char-counter {
    font-size: 11px;
    color: var(--c-muted);
    text-align: right;
}
.ld-char-counter .ld-char-count { font-weight: 600; }

.ld-formatting-help {
    font-size: 11px;
    color: var(--c-muted);
}

/* ---------- Reaction Bar ---------- */
.ld-reaction-bar {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ld-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s;
    color: #334155;
}
.ld-reaction-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.ld-reaction-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.ld-reaction-icon-wrap i {
    font-size: 22px;
    transition: transform 0.2s;
}
.ld-reaction-btn:hover .ld-reaction-icon-wrap i {
    transform: scale(1.3) rotate(-8deg);
}
.ld-reaction-label {
    font-weight: 600;
}
.ld-reaction-count {
    font-size: 13px;
    font-weight: 700;
    color: #a855f7;
    min-width: 20px;
    text-align: center;
}
.ld-reaction-btn-click {
    animation: ld-reaction-pop 0.4s ease;
}
@keyframes ld-reaction-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.ld-reaction-msg {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.ld-reaction-msg-success {
    color: #166534;
    background: linear-gradient(90deg, #f0fdf4, #dcfce7, #f0fdf4);
}
.ld-reaction-msg-error {
    color: #b91c1c;
    background: linear-gradient(90deg, #fef2f2, #fff1f2, #fef2f2);
}

/* ---------- Avatar Info ---------- */
.ld-avatar-info {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: 13px;
    border: 1px solid var(--c-border);
}

.ld-avatar-info h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

/* ---------- Popular Widget ---------- */
.ld-popular-widget { font-size: 14px; }
.ld-popular-widget h4 { margin: 0 0 8px; }
.ld-popular-widget ul { list-style: none; padding: 0; margin: 0; }
.ld-popular-widget li { padding: 4px 0; }
.ld-popular-widget a { text-decoration: none; color: var(--c-primary); }
.ld-popular-meta { display: block; font-size: 11px; color: var(--c-muted); }

/* ---------- Latest Comments Widget ---------- */
.ld-latest-widget { font-size: 14px; }
.ld-latest-widget h4 { margin: 0 0 8px; }
.ld-latest-widget ul { list-style: none; padding: 0; margin: 0; }
.ld-latest-widget li { padding: 6px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ld-latest-widget .ld-avatar-small { border-radius: 50%; flex-shrink: 0; }
.ld-latest-author { font-weight: 600; }
.ld-latest-text { color: #555; font-size: 13px; }
.ld-latest-post { font-size: 12px; text-decoration: none; color: var(--c-primary); }

/* ---------- Notification Bell (frontend/admin shared) ---------- */
.ld-notif-bell {
    position: relative;
    display: inline-block;
}
.ld-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    position: relative;
}
.ld-bell-btn:hover { color: var(--c-primary); }
.ld-bell-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--c-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.ld-notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 6px;
}
.ld-notif-list { padding: 0; }
.ld-notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.ld-notif-item:last-child { border-bottom: none; }
.ld-notif-unread { background: #f0f6fc; }
.ld-notif-msg { margin-bottom: 2px; color: var(--c-text); }
.ld-notif-time { font-size: 11px; color: var(--c-muted); }
.ld-notif-mark-read {
    font-size: 11px;
    color: var(--c-primary);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
}
.ld-notif-empty { padding: 20px; text-align: center; color: var(--c-muted); font-size: 13px; }

/* ---------- User Menu (shared) ---------- */
.ld-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ld-user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.ld-user-menu-toggle:hover { background: #f1f5f9; }
.ld-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 1000;
    margin-top: 4px;
}
.ld-user-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--c-text);
    text-decoration: none;
}
.ld-user-dropdown a:hover { background: #f1f5f9; }
.ld-guest-buttons { display: flex; gap: 8px; }
.ld-guest-buttons a {
    color: var(--c-primary);
    text-decoration: none;
    font-size: 13px;
}
.ld-guest-buttons a:hover { text-decoration: underline; }
.ld-avatar-small { border-radius: 50%; vertical-align: middle; }
.ld-user-name { font-size: 13px; font-weight: 500; }
.ld-dropdown-arrow { font-size: 10px; color: var(--c-muted); }

/* ---------- User Title Badge ---------- */
.ld-user-title {
    display: inline-block;
    background: #e2e8f0;
    padding: 1px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    color: #475569;
    margin-left: 6px;
    vertical-align: middle;
}

/* ---------- Auth Tabs ---------- */
.ld-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 20px;
}
.ld-auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    font-family: inherit;
}
.ld-auth-tab.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}
.ld-auth-tab:hover {
    color: var(--c-text);
}
.ld-auth-panel {
    display: none;
}
.ld-auth-panel.active {
    display: block;
}

/* ---------- User Icon Button ---------- */
.ld-user-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    font-size: 24px;
    display: flex;
    align-items: center;
}
.ld-user-icon-btn:hover {
    color: var(--c-primary);
}

/* ---------- Guest Notif CTA ---------- */
.ld-notif-cta {
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--c-muted);
    border-top: 1px solid var(--c-border);
    background: #f8fafc;
}
.ld-notif-cta i {
    margin-right: 6px;
}

