/* Wrapper */
.cff-wrapper {
    background: transparent;
}

/* Card layout */
.cff-post-card {
    margin-bottom: 20px;
}

.cff-post-card-inner {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Header */
.cff-post-header {
    padding: 16px 20px 8px;
}

.cff-header-left {
    display: flex;
    align-items: center;
}

/* Avatar */
.cff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.cff-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.cff-post-header-text {
    margin-left: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cff-post-author {
    font-weight: 600;
    font-size: 16px;
}

.cff-post-meta {
    font-size: 13px;
    color: #7b809a;
}

/* Pin */
.cff-pin-icon,
.cff-pin-toggle {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    color: #f7c948;
    text-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.cff-pin-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* default pin look when not pinned */
.cff-pin-toggle {
    color: #cfd3df;
    opacity: 0.6;
}

.cff-pin-toggle.is-pinned {
    transform: translateY(-1px);
}

/* Pinned posts highlight */
.cff-post-card.cff-post-pinned .cff-pin-toggle,
.cff-post-card.cff-post-pinned .cff-pin-icon {
    color: #f7c948;
    opacity: 1;
    transform: translateY(-1px);
}

.cff-post-card.cff-post-pinned .cff-post-card-inner {
    border: 1px solid rgba(247, 201, 72, 0.7);
    box-shadow: 0 10px 26px rgba(247, 201, 72, 0.25);
}

/* Body */
.cff-post-body {
    padding: 0 20px 8px;
}

.cff-post-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

/* Vimeo / iframe wrapper */
.cff-post-embed {
    margin: 10px 0;
    line-height: 0;          /* kills extra line-height around inline iframe */
}

/* Normalize all embeds (Vimeo, YouTube, etc.) */
.cff-post-embed iframe {
    display: block;          /* no inline whitespace */
    width: 100%;             /* fill the card width */
    max-width: 100%;
    height: auto;            /* ignore the big fixed height from the embed code */
    aspect-ratio: 16 / 9;    /* keep nice video shape */
}


/* Media (image/video) */
.cff-post-media {
    margin: 10px 0;
}

.cff-post-media-img,
.cff-post-media-video {
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.cff-post-media-video {
    background: #000;
}

.cff-post-media-link {
    display: inline-block;
    font-size: 13px;
    color: #2155ff;
    text-decoration: underline;
}

/* Post text content */
.cff-post-content {
    font-size: 14px;
    line-height: 1.5;
    transition: max-height 0.25s ease;
}

/* Footer */
.cff-post-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f4;
}

.cff-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Likes heart button */
.cff-like-btn,
.cff-actions .cff-like-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 2px 2px;
}

.cff-like-icon {
    display: inline-block;
    /* Default: not liked yet = soft grey */
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.15s ease;
}


/* Likes + comments pills */
.cff-stats-pill,
.cff-stats-pill.badge,
.cff-comment-pill,
.cff-comment-pill.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 999px;
    font-size: 13px;
    background: transparent !important;
    color: #2155ff !important;
    text-decoration: none;
    border: none !important;
    cursor: pointer;
}

/* Tip button */
.cff-tip-btn {
    margin-left: 1px;
    border-radius: 999px;
    border: 1px solid #2155ff;
    background: #fff;
    color: #2155ff;
    padding: 2px 2px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.cff-tip-icon {
    font-size: 21px;
}

.cff-tip-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* "View comments" row */
.cff-view-comments-row {
    margin-top: 8px;
}

.cff-view-comments-link {
    font-size: 13px;
    color: #2155ff;
    text-decoration: underline;
}

/* CATEGORY BAR */
.cff-category-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
}

.cff-cats-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cff-cat-filter-btn {
    border-radius: 999px;
    padding: 4px 12px;
    border: none;
    background: #f1f5fb;
    color: #2155ff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cff-cat-filter-btn .cff-cat-icon {
    font-size: 14px;
}

.cff-cat-filter-btn.cff-cat-active {
    background: #2155ff;
    color: #ffffff;
}

/* Hamburger (more) button */
.cff-cat-more-btn {
    margin-left: auto;
    border-radius: 999px;
    padding: 4px 10px;
    border: none;
    background: #f2f6fc;
    color: #000000;
    cursor: pointer;
    display: none; /* JS / media query will turn this on when needed */
}

.cff-hamburger-icon {
    font-size: 16px;
}

/* Clean full background + black text for overflow menu */
.cff-cat-more-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #000000;
    border-radius: 14px;
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 50;
}

/* Make sure the dropdown buttons inside are fully black text */
.cff-cat-more-menu .cff-cat-filter-btn {
    background: transparent !important;
    color: #ffffff !important;
}


/* Buttons inside dropdown */
.cff-cat-more-menu .cff-cat-filter-btn {
    display: block;
    width: 100%;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
    justify-content: flex-start;
    padding: 8px 16px;
    font-weight: 500;
}

/* Hover / active state in dropdown */
.cff-cat-more-menu .cff-cat-filter-btn:hover,
.cff-cat-more-menu .cff-cat-filter-btn.cff-cat-active {
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

/* FORM ELEMENTS */
.cff-input,
.cff-textarea,
.cff-select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e2ee;
    padding: 8px 10px;
    font-size: 14px;
}

.cff-form-row {
    margin-top: 10px;
}

.cff-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cff-form-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
}

.cff-btn {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 14px;
}

.cff-btn-primary {
    background: #2155ff;
    color: #fff;
}

.cff-btn-secondary {
    background: #f5f5f9;
    color: #333;
}

.cff-btn-danger {
    background: #ffebee;
    color: #c62828;
}

.cff-form-status {
    font-size: 13px;
    color: #7b809a;
}

/* Edit indicator */
.cff-edit-indicator {
    font-size: 13px;
    background: #fff7e0;
    padding: 4px 8px;
    border-radius: 8px;
}

/* Admin actions */
.cff-admin-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.cff-admin-edit,
.cff-admin-delete {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #e2e2ee;
    background: #f9f9fc;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

/* Like state */
.cff-like-btn.cff-liked .cff-like-icon {
    transform: scale(1.2);
    font-weight: bold;
    color: #ff4b5c; /* full red when liked */
}

.cff-like-btn.cff-liked {
    opacity: 0.9;
}


/* ---------- CATEGORY MANAGER (ADMIN) ---------- */

.cff-cat-manager {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.cff-cat-manager-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cff-cat-manager-status {
    font-size: 12px;
    color: #64748b;
}

.cff-cat-manager-advanced {
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 10px;
}

.cff-cat-manager-toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cff-cat-manager-toggle-arrow {
    font-size: 14px;
    transition: transform 0.15s ease;
}

.cff-cat-manager-body {
    display: none;
    margin-top: 8px;
}

.cff-cat-manager-advanced.is-open .cff-cat-manager-body {
    display: block;
}

.cff-cat-manager-item {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1.6fr)
        minmax(0, 1.1fr)
        minmax(0, 1.4fr)
        minmax(0, 1.8fr)
        auto
        auto;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}

.cff-cat-manager-empty {
    font-size: 13px;
    color: #7b809a;
    padding: 4px 0;
}

.cff-cat-sort-handle {
    cursor: grab;
    font-size: 16px;
    padding: 0 4px;
    color: #7b809a;
}

.cff-cat-font-input {
    font-size: 12px;
}

.cff-cat-color-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.cff-cat-color-row {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #e2e2ee;
    padding: 3px 6px;
}

.cff-cat-color-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
}

.cff-cat-color-input {
    width: 30px;
    height: 28px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.cff-cat-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 999px;
}

.cff-cat-color-input::-webkit-color-swatch {
    border-radius: 999px;
    border: none;
}

.cff-cat-color-hex,
.cff-cat-text-color-hex {
    border: none;
    box-shadow: none;
    padding: 3px 4px;
    width: 90px;
    font-size: 12px;
}

.cff-cat-color-row .cff-input:focus {
    outline: none;
}

.cff-cat-manager-status-global {
    margin-top: 6px;
    font-size: 12px;
    color: #7b809a;
}

/* ---------- DESKTOP EXTRA ---------- */

/* On desktop, make comment pill ~25% larger than likes text */
@media (min-width: 768px) {
    .cff-comment-pill,
    .cff-comment-pill.badge {
        font-size: 16px;
    }
}

/* ---------- DESKTOP MEDIA OVERRIDE ----------
   Ensure full image is visible on desktop (no cropping) */
@media (min-width: 768px) {
    .cff-post-media-img,
    .cff-media-slider .cff-post-media-img,
    .cff-post-media-video {
        max-height: none;
        height: auto;
        object-fit: contain;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
    .cff-post-card-inner {
        border-radius: 14px;
    }

    .cff-post-header,
    .cff-post-body,
    .cff-post-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* icons + text 25% bigger on mobile (heart, likes pill, comment pill) */
    .cff-like-btn,
    .cff-actions .cff-like-btn {
        font-size: 25px !important;
    }

    .cff-stats-pill,
    .cff-stats-pill.badge,
    .cff-comment-pill,
    .cff-comment-pill.badge {
        font-size: 16px !important;
        padding: 0 4px !important;
    }

    .cff-form-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .cff-cat-more-btn {
        display: inline-flex;
    }
}

/* ---------- TIP MODAL (Authorize.Net Simple Checkout) ---------- */

.cff-tip-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cff-tip-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* FULL-SCREEN dialog on all devices */
.cff-tip-modal {
    position: relative;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cff-tip-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #6b7280;
    z-index: 2;
}

/* Body holds the iframe and gives space for the close button */
.cff-tip-modal-body {
    flex: 1;
    padding: 40px 10px 10px;
    display: flex;
    flex-direction: column;
}

/* Iframe fills remaining space */
.cff-tip-iframe {
    width: 100%;
    flex: 1;
    height: 100%;
    border: none;
}

/* Remove the PINNED badge next to the name */
.cff-post-card.cff-post-pinned .cff-post-header-text::after {
    display: none !important;
    content: none !important;
}

/* --------------------------------------------------
   Drafts & Private Notes (creator-only UI)
   -------------------------------------------------- */

/* Optional subtle border style for draft cards */
.cff-post-card.cff-post-draft .cff-post-card-inner {
    border-style: dashed;
    border-width: 1px;
    border-color: #eab308;
}

.cff-post-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cff-post-status-draft {
    background: #fef3c7;
    color: #92400e;
}

.cff-post-status-scheduled {
    background: #e0f2fe;
    color: #075985;
}

.cff-private-notes-block {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.cff-private-notes-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 4px;
}

.cff-private-notes-body {
    font-size: 13px;
    color: #374151;
    white-space: pre-wrap;
}

.cff-form-private-notes {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .cff-actions {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cff-actions {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}


/* Read more / Close button */
.cff-read-more-btn {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cff-read-more-btn:hover {
    background: rgba(148,163,184,0.2);
}

/* Hide the old separate Read more button completely */
.cff-read-more-btn {
    display: none !important;
}

/* Inline "… Read more" link */
.cff-read-more-inline {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: inherit;
    color: #2155ff; /* link blue */
    text-decoration: underline;
}

/* tiny spacing before ellipsis if you want */
.cff-inline-ellipsis {
    /* optional styles; can leave empty */
}

/* --------------------------------------------------
   Creator Profile Header
-------------------------------------------------- */

.cff-creator-profile-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    margin: 0 0 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.cff-creator-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cff-creator-profile-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cff-creator-profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f1f5f9;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.cff-creator-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cff-creator-profile-info h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.cff-creator-profile-info p {
    margin: 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.55;
    color: #475569;
}

.cff-creator-subscribe-wrap {
    flex: 0 0 auto;
}

.cff-creator-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: #2155ff;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(33, 85, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.cff-creator-subscribe-btn:hover {
    background: #1743d6;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(33, 85, 255, 0.34);
}

@media (max-width: 700px) {
    .cff-creator-profile-box {
        padding: 20px;
        border-radius: 18px;
    }

    .cff-creator-profile-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .cff-creator-profile-main {
        align-items: flex-start;
    }

    .cff-creator-profile-avatar {
        width: 72px;
        height: 72px;
    }

    .cff-creator-profile-info h2 {
        font-size: 22px;
    }

    .cff-creator-subscribe-wrap,
    .cff-creator-subscribe-btn {
        width: 100%;
    }

    .cff-creator-subscribe-btn {
        padding: 13px 18px;
    }
}

/* --------------------------------------------------
   Creator Profile Cover Image
-------------------------------------------------- */

.cff-creator-profile-box {
    overflow: hidden;
    padding: 0;
}

.cff-creator-cover {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 45%, #fce7f3 100%);
    overflow: hidden;
}

.cff-creator-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cff-creator-profile-header {
    padding: 24px;
}

.cff-creator-profile-avatar {
    margin-top: -58px;
    border: 4px solid #ffffff;
}

@media (max-width: 700px) {
    .cff-creator-cover {
        height: 150px;
    }

    .cff-creator-profile-header {
        padding: 20px;
    }

    .cff-creator-profile-avatar {
        margin-top: -48px;
    }
}

/* --------------------------------------------------
   Creator Directory
-------------------------------------------------- */

.cff-creator-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 24px 0;
}

.cff-creator-directory-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.cff-directory-cover {
    width: 100%;
    height: 145px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 45%, #fce7f3 100%);
    overflow: hidden;
}

.cff-directory-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cff-directory-body {
    padding: 0 18px 20px;
}

.cff-directory-avatar {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: -37px;
    border: 4px solid #ffffff;
    background: #f1f5f9;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.cff-directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cff-directory-body h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.cff-directory-body p {
    margin: 0 0 12px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

.cff-directory-price {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.cff-directory-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cff-directory-view-btn,
.cff-directory-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
}

.cff-directory-view-btn {
    background: #f1f5f9;
    color: #0f172a !important;
}

.cff-directory-view-btn:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

.cff-directory-subscribe-btn {
    background: #2155ff;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(33, 85, 255, 0.24);
}

.cff-directory-subscribe-btn:hover {
    background: #1743d6;
    color: #ffffff !important;
}

.cff-creator-directory-empty {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    color: #475569;
}

@media (max-width: 1000px) {
    .cff-creator-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cff-creator-directory {
        grid-template-columns: 1fr;
    }

    .cff-directory-cover {
        height: 155px;
    }

    .cff-directory-actions {
        flex-direction: column;
    }

    .cff-directory-view-btn,
    .cff-directory-subscribe-btn {
        width: 100%;
    }
}

/* --------------------------------------------------
   Locked / Subscriber-only Post UI
-------------------------------------------------- */

.cff-locked-post {
    margin: 10px 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.cff-locked-post strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #0f172a;
}

.cff-locked-post p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.cff-comment-locked {
    cursor: default !important;
    opacity: 0.65;
}

/* --------------------------------------------------
   Creator-only Post Visibility Badge
-------------------------------------------------- */

.cff-post-visibility-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cff-post-visibility-subscribers {
    background: #fef3c7;
    color: #92400e;
}

.cff-post-visibility-public {
    background: #dcfce7;
    color: #166534;
}

.cff-visibility-icon {
    font-size: 12px;
    line-height: 1;
}

.cff-visibility-text {
    display: inline;
}

@media (max-width: 640px) {
    .cff-post-visibility-badge {
        padding: 2px 6px;
        margin-left: 4px;
        gap: 0;
    }

    .cff-visibility-text {
        display: none;
    }

    .cff-visibility-icon {
        font-size: 13px;
    }
}

/* --------------------------------------------------
   Creator Subscription Manager
-------------------------------------------------- */

.cff-subscription-manager {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.cff-subscription-manager h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.cff-subscription-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin: 0 0 16px;
    background: #f8fafc;
}

.cff-subscription-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cff-subscription-status {
    margin-top: 4px;
    font-size: 14px;
    color: #475569;
}

.cff-subscription-products {
    margin: 10px 0;
    font-weight: 700;
    color: #0f172a;
}

.cff-subscription-meta {
    margin: 10px 0 14px;
    font-size: 14px;
    color: #475569;
    display: grid;
    gap: 4px;
}

.cff-subscription-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cff-subscription-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: #2155ff;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.cff-subscription-btn:hover {
    background: #1743d6;
    color: #ffffff !important;
}

.cff-subscription-cancel-form {
    margin: 0;
}

.cff-subscription-cancel-btn {
    background: #fee2e2;
    color: #991b1b !important;
}

.cff-subscription-cancel-btn:hover {
    background: #fecaca;
    color: #7f1d1d !important;
}

.cff-subscription-notice {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
}

.cff-subscription-success {
    background: #dcfce7;
    color: #166534;
}

.cff-subscription-error {
    background: #fee2e2;
    color: #991b1b;
}

.cff-subscription-info {
    background: #e0f2fe;
    color: #075985;
}

.cff-subscription-empty {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
}

@media (max-width: 640px) {
    .cff-subscription-manager {
        padding: 18px;
        border-radius: 16px;
    }

    .cff-subscription-actions,
    .cff-subscription-btn,
    .cff-subscription-cancel-form {
        width: 100%;
    }

    .cff-subscription-btn {
        width: 100%;
    }
}

/* --------------------------------------------------
   Creator Profile Renew State
-------------------------------------------------- */

.cff-creator-renew-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.cff-creator-renew-btn {
    background: #f59e0b;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.cff-creator-renew-btn:hover {
    background: #d97706;
    color: #ffffff !important;
}

/* --------------------------------------------------
   Creator Directory Subscription States
-------------------------------------------------- */

.cff-directory-active-btn {
    background: #dcfce7 !important;
    color: #166534 !important;
    box-shadow: none !important;
    cursor: default;
}

.cff-directory-renew-btn {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.cff-directory-renew-btn:hover {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------
   Creator Directory Bio Toggle
-------------------------------------------------- */

.cff-directory-bio-toggle {
    border: none;
    background: transparent;
    color: #2155ff;
    padding: 0;
    margin-left: 4px;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.cff-directory-bio-toggle:hover {
    color: #1743d6;
}

/* --------------------------------------------------
   Creator Earnings Statements
-------------------------------------------------- */

.cff-statements-wrap {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    color: #1f2933;
    font-family: inherit;
}

.cff-statements-titlebar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid #dbe3ec;
}

.cff-statements-titlebar h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.cff-statements-back {
    font-size: 24px;
    line-height: 1;
}

.cff-statements-shell {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    min-height: 720px;
}

.cff-statements-sidebar {
    border-right: 1px solid #dbe3ec;
    padding: 16px;
    background: #ffffff;
}

.cff-statement-top-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #dff4ff;
    border: 1px solid #bae6fd;
    font-size: 13px;
    line-height: 1.35;
    text-transform: uppercase;
}

.cff-star {
    color: #f59e0b;
    font-size: 22px;
}

.cff-balance-box {
    margin-top: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    overflow: hidden;
}

.cff-balance-current {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #dff4ff;
    font-weight: 900;
    text-transform: uppercase;
}

.cff-balance-current strong {
    font-size: 18px;
}

.cff-balance-pending {
    display: flex;
    justify-content: space-between;
    padding: 18px 16px;
    color: #8996a8;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe3ec;
}

.cff-payout-method {
    margin: 16px;
    padding: 12px 14px;
    border: 1px solid #b9c4d0;
    border-radius: 6px;
    background: #ffffff;
}

.cff-payout-help {
    margin: -8px 16px 14px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.cff-request-withdrawal-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 18px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: #d1d5db;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    cursor: not-allowed;
}

.cff-statement-tabs {
    margin-top: 18px;
}

.cff-statement-tabs a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    border-bottom: 1px solid #dbe3ec;
    color: #8a96a7;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.cff-statement-tabs a span {
    width: 22px;
    text-align: center;
}

.cff-statement-tabs a.is-active {
    color: #1f2933;
    border-bottom: 2px solid #1f2933;
}

.cff-statements-main {
    padding: 16px;
    background: #ffffff;
    min-width: 0;
}

.cff-statement-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.cff-statement-filter label {
    font-weight: 800;
    color: #64748b;
}

.cff-statement-filter select,
.cff-statement-filter button {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ffffff;
}

.cff-statement-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.cff-statement-section-header h3 {
    margin: 0;
    color: #8491a3;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.cff-statement-section-header span {
    color: #8491a3;
    font-size: 13px;
}

.cff-statement-summary,
.cff-stats-total-box {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
}

.cff-statement-summary span,
.cff-stats-total-box span {
    color: #8491a3;
    margin-right: 6px;
    text-transform: uppercase;
}

.cff-statement-table-wrap {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    overflow-x: auto;
}

.cff-statement-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.cff-statement-table th {
    padding: 12px 10px;
    text-align: left;
    color: #a1adba;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe3ec;
}

.cff-statement-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #dbe3ec;
    font-size: 13px;
    vertical-align: top;
}

.cff-statement-table td span {
    display: block;
    margin-top: 2px;
}

.cff-statement-table tr.is-refund td {
    color: #b91c1c;
}

.cff-status-check {
    color: #00aeef;
    font-weight: 900;
    display: inline !important;
    margin: 0 !important;
}

.cff-info-banner {
    padding: 14px 16px;
    border: 1px solid #7dd3fc;
    border-radius: 6px;
    background: #f0f9ff;
    color: #1f2933;
    margin-bottom: 16px;
}

.cff-empty-statement {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    padding: 18px;
    color: #64748b;
    background: #ffffff;
}

.cff-monthly-list {
    display: grid;
    gap: 12px;
}

.cff-month-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #ffffff;
    font-size: 18px;
}

.cff-month-row strong {
    font-size: 18px;
}

.cff-month-row em {
    color: #94a3b8;
    font-style: normal;
    font-size: 22px;
}

@media (max-width: 900px) {
    .cff-statements-shell {
        grid-template-columns: 1fr;
    }

    .cff-statements-sidebar {
        border-right: none;
        border-bottom: 1px solid #dbe3ec;
    }

    .cff-statement-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
    }

    .cff-statement-summary,
    .cff-stats-total-box {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .cff-statements-wrap {
        border-left: none;
        border-right: none;
    }

    .cff-statements-titlebar h2 {
        font-size: 20px;
    }

    .cff-statements-sidebar,
    .cff-statements-main {
        padding: 14px;
    }

    .cff-statement-tabs a {
        font-size: 14px;
        min-height: 50px;
    }

    .cff-month-row {
        font-size: 16px;
        padding: 0 14px;
    }

    .cff-month-row strong {
        font-size: 16px;
    }
}

/* --------------------------------------------------
   Creator Statements Admin Search
-------------------------------------------------- */

.cff-statement-filter input[type="search"] {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ffffff;
    min-width: 220px;
}

.cff-statement-clear-filter {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 700;
}

@media (max-width: 700px) {
    .cff-statement-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .cff-statement-filter input[type="search"],
    .cff-statement-filter select,
    .cff-statement-filter button,
    .cff-statement-clear-filter {
        width: 100%;
    }
}

/* --------------------------------------------------
   Creator Statements Live Creator Search
-------------------------------------------------- */

.cff-live-creator-search {
    position: relative;
    display: block;
    min-width: 260px;
}

.cff-live-creator-search input[type="search"] {
    width: 100%;
}

.cff-live-creator-results {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: min(420px, 100%);
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    z-index: 999;
}

.cff-live-creator-search.is-open .cff-live-creator-results {
    display: block;
}

.cff-live-creator-result {
    display: block;
    padding: 10px 12px;
    color: #0f172a !important;
    text-decoration: none !important;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.cff-live-creator-result:last-child {
    border-bottom: none;
}

.cff-live-creator-result:hover {
    background: #f8fafc;
}

.cff-live-creator-result strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.cff-live-creator-result span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
}

.cff-live-creator-empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
    background: #ffffff;
}

@media (max-width: 700px) {
    .cff-live-creator-search {
        width: 100%;
        min-width: 0;
    }

    .cff-live-creator-results {
        position: static;
        width: 100%;
        margin-top: 6px;
        margin-bottom: 8px;
        box-shadow: none;
    }
}

/* Fix Creator Statements Apply button */
.cff-statement-filter button[type="submit"] {
    background: #2155ff !important;
    color: #ffffff !important;
    border-color: #2155ff !important;
    font-weight: 800;
    cursor: pointer;
}

.cff-statement-filter button[type="submit"]:hover {
    background: #1743d6 !important;
    color: #ffffff !important;
    border-color: #1743d6 !important;
}

/* --------------------------------------------------
   Creator Statements Needs Payout List
-------------------------------------------------- */

.cff-needs-payout-table td:first-child strong {
    display: block;
    color: #0f172a;
}

.cff-needs-payout-table td:first-child span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.cff-payout-balance {
    color: #166534;
    font-weight: 900;
}

.cff-statement-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #2155ff;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.cff-statement-action-btn:hover {
    background: #1743d6;
    color: #ffffff !important;
}

/* --------------------------------------------------
   Creator Statements Mark Paid
-------------------------------------------------- */

.cff-payout-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 800;
}

.cff-payout-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cff-mark-paid-form {
    margin: 0;
}

.cff-mark-paid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.cff-mark-paid-btn:hover {
    background: #15803d;
    color: #ffffff !important;
}

/* --------------------------------------------------
   Creator Statements Admin Overview
-------------------------------------------------- */

.cff-admin-overview-table td:first-child strong {
    display: block;
    color: #0f172a;
}

.cff-admin-overview-table td:first-child span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.cff-overview-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.cff-overview-status-needs-payout {
    background: #dcfce7;
    color: #166534;
}

.cff-overview-status-paid {
    background: #e0f2fe;
    color: #075985;
}

.cff-overview-status-none {
    background: #f1f5f9;
    color: #64748b;
}

/* --------------------------------------------------
   Creator Statements Admin Overview Sort
-------------------------------------------------- */

.cff-overview-sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.cff-overview-sort-form label {
    font-weight: 800;
    color: #64748b;
}

.cff-overview-sort-form select,
.cff-overview-sort-form button {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ffffff;
}

.cff-overview-sort-form button {
    background: #2155ff !important;
    color: #ffffff !important;
    border-color: #2155ff !important;
    font-weight: 800;
    cursor: pointer;
}

.cff-overview-sort-form button:hover {
    background: #1743d6 !important;
    border-color: #1743d6 !important;
}

@media (max-width: 700px) {
    .cff-overview-sort-form {
        align-items: stretch;
        flex-direction: column;
    }

    .cff-overview-sort-form select,
    .cff-overview-sort-form button {
        width: 100%;
    }
}

/* --------------------------------------------------
   Creator Statements Admin Overview Summary Cards
-------------------------------------------------- */

.cff-overview-summary-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.cff-overview-summary-card {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    min-height: 76px;
}

.cff-overview-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #8491a3;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.cff-overview-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.cff-overview-summary-card-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cff-overview-summary-card-green strong {
    color: #166534;
}

.cff-overview-summary-card-red {
    background: #fef2f2;
    border-color: #fecaca;
}

.cff-overview-summary-card-red strong {
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .cff-overview-summary-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cff-overview-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------
   Creator Statements Transaction Filters
-------------------------------------------------- */

.cff-transaction-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    flex-wrap: wrap;
}

.cff-transaction-filter-form label {
    font-weight: 800;
    color: #64748b;
    font-size: 12px;
}

.cff-transaction-filter-form input,
.cff-transaction-filter-form button,
.cff-transaction-clear-filter {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ffffff;
}

.cff-transaction-filter-form input[type="search"] {
    min-width: 240px;
}

.cff-transaction-filter-form button {
    background: #2155ff !important;
    color: #ffffff !important;
    border-color: #2155ff !important;
    font-weight: 800;
    cursor: pointer;
}

.cff-transaction-filter-form button:hover {
    background: #1743d6 !important;
    border-color: #1743d6 !important;
}

.cff-transaction-clear-filter {
    display: inline-flex;
    align-items: center;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 800;
}

@media (max-width: 700px) {
    .cff-transaction-filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .cff-transaction-filter-form input,
    .cff-transaction-filter-form button,
    .cff-transaction-clear-filter {
        width: 100%;
    }
}

/* --------------------------------------------------
   Creator Statements CSV Export
-------------------------------------------------- */

.cff-statement-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cff-export-csv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.cff-export-csv-btn:hover {
    background: #334155;
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .cff-statement-header-actions {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }
}