/* Follow Button Base Styles */
        .tfs-follow-button,
        .tfs-button {
            background-color: #e6567a;
            color: #ffffff;
            padding: 12px 24px;
            border: 2px solid #e6567a;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Poppins', 'Roboto', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 140px;
            min-height: 48px;
            margin: 9px 0 0 0;
            box-shadow: 0 2px 10px 1px rgb(0 0 0 / 8%);
        }

        .tfs-follow-button:hover,
        .tfs-button:hover {
            background-color: transparent;
            color: #e6567a;
        }

        .tfs-follow-button:active,
        .tfs-button:active {
            transform: scale(0.98);
        }

        .tfs-follow-button.is-following {
            background-color: transparent;
            color: #e6567a;
        }

        .tfs-follow-button.is-following:hover {
            background-color: #ffebef;
            border-color: #e6567a;
        }

        /* Hide/Show Text States */
        .tfs-follow-button .following-text,
        .tfs-follow-button .unfollow-text {
            display: none;
        }

        .tfs-follow-button.is-following .follow-text {
            display: none;
        }

        .tfs-follow-button.is-following .following-text {
            display: inline;
        }

        .tfs-follow-button.is-following:hover .following-text {
            display: none;
        }

        .tfs-follow-button.is-following:hover .unfollow-text {
            display: inline;
        }

        /* Loading State */
        .tfs-follow-button.loading,
        .tfs-button.loading {
            opacity: 0.7;
            cursor: wait;
        }

        /* Disabled State */
        .tfs-follow-button:disabled,
        .tfs-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Select All/None Buttons */
        .select-all-button,
        .select-none-button {
            background-color: transparent;
            color: #e6567a;
            padding: 5px 15px;
            border: 2px solid #e6567a;
            min-width: auto;
            margin: 0;
        }

        .select-all-button:hover,
        .select-none-button:hover {
            background-color: #ffebef;
        }

        /* Taxonomy Follow List Styles */
        .taxonomy-follow-list {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .taxonomy-search-container {
            position: relative;
            margin-bottom: 20px;
        }

        .taxonomy-search-input {
            width: 100%;
            padding: 12px 40px 12px 40px !important;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.2s;
        }

        .taxonomy-search-input:focus {
            border-color: #e6567a;
            outline: none;
        }

        .taxonomy-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #718096;
        }

        .taxonomy-list {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 20px;
            min-height: 100px;
        }

        .taxonomy-item {
            padding: 10px 12px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: background-color 0.2s;
        }

        .taxonomy-item:hover {
            background: #e9ecef;
        }

        .taxonomy-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .taxonomy-name {
            flex: 1;
            font-size: 14px;
            color: #333;
        }

        .taxonomy-count {
            color: #6c757d;
            font-size: 12px;
        }

        /* Followed Items Styles */
        .followed-items-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            align-items: start;
        }

        .followed-item {
            margin-bottom: 0;
            border: 1px solid #ddd;
            border-radius: 12px;
            transition: all 0.25s ease;
            background: #fff;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        }

        .followed-item:hover {
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }

        .followed-item.has-new {
            border-color: #e6567a;
        }

        .followed-item-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                "link badge"
                "link action";
            align-items: start;
            gap: 10px 12px;
            padding: 16px 18px;
            background-color: #fff;
        }

        .followed-item-link {
            grid-area: link;
            text-decoration: none;
            color: var(--text-color, #244659);
            font-weight: 600;
            font-size: 15px;
            line-height: 1.5;
            min-width: 0;
        }

        .post-count {
            color: #7d8790;
            font-weight: 400;
            white-space: nowrap;
        }

        .followed-item-meta {
            grid-area: badge;
            display: flex;
            align-items: center;
            justify-self: end;
        }

        .new-posts-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #e6567a 0%, #eb6486 100%);
            color: #fff;
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            margin: 0;
            box-shadow: 0 6px 18px rgba(230, 86, 122, 0.22);
        }

        .accordion-toggle {
            grid-area: action;
            display: inline-flex;
            align-items: center;
            justify-self: end;
            gap: 10px;
            min-width: auto;
            margin: 0;
            padding: 12px 18px;
            background: #fff;
            border: 1px solid #f3d7df;
            border-radius: 999px;
            color: #e6567a;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 10px 22px rgba(36, 70, 89, 0.08);
            transition: all 0.2s ease;
        }

        .accordion-toggle:hover {
            background: #fff5f8;
            border-color: #e6567a;
            color: #d94870;
            transform: translateY(-1px);
        }

        .tfs-button-label {
            white-space: nowrap;
            font-size: 13px;
            line-height: 1;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .tfs-add-button-wrapper {
            margin-top: 20px;
            width: 100%;
        }

        .tfs-sticky-cta {
            display: none;
        }

        .toggle-icon {
            width: 12px;
            height: 12px;
            border-right: 2px solid #e6567a;
            border-bottom: 2px solid #e6567a;
            transform: rotate(45deg);
            transition: transform 0.3s ease;
        }

        .accordion-toggle[aria-expanded="true"] .toggle-icon {
            transform: rotate(-135deg);
        }

        .accordion-content {
            background-color: #f8f9fa;
            border-top: 1px solid #ddd;
            padding: 15px;
            overflow: hidden;
            transition: height 0.3s ease-out;
            height: 0;
        }

        .accordion-content:not([hidden]) {
            height: auto;
        }


        .new-posts-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .new-post-item {
            border-top: 1px solid #e7edf3;
        }

        .new-post-item:first-child {
            border-top: 0;
        }

        .new-post-link {
            display: grid;
            grid-template-columns: 116px minmax(0, 1fr);
            gap: 16px;
            align-items: start;
            padding: 16px 0;
            text-decoration: none !important;
        }

        .post-thumbnail {
            width: 116px;
            height: 88px;
            border-radius: 0;
            overflow: hidden;
            background: #f4f6f8;
            flex-shrink: 0;
        }

        .post-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .post-details {
            min-width: 0;
        }

        .new-post-title {
            margin: 0 0 10px;
            color: var(--text-color, #244659);
            font-family: 'Poppins', 'Roboto', sans-serif;
            font-size: 18px;
            line-height: 1.35;
            font-weight: 700;
        }

        .new-post-link:hover .new-post-title {
            color: #e6567a;
        }

        .accordion-content .entry-date {
            display: inline-block;
            margin: 0;
            color: #7d8790;
            font-size: 13px;
            line-height: 1.4;
        }

        .select-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }

        .select-actions .tfs-button {
            width: 100%;
            min-width: 0;
            margin: 0;
        }

        .taxonomy-follow-actions {
            margin-top: 18px;
        }

        .taxonomy-follow-actions .follow-taxonomy-button {
            width: 100%;
            max-width: 340px;
            margin: 0;
        }

        .taxonomy-follow-form {
            margin: 0;
        }

        .taxonomy-follow-list {
            max-width: none;
            margin: 0;
        }

        /* Notification Styles */
        html.tfs-modal-open,
        body.tfs-modal-open {
            overflow: hidden;
        }

        .tfs-notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
        }

        .tfs-notification {
            background-color: #92c585;
            color: white;
            padding: 12px 24px;
            border-radius: 4px;
            margin-bottom: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            transform: translateX(120%);
            transition: transform 0.3s ease-out;
            font-size: 14px;
            font-weight: 500;
        }

        .tfs-notification.show {
            transform: translateX(0);
        }

        .tfs-notification-icon {
            margin-right: 8px;
        }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .taxonomy-list,
            .followed-items-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 576px) {
            .taxonomy-list,
            .followed-items-list {
                grid-template-columns: 1fr;
            }

            .taxonomy-follow-list {
                padding: 0;
                border-radius: 0;
                box-shadow: none;
                background: transparent;
            }

            .taxonomy-search-container {
                margin-bottom: 16px;
            }

            .taxonomy-search-input {
                font-size: 16px;
                padding: 12px 16px 12px 42px !important;
                border-radius: 12px;
            }

            .taxonomy-list {
                gap: 10px;
            }

            .taxonomy-item {
                padding: 10px 12px;
                border-radius: 12px;
            }

            .taxonomy-checkbox {
                align-items: center;
                gap: 10px;
            }

            .taxonomy-name {
                font-size: 15px;
                line-height: 1.4;
            }

            .taxonomy-count {
                font-size: 13px;
            }

            .select-actions {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
                margin-bottom: 14px;
            }

            .select-actions .tfs-button,
            .taxonomy-follow-actions .follow-taxonomy-button {
                min-height: 52px;
                padding: 12px 14px;
                font-size: 13px;
            }

            .taxonomy-follow-actions .follow-taxonomy-button {
                max-width: none;
                width: 100%;
            }

            .followed-item {
                border-radius: 14px;
            }

            .followed-item-header {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "link"
                    "badge"
                    "action";
                padding: 14px;
            }

            .followed-item-meta,
            .accordion-toggle {
                justify-self: start;
            }

            .accordion-toggle {
                width: 100%;
                justify-content: center;
                padding: 12px 16px;
            }

            .followed-item-link {
                width: 100%;
                margin-bottom: 0;
            }

            .accordion-content {
                padding: 12px 14px;
            }

            .new-post-link {
                grid-template-columns: 84px minmax(0, 1fr);
                gap: 12px;
                padding: 14px 0;
            }

            .post-thumbnail {
                width: 84px;
                height: 68px;
            }

            .new-post-title {
                font-size: 15px;
                line-height: 1.35;
            }

            body.has-tfs-sticky-cta {
                padding-bottom: calc(88px + env(safe-area-inset-bottom));
            }

            .tfs-sticky-cta {
                display: block;
                position: fixed;
                left: 12px;
                right: 12px;
                bottom: calc(12px + env(safe-area-inset-bottom));
                z-index: 10001;
                padding: 10px;
                border-radius: 18px;
                background: rgba(255, 255, 255, 0.96);
                box-shadow: 0 12px 32px rgba(36, 70, 89, 0.18);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                transform: translateY(110%);
                opacity: 0;
                pointer-events: none;
                transition: transform 0.25s ease, opacity 0.25s ease;
            }

            .tfs-sticky-cta.is-visible {
                transform: translateY(0);
                opacity: 1;
                pointer-events: auto;
            }

            .tfs-sticky-cta .tfs-open-modal-button {
                width: 100%;
                min-height: 56px;
                margin: 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }