/* BlueBook Feed Sync Admin — 4-Tab Redesign v4.0 */

.bbfsync-admin-wrap {
    max-width: 920px;
}

.bbfsync-admin-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    padding: 9px 0;
}

.bbfsync-admin-logo svg {
    vertical-align: middle;
}

/* ========== TABS (client-side, 4 tabs) ========== */
.bbfsync-tabs.nav-tab-wrapper {
    margin-bottom: 0;
    border-bottom: 2px solid #e0e3e8;
}

.bbfsync-tabs .nav-tab {
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.bbfsync-tabs .nav-tab:hover {
    color: #1877F2;
    background: transparent;
}

.bbfsync-tabs .nav-tab-active {
    color: #1877F2;
    border-bottom-color: #1877F2;
    font-weight: 600;
    background: transparent;
}

.bbfsync-tab-panel {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px 28px;
    margin-bottom: 0;
}

/* ========== FORM TABLE ========== */
.bbfsync-form-table th {
    width: 200px;
    vertical-align: top;
    padding-top: 16px;
}

.bbfsync-form-table td {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ========== TOGGLE SWITCH ========== */
.bbfsync-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.bbfsync-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bbfsync-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.bbfsync-toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.bbfsync-toggle input:checked + .bbfsync-toggle-slider {
    background-color: #1877F2;
}

.bbfsync-toggle input:checked + .bbfsync-toggle-slider::before {
    transform: translateX(22px);
}

/* ========== LAYOUT & SCHEME PICKERS ========== */
.bbfsync-layout-picker,
.bbfsync-scheme-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bbfsync-layout-option,
.bbfsync-scheme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 22px;
    border: 2px solid #e0e3e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    background: #fafbfc;
}

.bbfsync-layout-option:hover,
.bbfsync-scheme-option:hover {
    border-color: #1877F2;
    background: #f8faff;
}

.bbfsync-layout-option.selected,
.bbfsync-scheme-option.selected {
    border-color: #1877F2;
    background: #f0f6ff;
    box-shadow: 0 0 0 1px #1877F2;
}

.bbfsync-layout-option input,
.bbfsync-scheme-option input {
    margin-bottom: 6px;
}

/* Scheme Swatches */
.bbfsync-scheme-swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 4px;
    border: 2px solid #ddd;
}

.bbfsync-swatch-inherit { background: linear-gradient(135deg, #f0f0f1 50%, #2271b1 50%); }
.bbfsync-swatch-light   { background: #ffffff; }
.bbfsync-swatch-dark    { background: #1e1e1e; }
.bbfsync-swatch-custom  { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }

/* ========== COLOR FIELD ========== */
.bbfsync-color-field-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.bbfsync-hex-input {
    width: 100px !important;
    font-family: monospace;
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    margin-top: 2px;
}

/* ========== CUSTOM PALETTE ========== */
.bbfsync-custom-palette {
    background: #f8fafc;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 10px 20px 20px;
    margin-top: 10px;
}

.bbfsync-custom-palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.bbfsync-custom-palette-header h3 {
    margin: 10px 0;
}

.bbfsync-reset-palette {
    font-size: 12px !important;
    color: #666 !important;
}

.bbfsync-custom-palette h3 {
    margin-top: 10px;
}

/* ========== ICON PICKER ========== */
.bbfsync-icon-picker {
    display: flex;
    gap: 10px;
}

.bbfsync-icon-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e0e3e8;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.bbfsync-icon-option:hover {
    border-color: #1877F2;
}

/* ========== SECTION DIVIDERS ========== */
.bbfsync-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
}

.bbfsync-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bbfsync-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 2px;
    padding: 0;
}

.bbfsync-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

/* Subsection titles (Background, Typography — flattened) */
.bbfsync-subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 4px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

/* ========== CONNECTION STATUS BANNER ========== */
.bbfsync-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.bbfsync-status-connected {
    background: #ecf7ed;
    border: 1px solid #b8dab9;
    color: #0a6c2d;
}

.bbfsync-status-needs-setup {
    background: #fef9e7;
    border: 1px solid #f0d77f;
    color: #7d5e00;
}

.bbfsync-status-icon {
    font-size: 18px;
    line-height: 1;
}

/* ========== ADVANCED SECTION ========== */
.bbfsync-advanced-section {
    margin: 20px 0;
}

.bbfsync-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
    transition: background 0.2s;
    width: auto;
}

.bbfsync-advanced-toggle:hover {
    background: #eee;
}

.bbfsync-advanced-toggle.open {
    border-radius: 6px 6px 0 0;
    border-bottom-color: transparent;
}

.bbfsync-advanced-toggle .bbfsync-guide-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.bbfsync-advanced-toggle.open .bbfsync-guide-arrow {
    transform: rotate(180deg);
}

.bbfsync-advanced-content {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 4px 16px 16px;
    background: #fafafa;
}

/* ========== STICKY SAVE BAR ========== */
.bbfsync-sticky-save {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 1px solid #e0e3e8;
    padding: 12px 0;
    margin-top: 16px;
}

.bbfsync-sticky-save-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bbfsync-sticky-save .button-primary {
    margin: 0 !important;
}

/* ========== UNSAVED CHANGES DOT ========== */
.bbfsync-unsaved-dot {
    width: 10px;
    height: 10px;
    background: #d63638;
    border-radius: 50%;
    display: inline-block;
    animation: bbfsync-pulse 1.5s ease-in-out infinite;
}

@keyframes bbfsync-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== FEATURE CARDS (Components tab) ========== */
.bbfsync-feature-card {
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.bbfsync-feature-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bbfsync-feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(to bottom, #fafbfc, #f5f6f8);
    border-bottom: 1px solid #e0e3e8;
}

.bbfsync-feature-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.bbfsync-feature-card-body {
    padding: 4px 20px 10px;
}

.bbfsync-feature-card.bbfsync-card-disabled {
    opacity: 0.55;
    border-color: #eee;
}

.bbfsync-feature-card.bbfsync-card-disabled:hover {
    box-shadow: none;
}

.bbfsync-feature-card.bbfsync-card-disabled .bbfsync-feature-card-header {
    background: #f6f7f7;
}

/* ========== FEED SELECTOR BAR — Single row with Manage dropdown ========== */
.bbfsync-feed-bar {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 0;
    margin: 16px 0 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.bbfsync-feed-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 12px 16px;
}

.bbfsync-feed-spacer {
    flex: 1;
}

.bbfsync-feed-label {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.bbfsync-feed-select {
    min-width: 180px;
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    border: 1px solid #8c8f94;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}

.bbfsync-feed-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f6ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #d6e4f5;
}
.bbfsync-feed-shortcode code {
    background: transparent;
    padding: 0;
    font-size: 12px;
    color: #1877F2;
}
.bbfsync-copy-shortcode {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    line-height: 1;
}

.bbfsync-feed-btn {
    font-size: 12px !important;
    padding: 4px 12px !important;
    min-height: 28px !important;
    border-radius: 6px !important;
}

.bbfsync-feed-btn-new {
    background: #1877F2 !important;
    color: #fff !important;
    border-color: #1877F2 !important;
}
.bbfsync-feed-btn-new:hover {
    background: #166FE5 !important;
    color: #fff !important;
}

/* ========== MANAGE DROPDOWN ========== */
.bbfsync-manage-dropdown {
    position: relative;
}

.bbfsync-manage-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bbfsync-manage-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.bbfsync-manage-toggle.open .bbfsync-manage-arrow {
    transform: rotate(180deg);
}

.bbfsync-manage-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-width: 170px;
    padding: 4px 0;
    animation: bbfsync-dropdown-in 0.15s ease;
}

@keyframes bbfsync-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.bbfsync-manage-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    text-align: left;
    transition: background 0.15s;
}

.bbfsync-manage-item:hover {
    background: #f0f6ff;
    color: #1877F2;
}

.bbfsync-manage-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: #9ca3af;
}

.bbfsync-manage-item:hover .dashicons {
    color: #1877F2;
}

.bbfsync-manage-item-danger {
    color: #d63638;
}

.bbfsync-manage-item-danger:hover {
    background: #fef2f2;
    color: #d63638;
}

.bbfsync-manage-item-danger .dashicons,
.bbfsync-manage-item-danger:hover .dashicons {
    color: #d63638;
}

.bbfsync-manage-sep {
    height: 1px;
    background: #eef0f3;
    margin: 4px 0;
}

/* Inline forms for feed actions (POST) */
.bbfsync-inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* ========== CONNECTION STATUS ========== */
#bbfsync-connection-status {
    margin-left: 10px;
    font-style: italic;
}

#bbfsync-connection-status.success { color: #00a32a; }
#bbfsync-connection-status.error   { color: #d63638; }

/* ========== CONDITIONAL PX FIELDS ========== */
.bbfsync-conditional-px,
.bbfsync-conditional-px-label,
.bbfsync-likebox-width-px,
.bbfsync-likebox-width-label {
    margin-left: 6px;
}

/* ========== HEADER STYLE PICKER ========== */
.bbfsync-header-style-picker {
    display: flex;
    gap: 16px;
}

.bbfsync-header-style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border: 2px solid #e0e3e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 160px;
    text-align: center;
    background: #fafbfc;
}

.bbfsync-header-style-option:hover {
    border-color: #999;
}

.bbfsync-header-style-option.selected {
    border-color: #1877F2;
    box-shadow: 0 0 0 1px #1877F2;
    background: #f0f6ff;
}

.bbfsync-header-style-option input[type="radio"] { display: none; }

.bbfsync-style-preview {
    width: 120px;
    height: 64px;
    border-radius: 6px;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.bbfsync-style-visual .bbfsync-sp-cover {
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.bbfsync-style-visual .bbfsync-sp-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid #fff;
    position: absolute; top: 19px; left: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.bbfsync-style-visual .bbfsync-sp-line1 {
    position: absolute; top: 40px; left: 10px;
    width: 50px; height: 6px; background: #ccc; border-radius: 3px;
}
.bbfsync-style-visual .bbfsync-sp-line2 {
    position: absolute; top: 50px; left: 10px;
    width: 80px; height: 4px; background: #ddd; border-radius: 2px;
}

.bbfsync-style-text {
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.bbfsync-style-text .bbfsync-sp-icon {
    width: 20px; height: 20px; border-radius: 4px; background: #1877F2;
}
.bbfsync-style-text .bbfsync-sp-text-line {
    width: 60px; height: 8px; background: #bbb; border-radius: 4px;
}

.bbfsync-style-label {
    font-weight: 600; font-size: 13px; color: #333;
}

.bbfsync-style-desc {
    font-size: 11px; color: #888; line-height: 1.3;
}

/* ========== VISUAL STYLE PICKER (4 presets) ========== */
.bbfsync-visual-style-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bbfsync-vstyle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border: 2px solid #e0e3e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 130px;
    text-align: center;
    background: #fafbfc;
}
.bbfsync-vstyle-option:hover { border-color: #999; }
.bbfsync-vstyle-option.selected {
    border-color: #1877F2;
    box-shadow: 0 0 0 1px #1877F2;
    background: #f0f6ff;
}
.bbfsync-vstyle-option input[type="radio"] { display: none; }

.bbfsync-vstyle-preview {
    width: 110px;
    height: 56px;
    border-radius: 6px;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

/* Classic mini preview */
.bbfsync-vsp-classic {
    background: linear-gradient(to bottom, #667eea 45%, #f0f2f5 45%);
}
.bbfsync-vsp-classic::after {
    content: '';
    position: absolute;
    left: 10px; top: 20px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Compact mini preview */
.bbfsync-vsp-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}
.bbfsync-vsp-compact::before {
    content: '';
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}
.bbfsync-vsp-compact::after {
    content: '';
    width: 50px; height: 6px;
    background: #bbb;
    border-radius: 3px;
}

/* Banner mini preview */
.bbfsync-vsp-banner {
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1)), linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: flex-end;
    padding: 8px;
}
.bbfsync-vsp-banner::after {
    content: '';
    width: 40px; height: 5px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
}

/* Clean mini preview */
.bbfsync-vsp-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.bbfsync-vsp-clean::before {
    content: '';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ccc;
}
.bbfsync-vsp-clean::after {
    content: '';
    width: 40px; height: 5px;
    background: #bbb;
    border-radius: 3px;
}

.bbfsync-vstyle-label { font-weight: 600; font-size: 12px; color: #333; }
.bbfsync-vstyle-desc { font-size: 10px; color: #888; line-height: 1.3; }

/* ========== BACKGROUND TYPE PICKER ========== */
.bbfsync-bg-type-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bbfsync-bg-type-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 2px solid #e0e3e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.2s;
    background: #fafbfc;
}
.bbfsync-bg-type-option:hover { border-color: #999; }
.bbfsync-bg-type-option.selected {
    border-color: #1877F2;
    background: #f0f6ff;
}
.bbfsync-bg-type-option input[type="radio"] { display: none; }

/* Gradient preview swatch */
.bbfsync-gradient-preview {
    display: inline-block;
    width: 120px;
    height: 24px;
    border-radius: 4px;
    margin-left: 12px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

/* ========== SETUP GUIDE ========== */
.bbfsync-setup-guide {
    margin: 24px 0 10px;
}

.bbfsync-setup-guide-content {
    background: #fff;
    border: 1px solid #c2d7f2;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px 24px 24px;
}
.bbfsync-setup-guide-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin: 20px 0 8px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}
.bbfsync-setup-guide-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.bbfsync-setup-guide-content ol {
    margin: 8px 0 12px 20px;
    line-height: 1.7;
}
.bbfsync-setup-guide-content ol li {
    margin-bottom: 4px;
}
.bbfsync-setup-guide-content p {
    line-height: 1.6;
    margin: 8px 0;
}
.bbfsync-setup-guide-content a {
    color: #1877F2;
    text-decoration: underline;
}

.bbfsync-code-block {
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
}
.bbfsync-code-block code {
    background: transparent;
    padding: 0;
    font-size: 12px;
}

.bbfsync-guide-tip {
    background: #fef9e7;
    border-left: 4px solid #f0c929;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    margin: 12px 0;
}

/* ========== TOKEN MASK ========== */
.bbfsync-token-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f6f7f7;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    margin-bottom: 4px;
}

.bbfsync-token-mask {
    font-family: monospace;
    font-size: 13px;
    color: #50575e;
    letter-spacing: 1px;
    word-break: break-all;
    background: transparent;
    padding: 0;
}

.bbfsync-token-badge {
    font-size: 11px;
    color: #888;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ========== INLINE NOTICE ========== */
.bbfsync-inline-notice {
    display: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    animation: bbfsync-fade-in 0.2s ease;
}

.bbfsync-inline-notice.bbfsync-notice-success {
    color: #0a6c2d;
    background: #ecf7ed;
}

.bbfsync-inline-notice.bbfsync-notice-error {
    color: #8b1a1a;
    background: #fbeaea;
}

@keyframes bbfsync-fade-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== COLLAPSIBLE CARDS ========== */
.bbfsync-card {
    border: 1px solid #dcdde1;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bbfsync-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
    line-height: 1.4;
}

.bbfsync-card-header:hover {
    background: #eef0f3;
}

.bbfsync-card-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
    color: #888;
    flex-shrink: 0;
    margin-left: 12px;
}

.bbfsync-card-header.open .bbfsync-card-arrow {
    transform: rotate(180deg);
}

.bbfsync-card-body {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ========== SHORTCODE REFERENCE TABLE ========== */
.bbfsync-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bbfsync-ref-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: #f8f9fa;
    border-bottom: 2px solid #dcdde1;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
}

.bbfsync-ref-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.bbfsync-ref-table tbody tr:hover {
    background: #fafbfc;
}

.bbfsync-ref-table code {
    background: #e8f0fe;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    color: #1a56db;
}

/* ========== BOTTOM SECTION SEPARATOR ========== */
.bbfsync-bottom-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.bbfsync-bottom-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}

/* ========== SETUP GUIDE (inside card) ========== */
.bbfsync-card.bbfsync-setup-guide .bbfsync-card-header {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
    color: #1a56db;
}

.bbfsync-card.bbfsync-setup-guide .bbfsync-card-header:hover {
    background: linear-gradient(135deg, #e4efff 0%, #d6e6fc 100%);
}

.bbfsync-card.bbfsync-setup-guide {
    border-color: #c2d7f2;
}

/* ========== PLUGIN FOOTER ========== */
.bbfsync-plugin-footer {
    margin-top: 24px;
    padding: 12px 0;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #e8e8e8;
}

/* ========== MOBILE ========== */
@media (max-width: 782px) {
    .bbfsync-tab-panel {
        padding: 16px;
    }
    .bbfsync-feed-bar-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .bbfsync-feed-spacer {
        display: none;
    }
    .bbfsync-card-body {
        padding: 16px;
    }
    .bbfsync-ref-table thead th,
    .bbfsync-ref-table td {
        padding: 8px 10px;
    }
    .bbfsync-header-style-picker {
        flex-direction: column;
    }
    .bbfsync-header-style-option {
        width: 100%;
    }
    .bbfsync-manage-menu {
        right: auto;
        left: 0;
    }
}
