.emailotp-digits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

input.emailotp-digit {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #ffffff;
    color: #333333;
}

input.emailotp-digit:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.4);
}
/* ===== Thread Visitors Plugin ===== */
:root {
    --tv-bg: #ffffff;
    --tv-border: #e2e8f0;
    --tv-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --tv-radius: 12px;
    --tv-header-bg: /*linear-gradient(135deg, #eef2ff, #faf5ff)*/ #007adb;
    --tv-title-color: /*#1e293b*/#ffffff ;
    --tv-text: #475569;
    --tv-text-muted: #94a3b8;
    --tv-accent: #6366f1;
    --tv-accent-hover: #4f46e5;
    --tv-online: #22c55e;
    --tv-offline: #cbd5e1;
    --tv-section-bg: #f8fafc;
    --tv-hover-bg: #f1f5f9;
    --tv-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-container {
    background: var(--tv-bg);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius);
    box-shadow: var(--tv-shadow);
    margin: 16px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--tv-header-bg);
    border-bottom: 1px solid var(--tv-border);
    cursor: pointer;
    user-select: none;
}

.tv-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tv-title-color);
}

.tv-title-icon {
    display: flex;
    align-items: center;
    color: /*var(--tv-accent)*/ var(--tv-title-color);
}

.tv-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tv-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: /*var(--tv-text-muted)*/var(--tv-title-color);
    transition: all var(--tv-transition);
}

.tv-toggle:hover {
    color: var(--tv-title-color);
}

.tv-chevron {
    transition: transform var(--tv-transition);
}

.tv-container.collapsed .tv-chevron {
    transform: rotateX(-90deg);
}

.tv-body {
    padding: 16px 20px;
    transition: all var(--tv-transition);
}

.tv-container.collapsed .tv-body {
    display: none;
}

.tv-section {
    margin-bottom: 16px;
}

.tv-section:last-child {
    margin-bottom: 0;
}

.tv-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tv-text-muted);
    margin-bottom: 10px;
}

.tv-section-title svg {
    flex-shrink: 0;
}

.tv-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--tv-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.tv-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: var(--tv-section-bg);
    border: 1px solid var(--tv-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--tv-transition);
    position: relative;
}

.tv-item:hover {
    background: var(--tv-hover-bg);
    border-color: var(--tv-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.tv-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tv-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tv-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--tv-bg);
}

.tv-online-dot.online {
    background: var(--tv-online);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.tv-online-dot.offline {
    background: var(--tv-offline);
}

.tv-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--tv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.tv-name a {
    color: var(--tv-text);
    text-decoration: none;
}

.tv-name a:hover {
    color: var(--tv-accent);
}

.tv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
}

.tv-empty-icon {
    color: var(--tv-text-muted);
    margin-bottom: 12px;
    opacity: 0.5;
}

.tv-empty p {
    margin: 0;
    font-size: 13px;
    color: var(--tv-text-muted);
}

.tv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--tv-border);
    margin-top: 12px;
    font-size: 12px;
    color: var(--tv-text-muted);
}

.tv-total strong {
    color: var(--tv-accent);
}

.tv-hide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: /*var(--tv-text-muted)*/var(--tv-title-color);
    transition: all var(--tv-transition);
}

.tv-hide-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.tv-eye-slash {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transform-origin: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tv-hidden="1"] .tv-eye-slash {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.15s;
}

/* ===== Tooltip ===== */
.tv-item[data-tv-time]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--tv-transition);
    z-index: 100;
}

.tv-item[data-tv-time]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===== Slide-out Panel Mode ===== */
.tv-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tv-transition);
}

.tv-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tv-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--tv-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow-y: auto;
    transition: right var(--tv-transition);
}

.tv-panel.open {
    right: 0;
}

.tv-panel .tv-container {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100%;
}

.tv-panel .tv-header {
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tv-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tv-hover-bg);
    border-radius: 8px;
    cursor: pointer;
    color: var(--tv-text);
    transition: all var(--tv-transition);
}

.tv-panel-close:hover {
    background: #fef2f2;
    color: #ef4444;
}

.tv-panel-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--tv-bg);
    border: 1px solid var(--tv-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    color: var(--tv-title-color);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--tv-transition);
}

.tv-panel-toggle-btn:hover {
    background: var(--tv-accent);
    color: #fff;
    border-color: var(--tv-accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .tv-panel {
        width: 100%;
        right: -100%;
    }

    .tv-container {
        margin: 12px 0;
    }

    .tv-body {
        padding: 12px 16px;
    }

    .tv-name {
        max-width: 80px;
        font-size: 12px;
    }
}

/* ===== Loading State ===== */
.tv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tv-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--tv-border);
    border-top-color: var(--tv-accent);
    border-radius: 50%;
    animation: tv-spin 0.6s linear infinite;
}

@keyframes tv-spin {
    to { transform: rotate(360deg); }
}

/* ===== Entrance Animation ===== */
.tv-item {
    animation: tv-fade-in 0.3s ease forwards;
    opacity: 0;
}

@keyframes tv-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tv-item:nth-child(1) { animation-delay: 0ms; }
.tv-item:nth-child(2) { animation-delay: 30ms; }
.tv-item:nth-child(3) { animation-delay: 60ms; }
.tv-item:nth-child(4) { animation-delay: 90ms; }
.tv-item:nth-child(5) { animation-delay: 120ms; }
.tv-item:nth-child(6) { animation-delay: 150ms; }
.tv-item:nth-child(7) { animation-delay: 180ms; }
.tv-item:nth-child(8) { animation-delay: 210ms; }
.tv-item:nth-child(9) { animation-delay: 240ms; }
.tv-item:nth-child(10) { animation-delay: 270ms; }

/* ===== Show All Toggle ===== */
.tv-show-all {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.tv-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px dashed var(--tv-border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--tv-accent);
    transition: all var(--tv-transition);
}

.tv-show-all-btn:hover {
    background: var(--tv-hover-bg);
    border-color: var(--tv-accent);
    border-style: solid;
}

.tv-show-all-btn svg {
    transition: transform var(--tv-transition);
}

.tv-show-all-btn.expanded svg {
    transform: rotateX(-180deg);
}

.tv-hidden-list {
    margin-top: 8px;
}/* PM Edit Plugin Styles */

.postbit_pm_edit_button span {
    background-position: 0 -160px;
}

.pm_edit_history_link span {
    background-image: url("https://8upload.com/image/092082486a806b7f/history.png") !important;
    background-size: 16px;
}

.pm_edit_notice {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

.pm_edit_history_list {
    padding: 10px;
}

.pm_edit_history_item {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pm_edit_history_header {
    font-size: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.pm_edit_history_content {
    margin-top: 10px;
}

/* Side-by-side diff container */
.pm_edit_diff_container {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.pm_edit_diff_side {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.pm_edit_diff_label {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm_edit_original .pm_edit_diff_label {
    background: #f5f5f5;
    color: #d32f2f;
    border-bottom: 2px solid #ffcdd2;
}

.pm_edit_edited .pm_edit_diff_label {
    background: #f5f5f5;
    color: #388e3c;
    border-bottom: 2px solid #c8e6c9;
}

.pm_edit_diff_content {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Inline spans within diff content */
.pm_edit_diff_content span {
    padding: 1px 2px;
    margin: 0 1px;
    border-radius: 2px;
    display: inline;
}

/* Highlight changed content - inline style */
.pm_edit_diff_content .pm_edit_old {
    background-color: #ffebee;
    color: #c62828;
    text-decoration: line-through;
    padding: 1px 2px;
    border-radius: 2px;
}

.pm_edit_diff_content .pm_edit_new {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1px 2px;
    border-radius: 2px;
}

.pm_edit_history_reason {
    margin-top: 12px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    font-size: 12px;
    border-radius: 0 3px 3px 0;
}

.pm_edit_history_empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.pm_edit_history_divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

/* Quick edit popup styles */
#quickedit_form textarea {
    width: 100%;
    min-height: 150px;
    font-family: inherit;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#quickedit_form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.2);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pm_edit_diff_container {
        flex-direction: column;
    }
    
    .pm_edit_history_content {
        flex-direction: column;
    }
}

/* Diff ellipsis for separating change regions */
.pm_edit_diff_ellipsis {
    color: #999;
    font-weight: bold;
    margin: 0 5px;
}

/* Collapsed section styles */
.pm_edit_collapsed {
    cursor: pointer;
    color: #666;
    font-size: 12px;
}

.pm_edit_collapsed:hover {
    color: #2196f3;
}

.pm_edit_collapse_content {
    color: #999;
}

.pm_edit_ellipsis {
    color: #666;
    font-weight: bold;
}

.pm_edit_expand_btn {
    color: #2196f3;
    text-decoration: underline;
    font-size: 11px;
}

.pm_edit_expanded_content {
    color: inherit;
}
