/* ============================================================
   FLAVOR PLATFORM - World-Class Design System v2.0
   Inspired by note.com with cutting-edge glassmorphism,
   micro-interactions, and premium typography
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Colors - Sophisticated palette */
    --fp-bg: #ffffff;
    --fp-bg-secondary: #f8f9fb;
    --fp-bg-tertiary: #f1f3f7;
    --fp-bg-warm: #faf9f7;
    --fp-surface: #ffffff;
    --fp-surface-hover: #f8f9fb;
    --fp-text: #1a1a2e;
    --fp-text-secondary: #5f6c7b;
    --fp-text-tertiary: #9ca3af;
    --fp-text-inverse: #ffffff;
    --fp-primary: #2563eb;
    --fp-primary-light: #dbeafe;
    --fp-primary-lighter: #eff6ff;
    --fp-primary-dark: #1d4ed8;
    --fp-primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --fp-accent: #7c3aed;
    --fp-accent-light: #ede9fe;
    --fp-success: #059669;
    --fp-success-light: #d1fae5;
    --fp-warning: #d97706;
    --fp-warning-light: #fef3c7;
    --fp-danger: #dc2626;
    --fp-danger-light: #fee2e2;
    --fp-border: #e5e7eb;
    --fp-border-light: #f3f4f6;
    --fp-border-focus: #2563eb;

    /* Shadows - Layered depth */
    --fp-shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --fp-shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --fp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --fp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.04);
    --fp-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
    --fp-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --fp-shadow-inner: inset 0 2px 4px rgba(0,0,0,0.04);
    --fp-shadow-glow: 0 0 20px rgba(37,99,235,0.15);
    --fp-shadow-card-hover: 0 8px 30px rgba(0,0,0,0.08);

    /* Radii */
    --fp-radius-sm: 8px;
    --fp-radius: 12px;
    --fp-radius-lg: 16px;
    --fp-radius-xl: 20px;
    --fp-radius-2xl: 24px;
    --fp-radius-full: 9999px;

    /* Transitions */
    --fp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fp-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --fp-transition: all 0.2s var(--fp-ease);
    --fp-transition-slow: all 0.35s var(--fp-ease);
    --fp-transition-spring: all 0.4s var(--fp-ease-spring);

    /* Typography */
    --fp-font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fp-font-heading: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
    --fp-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --fp-max-width: 1400px;
    --fp-content-width: 720px;
    --fp-sidebar-width: 240px;
    --fp-header-height: 72px;
    --fp-gap: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'palt' 1;
}

body.fp-app {
    font-family: var(--fp-font) !important;
    color: var(--fp-text) !important;
    background: var(--fp-bg) !important;
    background-color: #ffffff !important;
    line-height: 1.75 !important;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 15px !important;
    letter-spacing: 0.01em;
    margin: 0 !important;
    padding: 0 !important;
}

body.fp-app .fp-main {
    background: var(--fp-bg) !important;
}

a { color: inherit; text-decoration: none; transition: var(--fp-transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection {
    background: var(--fp-primary-light);
    color: var(--fp-primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ============================================================
   HEADER - Glassmorphism
   ============================================================ */
.fp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--fp-header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    z-index: 1000;
    transition: var(--fp-transition-slow);
}

.fp-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fp-header-inner {
    max-width: var(--fp-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fp-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.fp-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--fp-text);
    transition: var(--fp-transition);
}

.fp-logo:hover { opacity: 0.8; }

.fp-logo img {
    height: 56px;
    width: auto;
}

.fp-logo-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
    margin-right: 6px;
    border-radius: 6px;
}

.fp-logo-text {
    background: var(--fp-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-logo-full {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.fp-nav-main {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-nav-link {
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-full);
    transition: var(--fp-transition);
    white-space: nowrap;
    position: relative;
}

.fp-nav-link:hover {
    color: var(--fp-text);
    background: var(--fp-bg-tertiary);
}

.fp-nav-link.active {
    color: var(--fp-text);
    background: var(--fp-bg-tertiary);
    font-weight: 600;
}

/* Header Center - Search */
.fp-header-center {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}

.fp-search-bar {
    position: relative;
    width: 100%;
}

.fp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-text-tertiary);
    pointer-events: none;
    transition: var(--fp-transition);
}

.fp-search-bar input {
    width: 100%;
    padding: 9px 16px 9px 42px;
    background: var(--fp-bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--fp-radius-full);
    font-size: 0.875rem;
    color: var(--fp-text);
    outline: none;
    transition: var(--fp-transition);
}

.fp-search-bar input::placeholder {
    color: var(--fp-text-tertiary);
}

.fp-search-bar input:focus {
    background: var(--fp-bg);
    border-color: var(--fp-primary);
    box-shadow: var(--fp-shadow-glow);
}

.fp-search-bar input:focus + .fp-search-icon,
.fp-search-bar input:focus ~ .fp-search-icon {
    color: var(--fp-primary);
}

.fp-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    animation: fpSlideDown 0.2s var(--fp-ease);
}

.fp-search-dropdown a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fp-border-light);
    transition: var(--fp-transition);
}

.fp-search-dropdown a:hover {
    background: var(--fp-bg-secondary);
}

.fp-search-dropdown a:last-child {
    border-bottom: none;
}

/* Header Right */
.fp-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fp-btn-write {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--fp-primary-gradient);
    color: white;
    border-radius: var(--fp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--fp-transition);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
    white-space: nowrap;
}

.fp-btn-write:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.fp-btn-write:active {
    transform: translateY(0);
}

.fp-btn-write svg {
    width: 16px;
    height: 16px;
}

.fp-btn-login {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-full);
    transition: var(--fp-transition);
}

.fp-btn-login:hover {
    color: var(--fp-text);
    background: var(--fp-bg-tertiary);
}

.fp-btn-signup {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--fp-text);
    color: var(--fp-text-inverse);
    border-radius: var(--fp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--fp-transition);
}

.fp-btn-signup:hover {
    background: #374151;
    transform: translateY(-1px);
}

/* Notification Bell */
.fp-notification-bell {
    position: relative;
    padding: 8px;
    border-radius: var(--fp-radius-full);
    cursor: pointer;
    transition: var(--fp-transition);
    color: var(--fp-text-secondary);
}

.fp-notification-bell:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--fp-danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--fp-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: fpPulse 2s infinite;
}

/* User Menu */
.fp-user-menu {
    position: relative;
}

.fp-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--fp-radius-full);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--fp-transition);
    cursor: pointer;
    padding: 0;
}

.fp-avatar-btn:hover {
    border-color: var(--fp-primary-light);
}

.fp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--fp-radius-full);
}

.fp-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: var(--fp-transition);
    z-index: 1002;
    padding: 6px;
}

.fp-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-sm);
    transition: var(--fp-transition);
}

.fp-dropdown-item:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text);
}

.fp-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.fp-dropdown-divider {
    height: 1px;
    background: var(--fp-border-light);
    margin: 4px 0;
}

/* Mobile Toggle */
.fp-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.fp-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--fp-text);
    border-radius: 1px;
    transition: var(--fp-transition);
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.fp-reading-progress-bar,
.fp-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--fp-primary-gradient);
    z-index: 1001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.fp-main {
    min-height: calc(100vh - var(--fp-header-height) - 200px);
    padding-top: var(--fp-header-height);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.fp-hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fp-bg-secondary) 0%, var(--fp-bg) 100%);
}

.fp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(124,58,237,0.03) 0%, transparent 50%);
    animation: fpFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.fp-hero-title {
    font-family: var(--fp-font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.fp-hero-title .fp-gradient-text {
    background: var(--fp-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fp-hero-subtitle {
    font-size: 1.05rem;
    color: var(--fp-text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.fp-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--fp-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--fp-transition);
}

.fp-hero-btn.primary {
    background: var(--fp-primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.fp-hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.fp-hero-btn.secondary {
    background: var(--fp-surface);
    color: var(--fp-text);
    border: 1px solid var(--fp-border);
}

.fp-hero-btn.secondary:hover {
    background: var(--fp-bg-secondary);
    border-color: var(--fp-text-tertiary);
}

/* ============================================================
   HOME LAYOUT - note.com style with sidebar
   ============================================================ */
.fp-home-layout {
    max-width: var(--fp-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr var(--fp-sidebar-width);
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.fp-sidebar {
    position: sticky;
    top: var(--fp-header-height);
    padding: 24px 0;
    max-height: calc(100vh - var(--fp-header-height));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fp-border) transparent;
}
.fp-sidebar::-webkit-scrollbar {
    width: 4px;
}
.fp-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.fp-sidebar::-webkit-scrollbar-thumb {
    background: var(--fp-border);
    border-radius: 4px;
}
.fp-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--fp-text-tertiary);
}

.fp-sidebar-section {
    margin-bottom: 28px;
}

.fp-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fp-text-tertiary);
    padding: 0 12px;
    margin-bottom: 8px;
}

.fp-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-sm);
    transition: var(--fp-transition);
}

.fp-sidebar-link:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text);
}

.fp-sidebar-link.active {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    font-weight: 600;
}

.fp-sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.fp-sidebar-link.active svg {
    opacity: 1;
}

/* ============================================================
   CONTENT FEED
   ============================================================ */
.fp-feed {
    padding: 24px 0 60px;
}

.fp-feed-section {
    margin-bottom: 48px;
}

.fp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fp-text);
    letter-spacing: -0.01em;
}

.fp-section-more {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fp-primary);
    transition: var(--fp-transition);
}

.fp-section-more:hover {
    opacity: 0.7;
}

/* ============================================================
   ARTICLE CARDS - Premium Grid
   ============================================================ */
.fp-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch; /* Ensure equal height cards in each row */
}

.fp-article-card {
    background: var(--fp-surface);
    border-radius: var(--fp-radius-lg);
    overflow: visible;
    transition: var(--fp-transition-slow);
    border: 1px solid var(--fp-border-light);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill grid cell height for uniform sizing */
    min-width: 0; /* Prevent overflow in grid */
}

.fp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-card-hover);
    border-color: transparent;
}

.fp-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--fp-bg-tertiary);
}

.fp-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--fp-ease);
}

.fp-article-card:hover .fp-card-thumbnail img {
    transform: scale(1.05);
}

.fp-card-thumbnail .fp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--fp-radius-full);
    letter-spacing: 0.02em;
}

.fp-card-badge.paid {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.fp-card-badge-recent-purchase {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--fp-radius-full);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fp-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--fp-text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    min-height: calc(0.95rem * 1.5 * 2);
}

.fp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* Push meta to bottom of card for uniform layout */
}

.fp-card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.fp-card-author-info {
    flex: 1;
    min-width: 0;
}

.fp-card-author-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-card-date {
    font-size: 0.7rem;
    color: var(--fp-text-tertiary);
}

.fp-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fp-border-light);
}

.fp-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
}

.fp-card-stat svg {
    width: 14px;
    height: 14px;
}

.fp-card-price {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fp-primary);
}

/* Horizontal Card */
.fp-article-card-h {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--fp-surface);
    border-radius: var(--fp-radius);
    border: 1px solid var(--fp-border-light);
    transition: var(--fp-transition);
}

.fp-article-card-h:hover {
    background: var(--fp-surface-hover);
    border-color: var(--fp-border);
}

.fp-article-card-h .fp-card-thumbnail {
    width: 120px;
    min-width: 120px;
    padding-top: 0;
    height: 80px;
    border-radius: var(--fp-radius-sm);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.fp-empty-state {
    text-align: center;
    padding: 80px 24px;
}

.fp-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--fp-bg-tertiary);
    border-radius: var(--fp-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-text-tertiary);
}

.fp-empty-icon svg {
    width: 36px;
    height: 36px;
}

.fp-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fp-text);
    margin-bottom: 8px;
}

.fp-empty-desc {
    font-size: 0.9rem;
    color: var(--fp-text-tertiary);
    margin-bottom: 24px;
}

.fp-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--fp-primary-gradient);
    color: white;
    border-radius: var(--fp-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--fp-transition);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.fp-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.fp-article-container {
    max-width: var(--fp-content-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.fp-article-cover {
    width: 100%;
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
}

.fp-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-article-header {
    margin-bottom: 32px;
}

.fp-article-title {
    font-family: var(--fp-font-heading);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--fp-text);
    margin-bottom: 20px;
}

.fp-article-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--fp-border-light);
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
}

.fp-article-author-info {
    flex: 1;
}

.fp-article-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fp-text);
}

.fp-article-author-name:hover {
    color: var(--fp-primary);
}

.fp-article-date {
    font-size: 0.8rem;
    color: var(--fp-text-tertiary);
}

.fp-follow-btn {
    padding: 7px 20px;
    border-radius: var(--fp-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--fp-transition);
    border: 1.5px solid var(--fp-primary);
    color: var(--fp-primary);
    background: transparent;
}

.fp-follow-btn:hover {
    background: var(--fp-primary);
    color: white;
}

.fp-follow-btn.following {
    background: var(--fp-bg-tertiary);
    border-color: var(--fp-border);
    color: var(--fp-text-secondary);
}

/* Article Content */
.fp-article-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--fp-text);
    word-break: break-word;
}

.fp-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fp-bg-tertiary);
    letter-spacing: -0.01em;
}

.fp-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}

.fp-article-content p {
    margin-bottom: 24px;
}

.fp-article-content blockquote {
    border-left: 3px solid var(--fp-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--fp-primary-lighter);
    border-radius: 0 var(--fp-radius-sm) var(--fp-radius-sm) 0;
    color: var(--fp-text-secondary);
    font-style: italic;
}

.fp-article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--fp-radius);
    overflow-x: auto;
    font-family: var(--fp-font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 24px 0;
}

.fp-article-content code {
    background: var(--fp-bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--fp-font-mono);
    font-size: 0.875em;
}

.fp-article-content pre code {
    background: none;
    padding: 0;
}

.fp-article-content img {
    border-radius: var(--fp-radius);
    margin: 24px 0;
}

.fp-article-content ul, .fp-article-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.fp-article-content li {
    margin-bottom: 8px;
}

/* Paywall */
.fp-paywall {
    position: relative;
    margin: 40px -24px;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, var(--fp-bg-secondary) 30%);
}

.fp-paywall::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--fp-bg));
    pointer-events: none;
}

.fp-paywall-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fp-paywall-desc {
    font-size: 0.9rem;
    color: var(--fp-text-secondary);
    margin-bottom: 20px;
}

.fp-paywall-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fp-primary);
    margin-bottom: 20px;
}

.fp-paywall-price small {
    font-size: 0.5em;
    font-weight: 500;
    color: var(--fp-text-tertiary);
}

.fp-purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--fp-primary-gradient);
    color: white;
    border-radius: var(--fp-radius-full);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--fp-transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    border: none;
    cursor: pointer;
}

.fp-purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* Article Actions */
.fp-article-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 0;
    margin: 32px 0;
    border-top: 1px solid var(--fp-border-light);
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--fp-radius);
    transition: var(--fp-transition);
    cursor: pointer;
    color: var(--fp-text-secondary);
    border: none;
    background: none;
}

.fp-action-btn:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text);
}

.fp-action-btn.liked {
    color: var(--fp-danger);
}

.fp-action-btn svg {
    width: 24px;
    height: 24px;
}

.fp-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Support Button */
.fp-support-section {
    text-align: center;
    padding: 40px;
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius-xl);
    margin: 40px 0;
}

.fp-support-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.fp-support-desc {
    font-size: 0.85rem;
    color: var(--fp-text-secondary);
    margin-bottom: 20px;
}

.fp-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-radius: var(--fp-radius-full);
    font-weight: 600;
    transition: var(--fp-transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(245,158,11,0.3);
}

.fp-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.fp-support-amount {
    padding: 10px 20px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--fp-transition);
    cursor: pointer;
    background: var(--fp-surface);
}

.fp-support-amount:hover {
    border-color: var(--fp-primary);
    color: var(--fp-primary);
}

.fp-support-amount.selected {
    border-color: var(--fp-primary);
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
}

/* Comments */
.fp-comments-section {
    margin-top: 48px;
    max-width: var(--fp-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.fp-comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fp-bg-tertiary);
}

.fp-comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.fp-comment-form textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: var(--fp-transition);
    font-size: 0.9rem;
    line-height: 1.6;
}

.fp-comment-form textarea:focus {
    border-color: var(--fp-primary);
    box-shadow: var(--fp-shadow-glow);
}

.fp-comment-submit {
    align-self: flex-end;
    padding: 10px 20px;
    background: var(--fp-primary);
    color: white;
    border-radius: var(--fp-radius);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--fp-transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.fp-comment-submit:hover {
    background: var(--fp-primary-dark);
}

.fp-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.fp-comment-body {
    flex: 1;
}

.fp-comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.fp-comment-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--fp-text);
}

.fp-comment-time {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
    margin-top: 6px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.fp-auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.fp-auth-card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border-light);
    border-radius: var(--fp-radius-xl);
    padding: 40px;
    box-shadow: var(--fp-shadow-lg);
}

.fp-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.fp-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.fp-auth-subtitle {
    font-size: 0.9rem;
    color: var(--fp-text-secondary);
}

.fp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
}

.fp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    font-size: 0.95rem;
    outline: none;
    transition: var(--fp-transition);
    background: var(--fp-bg);
}

.fp-form-input:focus {
    border-color: var(--fp-primary);
    box-shadow: var(--fp-shadow-glow);
}

.fp-form-input::placeholder {
    color: var(--fp-text-tertiary);
}

.fp-auth-submit {
    width: 100%;
    padding: 13px;
    background: var(--fp-primary-gradient);
    color: white;
    border: none;
    border-radius: var(--fp-radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fp-transition);
    margin-top: 4px;
}

.fp-auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fp-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fp-auth-error {
    padding: 12px 16px;
    background: var(--fp-danger-light);
    color: var(--fp-danger);
    border-radius: var(--fp-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

.fp-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--fp-text-secondary);
}

.fp-auth-footer a {
    color: var(--fp-primary);
    font-weight: 600;
}

.fp-auth-footer a:hover {
    text-decoration: underline;
}

.fp-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--fp-text-secondary);
}

.fp-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--fp-primary);
}

/* ============================================================
   EDITOR
   ============================================================ */
.fp-editor-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.fp-editor-cover-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--fp-bg-tertiary);
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    cursor: pointer;
    transition: var(--fp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--fp-border);
}

.fp-editor-cover-area:hover {
    border-color: var(--fp-primary);
    background: var(--fp-primary-lighter);
}

.fp-editor-cover-area img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-cover-placeholder {
    text-align: center;
    color: var(--fp-text-tertiary);
}

.fp-cover-placeholder svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.fp-cover-placeholder p {
    font-size: 0.85rem;
}

.fp-editor-title-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--fp-font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--fp-text);
    margin-bottom: 24px;
    resize: none;
    background: transparent;
}

.fp-editor-title-input::placeholder {
    color: var(--fp-text-tertiary);
}

/* Editor Toolbar */
.fp-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: calc(var(--fp-header-height) + 8px);
    z-index: 10;
    box-shadow: var(--fp-shadow-sm);
}

.fp-toolbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fp-radius-sm);
    transition: var(--fp-transition);
    color: var(--fp-text-secondary);
}

.fp-toolbar-btn:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-toolbar-btn.active {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
}

.fp-toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--fp-border);
    margin: 0 4px;
}

/* Editor Content Area */
.fp-editor-content {
    min-height: 400px;
    padding: 20px 0;
    font-size: 1.05rem;
    line-height: 2;
    outline: none;
    color: var(--fp-text);
}

.fp-editor-content:empty::before {
    content: '本文を書く...';
    color: var(--fp-text-tertiary);
    pointer-events: none;
}

/* Editor Settings Panel */
.fp-editor-settings {
    position: fixed;
    right: 0;
    top: var(--fp-header-height);
    bottom: 0;
    width: 340px;
    background: var(--fp-surface);
    border-left: 1px solid var(--fp-border);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--fp-transition-slow);
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0,0,0,0.05);
}

.fp-editor-settings.open {
    transform: translateX(0);
}

.fp-settings-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-settings-group {
    margin-bottom: 20px;
}

.fp-settings-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    margin-bottom: 8px;
    display: block;
}

.fp-settings-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.875rem;
    outline: none;
    transition: var(--fp-transition);
}

.fp-settings-input:focus {
    border-color: var(--fp-primary);
}

.fp-settings-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.875rem;
    outline: none;
    background: var(--fp-bg);
    transition: var(--fp-transition);
    appearance: none;
    cursor: pointer;
}

.fp-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.fp-toggle-switch {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: var(--fp-border);
    border-radius: var(--fp-radius-full);
    cursor: pointer;
    transition: var(--fp-transition);
    flex-shrink: 0;
    display: inline-block;
}

.fp-toggle-switch.active {
    background: var(--fp-primary);
}

.fp-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: var(--fp-radius-full);
    transition: var(--fp-transition-spring);
    box-shadow: var(--fp-shadow-sm);
}

.fp-toggle-switch.active::after {
    transform: translateX(20px);
}

/* Publish Button */
.fp-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--fp-primary-gradient);
    color: white;
    border: none;
    border-radius: var(--fp-radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fp-transition);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.fp-publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.fp-publish-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fp-draft-btn {
    padding: 12px 24px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    cursor: pointer;
    transition: var(--fp-transition);
    background: transparent;
}

.fp-draft-btn:hover {
    border-color: var(--fp-text-tertiary);
    color: var(--fp-text);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.fp-profile-container {
    max-width: var(--fp-max-width);
    margin: 0 auto;
}

.fp-profile-cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.fp-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-profile-info {
    max-width: 800px;
    margin: -50px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.fp-profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: var(--fp-radius-full);
    border: 4px solid var(--fp-bg);
    object-fit: cover;
    box-shadow: var(--fp-shadow-lg);
    margin-bottom: 16px;
}

.fp-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.fp-profile-username {
    font-size: 0.9rem;
    color: var(--fp-text-tertiary);
    margin-bottom: 12px;
}

.fp-profile-bio {
    font-size: 0.95rem;
    color: var(--fp-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 560px;
}

.fp-profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.fp-profile-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fp-profile-stat-num {
    font-size: 1.1rem;
    font-weight: 700;
}

.fp-profile-stat-label {
    font-size: 0.8rem;
    color: var(--fp-text-tertiary);
}

.fp-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--fp-border);
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.fp-profile-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--fp-transition);
    cursor: pointer;
}

.fp-profile-tab:hover {
    color: var(--fp-text);
}

.fp-profile-tab.active {
    color: var(--fp-text);
    font-weight: 600;
    border-bottom-color: var(--fp-text);
}

.fp-profile-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

/* ============================================================
   EXPLORE PAGE
   ============================================================ */
.fp-explore-container {
    max-width: var(--fp-max-width);
    margin: 0 auto;
    padding: 16px 24px 80px;
}

.fp-explore-header {
    margin-bottom: 12px;
}

.fp-explore-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.fp-explore-desc {
    font-size: 0.95rem;
    color: var(--fp-text-secondary);
}

.fp-category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: nowrap; /* Prevent wrapping to enable horizontal scroll */
}

.fp-category-tabs::-webkit-scrollbar { display: none; }

.fp-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--fp-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    background: var(--fp-bg-secondary);
    white-space: nowrap;
    flex-shrink: 0; /* Prevent tabs from shrinking */
    transition: var(--fp-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
    height: 38px;
}
.fp-category-tab svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.fp-category-tab:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-category-tab.active {
    background: var(--fp-text);
    color: var(--fp-text-inverse);
}

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.fp-dashboard-container {
    max-width: calc(var(--fp-max-width) - 80px);
    margin: 0 auto;
    padding: 32px 40px 80px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

.fp-dashboard-sidebar {
    position: sticky;
    top: calc(var(--fp-header-height) + 24px);
}

.fp-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-dashboard-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-sm);
    transition: var(--fp-transition);
}

.fp-dashboard-link:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text);
}

.fp-dashboard-link.active {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    font-weight: 600;
}

.fp-dashboard-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.fp-dashboard-link.active svg {
    opacity: 1;
}

.fp-dashboard-content {
    min-width: 0;
}

.fp-dashboard-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Dashboard Stats Cards */
.fp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.fp-stat-card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border-light);
    border-radius: var(--fp-radius);
    padding: 20px;
    transition: var(--fp-transition);
}

.fp-stat-card:hover {
    border-color: var(--fp-border);
    box-shadow: var(--fp-shadow-sm);
}

.fp-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.fp-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fp-text);
    letter-spacing: -0.02em;
}

.fp-stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.fp-stat-change.up { color: var(--fp-success); }
.fp-stat-change.down { color: var(--fp-danger); }

/* Dashboard Table */
.fp-table-container {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border-light);
    border-radius: var(--fp-radius);
    overflow: hidden;
}

.fp-table {
    width: 100%;
    border-collapse: collapse;
}

.fp-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--fp-bg-secondary);
    border-bottom: 1px solid var(--fp-border);
}

.fp-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--fp-border-light);
    color: var(--fp-text);
}

.fp-table tr:last-child td {
    border-bottom: none;
}

.fp-table tr:hover td {
    background: var(--fp-surface-hover);
}

/* ============================================================
   USER SETTINGS
   ============================================================ */
.fp-settings-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.fp-settings-section {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border-light);
    border-radius: var(--fp-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.fp-settings-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fp-border-light);
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.fp-notifications-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.fp-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--fp-radius);
    transition: var(--fp-transition);
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-notification-item:hover {
    background: var(--fp-surface-hover);
}

.fp-notification-item.unread {
    background: var(--fp-primary-lighter);
}

.fp-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.fp-notification-body {
    flex: 1;
}

.fp-notification-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fp-text);
}

.fp-notification-text strong {
    font-weight: 600;
}

.fp-notification-time {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
    margin-top: 4px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.fp-legal-container {
    max-width: var(--fp-content-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.fp-legal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.fp-legal-date {
    font-size: 0.85rem;
    color: var(--fp-text-tertiary);
    margin-bottom: 32px;
}

.fp-legal-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--fp-text-secondary);
}

.fp-legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fp-text);
    margin: 32px 0 12px;
}

.fp-legal-content p {
    margin-bottom: 16px;
}

/* ============================================================
   MAGAZINE
   ============================================================ */
.fp-magazine-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.fp-magazine-header {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-magazine-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fp-bg-tertiary);
}

.fp-magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-magazine-info {
    flex: 1;
}

.fp-magazine-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.fp-magazine-desc {
    font-size: 0.95rem;
    color: var(--fp-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.fp-magazine-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--fp-text-tertiary);
    margin-bottom: 20px;
}

.fp-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--fp-primary-gradient);
    color: white;
    border-radius: var(--fp-radius-full);
    font-weight: 700;
    transition: var(--fp-transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.fp-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* ============================================================
   MODAL
   ============================================================ */
.fp-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--fp-transition);
}

.fp-modal.open {
    opacity: 1;
    visibility: visible;
}

.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--fp-transition);
}

.fp-modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.fp-modal-content {
    position: relative;
    background: var(--fp-surface);
    border-radius: var(--fp-radius-xl);
    padding: 32px;
    max-width: 440px;
    width: calc(100% - 48px);
    box-shadow: var(--fp-shadow-2xl);
    transform: scale(0.95) translateY(10px);
    transition: var(--fp-transition-spring);
}

.fp-modal.open .fp-modal-content {
    transform: scale(1) translateY(0);
}

/* ============================================================
   TOAST
   ============================================================ */
.fp-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-toast {
    padding: 14px 20px;
    background: var(--fp-text);
    color: var(--fp-text-inverse);
    border-radius: var(--fp-radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--fp-shadow-xl);
    animation: fpSlideInRight 0.3s var(--fp-ease-spring);
    transition: var(--fp-transition);
    max-width: 360px;
}

.fp-toast.success {
    background: var(--fp-success);
}

.fp-toast.error {
    background: var(--fp-danger);
}

.fp-toast.warning {
    background: var(--fp-warning);
}

/* ============================================================
   CONFETTI
   ============================================================ */
.fp-confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 4000;
    animation: fpConfetti 1.5s ease-out forwards;
}

/* ============================================================
   FOOTER
   ============================================================ */
.fp-footer {
    background: var(--fp-bg-secondary);
    border-top: 1px solid var(--fp-border-light);
    padding: 40px 24px;
}

.fp-footer-inner {
    max-width: var(--fp-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-footer-links {
    display: flex;
    gap: 24px;
}

.fp-footer-links a {
    font-size: 0.8rem;
    color: var(--fp-text-tertiary);
    transition: var(--fp-transition);
}

.fp-footer-links a:hover {
    color: var(--fp-text-secondary);
}

.fp-footer-copy {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fpSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpSlideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fpSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fpFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(1deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

@keyframes fpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fpConfetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-400px) rotate(720deg); opacity: 0; }
}

@keyframes fpShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll Reveal */
.fp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--fp-ease), transform 0.6s var(--fp-ease);
}

.fp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Press effect */
.fp-press {
    transition: var(--fp-transition);
}

.fp-press:active {
    transform: scale(0.97);
}

/* Skeleton Loading */
.fp-skeleton {
    background: linear-gradient(90deg, var(--fp-bg-tertiary) 25%, var(--fp-bg-secondary) 50%, var(--fp-bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: fpShimmer 1.5s infinite;
    border-radius: var(--fp-radius-sm);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .fp-home-layout {
        grid-template-columns: 1fr;
    }

    .fp-sidebar {
        display: none;
    }

    .fp-dashboard-container {
        grid-template-columns: 1fr;
    }

    .fp-dashboard-sidebar {
        position: static;
    }

    .fp-dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        padding-bottom: 4px;
    }

    .fp-dashboard-link {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    :root {
        --fp-header-height: 56px;
        --fp-gap: 16px;
    }

    .fp-header-inner {
        padding: 0 16px;
    }

    .fp-header-center {
        display: none;
    }

    .fp-nav-main {
        display: none;
    }

    .fp-nav-main.mobile-open {
        display: flex;
        position: absolute;
        top: var(--fp-header-height);
        left: 0;
        right: 0;
        background: var(--fp-surface);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--fp-border);
        box-shadow: var(--fp-shadow-lg);
    }

    .fp-mobile-toggle {
        display: flex;
    }

    .fp-btn-write span {
        display: none;
    }

    .fp-btn-write {
        padding: 8px 12px;
    }

    .fp-hero {
        padding: 48px 16px 40px;
    }

    .fp-article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-auth-card {
        padding: 28px 24px;
    }

    .fp-editor-container {
        padding: 16px 16px 60px;
    }

    .fp-editor-title-input {
        font-size: 1.5rem;
    }

    .fp-editor-settings {
        width: 100%;
    }

    .fp-profile-cover {
        height: 140px;
    }

    .fp-profile-avatar-large {
        width: 80px;
        height: 80px;
    }

    .fp-magazine-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fp-footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .fp-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fp-article-actions {
        gap: 16px;
    }

    .fp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fp-article-grid {
        grid-template-columns: 1fr;
    }

    .fp-stats-grid {
        grid-template-columns: 1fr;
    }

    .fp-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.fp-text-center { text-align: center; }
.fp-text-left { text-align: left; }
.fp-text-right { text-align: right; }
.fp-mt-0 { margin-top: 0; }
.fp-mt-4 { margin-top: 16px; }
.fp-mt-8 { margin-top: 32px; }
.fp-mb-0 { margin-bottom: 0; }
.fp-mb-4 { margin-bottom: 16px; }
.fp-mb-8 { margin-bottom: 32px; }
.fp-flex { display: flex; }
.fp-flex-center { display: flex; align-items: center; justify-content: center; }
.fp-gap-2 { gap: 8px; }
.fp-gap-4 { gap: 16px; }
.fp-hidden { display: none; }
.fp-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Badge */
.fp-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--fp-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fp-badge.primary { background: var(--fp-primary-light); color: var(--fp-primary); }
.fp-badge.success { background: var(--fp-success-light); color: var(--fp-success); }
.fp-badge.warning { background: var(--fp-warning-light); color: var(--fp-warning); }
.fp-badge.danger { background: var(--fp-danger-light); color: var(--fp-danger); }

/* Status Dot */
.fp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--fp-radius-full);
    display: inline-block;
}

.fp-status-dot.online { background: var(--fp-success); }
.fp-status-dot.offline { background: var(--fp-text-tertiary); }

/* WP Admin Bar Offset */
body.admin-bar .fp-header {
    top: 32px;
}

body.admin-bar .fp-main {
    padding-top: calc(var(--fp-header-height) + 32px);
}

@media (max-width: 782px) {
    body.admin-bar .fp-header {
        top: 46px;
    }
    body.admin-bar .fp-main {
        padding-top: calc(var(--fp-header-height) + 46px);
    }
}

/* Category Chips (explore page) */
.fp-category-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--fp-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    background: var(--fp-bg-secondary);
    white-space: nowrap;
    transition: var(--fp-transition);
    border: 1px solid transparent;
}

.fp-category-chip:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-category-chip.active {
    background: var(--fp-text);
    color: var(--fp-text-inverse);
}

/* Dashboard Stats */
.fp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.fp-dash-stat {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border-light);
    border-radius: var(--fp-radius);
    padding: 20px;
    text-align: center;
    transition: var(--fp-transition);
}

.fp-dash-stat:hover {
    border-color: var(--fp-border);
    box-shadow: var(--fp-shadow-sm);
}

.fp-dash-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fp-text);
    letter-spacing: -0.02em;
}

.fp-dash-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-tertiary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Verified & Pro Badges */
.fp-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--fp-primary);
    color: white;
    border-radius: var(--fp-radius-full);
}

.fp-pro-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: var(--fp-radius-full);
    letter-spacing: 0.05em;
}

/* Paywall Button */
.fp-paywall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--fp-primary-gradient);
    color: white;
    border-radius: var(--fp-radius-full);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--fp-transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    border: none;
    cursor: pointer;
}

.fp-paywall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.fp-paywall-box { text-align: center; }

/* Stagger Animation */
.fp-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    animation: fpStaggerIn 0.5s var(--fp-ease) forwards;
}

.fp-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.fp-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.fp-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.fp-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.fp-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.fp-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.fp-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.fp-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.fp-stagger > *:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes fpStaggerIn {
    to { opacity: 1; transform: translateY(0); }
}

.fp-page-enter { animation: fpFadeIn 0.4s var(--fp-ease); }
.fp-notif-slide { animation: fpSlideUp 0.3s var(--fp-ease); }

/* Editor Cover Area */
.fp-editor-cover-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    max-height: 300px;
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    cursor: pointer;
    background: var(--fp-bg-tertiary);
}

.fp-editor-cover-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Comment Form */
.fp-comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.fp-comment-form-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-comment-form-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius);
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: var(--fp-transition);
    font-size: 0.9rem;
    line-height: 1.6;
}

.fp-comment-form-input textarea:focus {
    border-color: var(--fp-primary);
    box-shadow: var(--fp-shadow-glow);
}

.fp-comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Modal Close */
.fp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    border-radius: var(--fp-radius-sm);
    cursor: pointer;
    background: none;
    border: none;
    color: var(--fp-text-tertiary);
    transition: var(--fp-transition);
}

.fp-modal-close:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Support Amounts */
.fp-support-amounts {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Search Results */
.fp-search-results-container {
    max-width: var(--fp-content-width);
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.fp-search-results-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.fp-search-results-count {
    font-size: 0.85rem;
    color: var(--fp-text-tertiary);
    margin-bottom: 24px;
}


/* ============================================================
   BOTTOM NAVIGATION BAR - App-like Mobile Navigation
   ============================================================ */
.fp-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-bottom-nav.hidden {
    transform: translateY(100%);
}

.fp-bottom-nav-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    max-width: 560px;
    margin: 0 auto;
    padding: 6px 4px 4px;
    height: 60px;
}

.fp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    padding: 4px 0 2px;
    color: var(--fp-text-tertiary);
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.fp-bottom-nav-item:hover {
    color: var(--fp-text-secondary);
    text-decoration: none;
}

.fp-bottom-nav-item.active {
    color: var(--fp-primary);
}

.fp-bottom-nav-item.active .fp-bottom-nav-icon svg {
    stroke-width: 2.2;
}

/* Active indicator dot */
.fp-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fp-primary);
    animation: fpBottomNavDot 0.3s ease forwards;
}

@keyframes fpBottomNavDot {
    from { transform: translateX(-50%) scale(0); }
    to { transform: translateX(-50%) scale(1); }
}

.fp-bottom-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.fp-bottom-nav-item:active .fp-bottom-nav-icon {
    transform: scale(0.85);
}

.fp-bottom-nav-icon svg {
    display: block;
}

.fp-bottom-nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}

/* Notification badge on bottom nav */
.fp-bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--fp-danger);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    line-height: 1;
}

/* ============================================================
   FAB (Floating Action Button) - Center Create Button
   ============================================================ */
.fp-bottom-nav-fab {
    position: relative;
    flex: 1;
}

.fp-bottom-nav-fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--fp-primary-gradient);
    color: white;
    margin: 0 auto;
    margin-top: -22px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35),
                0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.fp-bottom-nav-fab-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--fp-primary-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.fp-bottom-nav-fab:hover .fp-bottom-nav-fab-btn {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45),
                0 3px 8px rgba(37, 99, 235, 0.25);
}

.fp-bottom-nav-fab:hover .fp-bottom-nav-fab-btn::before {
    opacity: 0.4;
}

.fp-bottom-nav-fab:active .fp-bottom-nav-fab-btn {
    transform: scale(0.95);
}

.fp-bottom-nav-fab .fp-bottom-nav-label {
    margin-top: 2px;
    color: var(--fp-primary);
    font-weight: 700;
}

.fp-bottom-nav-fab svg {
    stroke: white;
}

/* ============================================================
   RESPONSIVE: Show bottom nav on mobile/tablet
   ============================================================ */
@media (max-width: 768px) {
    .fp-bottom-nav {
        display: block;
    }

    /* Add padding to main content and footer so they don't hide behind bottom nav */
    .fp-main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .fp-footer {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* Hide desktop header nav items on mobile since bottom nav replaces them */
    .fp-header-right .fp-btn-write,
    .fp-header-right .fp-notification-bell {
        display: none;
    }

    /* Show login/signup buttons on mobile header */
    .fp-header-right .fp-btn-login,
    .fp-header-right .fp-btn-signup {
        display: inline-flex;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Hide mobile hamburger since bottom nav replaces it */
    .fp-mobile-toggle {
        display: none !important;
    }

    /* Hide the mobile-open nav since bottom nav replaces it */
    .fp-nav-main.mobile-open {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .fp-bottom-nav-inner {
        padding: 6px 0 4px;
    }

    .fp-bottom-nav-label {
        font-size: 0.55rem;
    }

    .fp-bottom-nav-fab-btn {
        width: 48px;
        height: 48px;
        margin-top: -20px;
    }

    .fp-bottom-nav-fab-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (max-width: 768px) {
    .fp-bottom-nav-inner {
        height: 50px;
        padding: 4px 4px 2px;
    }

    .fp-bottom-nav-label {
        display: none;
    }

    .fp-bottom-nav-fab-btn {
        width: 44px;
        height: 44px;
        margin-top: -16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fp-bottom-nav {
        background: rgba(30, 30, 30, 0.95);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .fp-bottom-nav-badge {
        border-color: #1e1e1e;
    }
}

/* Haptic feedback animation for active items */
@keyframes fpBottomNavTap {
    0% { transform: scale(1); }
    50% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

.fp-bottom-nav-item:active {
    animation: fpBottomNavTap 0.15s ease;
}

.fp-bottom-nav-fab:active {
    animation: none;
}

/* Section Icons - Universal Design */
.fp-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}
.fp-section-icon svg {
    width: 18px;
    height: 18px;
}
.fp-section-icon-trend {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}
.fp-section-icon-trend svg {
    stroke: #d97706;
}
.fp-section-icon-new {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}
.fp-section-icon-new svg {
    stroke: #2563eb;
}
.fp-section-title {
    display: flex;
    align-items: center;
}

/* Profile Avatar - proper size */
.fp-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    margin-bottom: 16px;
    background: #e5e7eb;
}

/* Profile page articles grid - 3 columns */
.fp-profile-content .fp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.fp-profile-content .fp-articles-grid .fp-article-card {
    min-width: 0; /* Prevent grid item overflow */
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .fp-profile-content .fp-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .fp-profile-avatar {
        width: 72px;
        height: 72px;
    }
    .fp-profile-content .fp-articles-grid {
        grid-template-columns: 1fr;
    }
}
/* Category Navigation */
.fp-category-nav-wrapper {
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.fp-category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.fp-category-nav::-webkit-scrollbar {
    display: none;
}
.fp-category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius);
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.fp-category-nav-item:hover {
    color: var(--fp-text-primary);
    background: var(--fp-bg-secondary);
}
.fp-category-nav-item.active {
    color: var(--fp-text-primary);
}
.fp-category-nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.fp-category-nav-item:hover .fp-category-nav-icon {
    transform: scale(1.05);
}
.fp-category-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .fp-category-nav-item {
        min-width: 68px;
        padding: 8px 4px;
    }
    .fp-category-nav-icon {
        width: 48px;
        height: 48px;
    }
    .fp-category-nav-icon svg {
        width: 22px;
        height: 22px;
    }
    .fp-category-nav-label {
        font-size: 0.7rem;
    }
}

/* === Category Nav Scroll Fix === */
.fp-category-nav-wrapper {
    margin-bottom: 32px !important;
    position: relative !important;
    overflow: visible !important;
}
.fp-category-nav {
    display: flex !important;
    gap: 4px !important;
    overflow-x: auto !important;
    padding: 8px 0 16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    cursor: grab !important;
}
.fp-category-nav:active {
    cursor: grabbing !important;
}
.fp-category-nav::-webkit-scrollbar {
    display: none !important;
}
.fp-category-nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--fp-text-secondary);
}
.fp-category-nav-scroll-btn:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.fp-category-nav-scroll-btn.left {
    left: -18px;
}
.fp-category-nav-scroll-btn.right {
    right: -18px;
}
.fp-category-nav-scroll-btn.hidden {
    display: none;
}

/* Card dropdown menu */

/* Card dropdown menu - fixed */
.fp-card-menu-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
    pointer-events: auto;
}
.fp-card-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    position: relative;
    z-index: 51;
}
.fp-card-menu-btn svg,
.fp-card-menu-btn svg * {
    pointer-events: none;
}
.fp-card-menu-btn:hover {
    background: rgba(255,255,255,1) !important;
    transform: scale(1.1);
}
.fp-card-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 55;
}
.fp-card-dropdown.show {
    display: block !important;
}
.fp-card-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 60;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s ease;
}
.fp-card-delete-btn {
    color: #ef4444 !important;
}
.fp-card-dropdown a:hover,
.fp-card-dropdown button:hover,
.fp-card-dropdown-item:hover {
    background: rgba(0,0,0,0.04) !important;
}
.fp-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.fp-article-card .fp-card-thumbnail {
    overflow: hidden;
    border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
}


/* ============================================================
   RESPONSIVE GRID - 4/5 Column Support for Wide Screens
   ============================================================ */
@media (min-width: 1200px) {
    .fp-article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .fp-article-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .fp-explore {
        max-width: 1600px !important;
    }
}

@media (min-width: 1920px) {
    .fp-article-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Explore page - wider grid */
.fp-explore .fp-article-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

@media (min-width: 1200px) {
    .fp-explore .fp-article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .fp-explore .fp-article-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Home feed grid - respect sidebar */
.fp-feed .fp-article-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 1200px) {
    .fp-feed .fp-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .fp-feed .fp-article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   PUBLISH MODAL - Comprehensive Settings
   ============================================================ */
.fp-publish-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fpFadeIn 0.2s ease;
}

.fp-publish-modal-overlay.open {
    display: flex;
}

.fp-publish-modal {
    background: var(--fp-bg);
    border-radius: var(--fp-radius-xl);
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--fp-shadow-2xl);
    animation: fpSlideUp 0.3s var(--fp-ease-spring);
    position: relative;
}

.fp-publish-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fp-border-light);
    flex-shrink: 0;
    background: var(--fp-bg);
    z-index: 2;
    border-radius: var(--fp-radius-xl) var(--fp-radius-xl) 0 0;
}

.fp-publish-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fp-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-publish-modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--fp-radius-sm);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-text-tertiary);
    transition: var(--fp-transition);
}

.fp-publish-modal-close:hover {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text);
}

.fp-publish-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 140px);
    -webkit-overflow-scrolling: touch;
}

.fp-publish-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    border-top: 1px solid var(--fp-border-light);
    padding: 16px 24px;
    background: var(--fp-bg);
    border-radius: 0 0 var(--fp-radius-xl) var(--fp-radius-xl);
}

/* Publish Modal Sections */
.fp-pm-section {
    margin-bottom: 24px;
}

.fp-pm-section:last-child {
    margin-bottom: 0;
}

.fp-pm-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-pm-section-title svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Toggle Row */
.fp-pm-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    margin-bottom: 8px;
    transition: var(--fp-transition);
}

.fp-pm-toggle-row:hover {
    background: var(--fp-bg-tertiary);
}

.fp-pm-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-pm-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fp-text);
}

.fp-pm-toggle-desc {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
}

/* Toggle Switch - unified (see above for main definition) */

/* Paid Options (collapsible) */
.fp-pm-paid-options {
    padding: 16px;
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    margin-top: -4px;
    margin-bottom: 8px;
    display: none;
}

.fp-pm-field {
    margin-bottom: 14px;
}

.fp-pm-field:last-child {
    margin-bottom: 0;
}

.fp-pm-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    margin-bottom: 6px;
}

.fp-pm-field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--fp-transition);
    background: var(--fp-bg);
}

.fp-pm-field-input:focus {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fp-pm-field-hint {
    font-size: 0.7rem;
    color: var(--fp-text-tertiary);
    margin-top: 4px;
}

/* Select */
.fp-pm-field-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--fp-transition);
    background: var(--fp-bg);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.fp-pm-field-select:focus {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Textarea */
.fp-pm-field-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    font-size: 0.85rem;
    outline: none;
    transition: var(--fp-transition);
    background: var(--fp-bg);
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
    font-family: var(--fp-font);
}

.fp-pm-field-textarea:focus {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Publish Buttons */
.fp-pm-btn-cancel {
    padding: 10px 20px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--fp-border);
    background: var(--fp-bg);
    color: var(--fp-text-secondary);
    transition: var(--fp-transition);
}

.fp-pm-btn-cancel:hover {
    background: var(--fp-bg-secondary);
    color: var(--fp-text);
}

.fp-pm-btn-publish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--fp-primary-gradient);
    color: white;
    transition: var(--fp-transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.fp-pm-btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.fp-pm-btn-publish:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spin animation for loading */
.fp-spin {
    animation: fpSpin 1s linear infinite;
}

@keyframes fpSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   HASHTAG INPUT - note.com style
   ============================================================ */
.fp-hashtag-input-area {
    position: relative;
}

.fp-hashtag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border: 1.5px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-bg);
    min-height: 44px;
    align-items: center;
    transition: var(--fp-transition);
    cursor: text;
}

.fp-hashtag-input-wrapper:focus-within {
    border-color: var(--fp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fp-hashtag-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    border-radius: var(--fp-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    animation: fpTagIn 0.2s var(--fp-ease-spring);
}

@keyframes fpTagIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fp-hashtag-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--fp-primary);
    opacity: 0.6;
    transition: var(--fp-transition);
    padding: 0;
    line-height: 1;
}

.fp-hashtag-tag-remove:hover {
    opacity: 1;
    background: rgba(37, 99, 235, 0.15);
}

.fp-hashtag-text-input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 0.85rem;
    background: transparent;
    color: var(--fp-text);
    padding: 2px 0;
}

.fp-hashtag-text-input::placeholder {
    color: var(--fp-text-tertiary);
}

/* Hashtag Suggestions Dropdown */
.fp-hashtag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-lg);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.fp-hashtag-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fp-hashtag-suggestion:hover {
    background: var(--fp-bg-secondary);
}

.fp-hashtag-suggestion-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-primary);
}

.fp-hashtag-suggestion-count {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary);
}

/* Popular Tags */
.fp-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fp-popular-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--fp-bg-secondary);
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fp-transition);
    border: 1px solid transparent;
}

.fp-popular-tag-item:hover {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    border-color: var(--fp-primary-light);
}

/* ============================================================
   HASHTAG DISPLAY - Article Cards & Single Article
   ============================================================ */
.fp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    min-height: 22px;
}

.fp-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--fp-bg-secondary);
    color: var(--fp-text-tertiary);
    border-radius: var(--fp-radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--fp-transition);
    cursor: pointer;
    text-decoration: none;
}

.fp-card-tag:hover {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
}

/* Article page hashtags */
.fp-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--fp-border-light);
}

.fp-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--fp-bg-secondary);
    color: var(--fp-text-secondary);
    border-radius: var(--fp-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--fp-transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.fp-article-tag:hover {
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    border-color: var(--fp-primary-light);
}

.fp-article-tag svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ============================================================
   HASHTAG PAGE
   ============================================================ */
.fp-hashtag-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.fp-hashtag-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fp-border-light);
}

.fp-hashtag-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fp-primary-lighter);
    color: var(--fp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    font-weight: 800;
}

.fp-hashtag-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--fp-text);
    margin-bottom: 8px;
}

.fp-hashtag-count {
    font-size: 0.9rem;
    color: var(--fp-text-tertiary);
}

/* ============================================================
   PUBLISH MODAL - Mobile Responsive
   ============================================================ */
@media (max-width: 640px) {
    .fp-publish-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
        margin-top: auto;
    }

    .fp-publish-modal-overlay.open {
        align-items: flex-end;
    }

    .fp-publish-modal-body {
        padding: 16px;
    }

    .fp-publish-modal-header {
        padding: 16px;
    }

    .fp-publish-modal-footer {
        padding: 12px 16px;
    }
}

/* Divider in modal */
.fp-pm-divider {
    height: 1px;
    background: var(--fp-border-light);
    margin: 20px 0;
}

/* Affiliate info box */
.fp-pm-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--fp-warning-light);
    border-radius: var(--fp-radius-sm);
    margin-top: 8px;
}

.fp-pm-info-box svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--fp-warning);
    margin-top: 1px;
}

.fp-pm-info-box p {
    font-size: 0.75rem;
    color: var(--fp-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==================== TABLE OF CONTENTS ==================== */
.fp-toc {
    background: var(--fp-bg-secondary, #f8fafc);
    border: 1px solid var(--fp-border-light, #e2e8f0);
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
}
.fp-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fp-text, #1a1a2e);
    transition: background 0.2s;
    user-select: none;
}
.fp-toc-header:hover {
    background: var(--fp-surface-hover, #f1f5f9);
}
.fp-toc-header svg {
    transition: transform 0.3s;
}
.fp-toc-header.collapsed svg {
    transform: rotate(-90deg);
}
.fp-toc-list {
    padding: 0 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 600px;
    overflow: hidden;
}
.fp-toc-list.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}
.fp-toc-item {
    display: block;
    padding: 6px 12px;
    font-size: 0.88rem;
    color: var(--fp-text-secondary, #475569);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1.5;
}
.fp-toc-item:hover {
    background: var(--fp-surface-hover, #f1f5f9);
    color: var(--fp-primary, #6366f1);
}
.fp-toc-h3 {
    padding-left: 28px;
    font-size: 0.84rem;
}

/* ==================== AUTHOR BOX ==================== */
.fp-author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--fp-bg-secondary, #f8fafc);
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid var(--fp-border-light, #e2e8f0);
}
.fp-author-box-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fp-author-box-info {
    flex: 1;
    min-width: 0;
}
.fp-author-box-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.fp-author-box-name a {
    color: var(--fp-text, #1a1a2e);
    text-decoration: none;
}
.fp-author-box-bio {
    font-size: 0.85rem;
    color: var(--fp-text-secondary, #475569);
    line-height: 1.6;
    margin-bottom: 8px;
}
.fp-author-box-follow {
    padding: 6px 20px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--fp-primary, #6366f1);
    color: #fff;
}
.fp-author-box-follow.following {
    background: var(--fp-surface-hover, #f1f5f9);
    color: var(--fp-text-secondary, #475569);
}

/* ==================== SHARE BUTTONS ==================== */
.fp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--fp-border-light, #e2e8f0);
    margin-top: 24px;
}
.fp-share-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-text-secondary, #475569);
    margin-right: 4px;
}
.fp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--fp-border-light, #e2e8f0);
    background: var(--fp-bg, #fff);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--fp-text-secondary, #475569);
}
.fp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.fp-share-btn[data-share="twitter"]:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.fp-share-btn[data-share="facebook"]:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.fp-share-btn[data-share="line"]:hover { background: #06c755; color: #fff; border-color: #06c755; }
.fp-share-btn[data-share="copy"]:hover { background: var(--fp-primary, #6366f1); color: #fff; border-color: var(--fp-primary, #6366f1); }

/* ==================== RECOMMENDED ARTICLES ==================== */
.fp-recommended {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--fp-border-light, #e2e8f0);
}
.fp-recommended-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fp-text, #1a1a2e);
}
.fp-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* ==================== EXPLORE SEARCH SECTION ==================== */
.fp-explore-search-section {
    margin-bottom: 16px;
}
.fp-explore-search-wrap {
    position: relative;
    max-width: 100%;
}
.fp-explore-search-section .fp-explore-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--fp-border, #e2e8f0);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--fp-bg-secondary, #f8fafc);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.fp-explore-search-section .fp-explore-search-input:focus {
    border-color: var(--fp-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    background: var(--fp-bg, #fff);
}
.fp-explore-search-section .fp-explore-search-input::placeholder {
    color: var(--fp-text-tertiary, #9ca3af);
}

/* ==================== EXPLORE SEARCH ==================== */
.fp-explore-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fp-explore-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid var(--fp-border, #e2e8f0);
    border-radius: 12px;
    font-size: 0.9rem;
    background: var(--fp-bg, #fff);
    transition: border-color 0.2s;
    outline: none;
}
.fp-explore-search-input:focus {
    border-color: var(--fp-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.fp-explore-sort-select {
    padding: 10px 16px;
    border: 1px solid var(--fp-border, #e2e8f0);
    border-radius: 12px;
    font-size: 0.85rem;
    background: var(--fp-bg, #fff);
    cursor: pointer;
    outline: none;
}

/* ==================== EXPLORE CATEGORIES ==================== */
.fp-explore-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fp-explore-tabs::-webkit-scrollbar {
    display: none;
}
.fp-explore-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--fp-border, #e2e8f0);
    background: var(--fp-bg, #fff);
    color: var(--fp-text-secondary, #475569);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.fp-explore-tab:hover {
    border-color: var(--fp-primary, #6366f1);
    color: var(--fp-primary, #6366f1);
}
.fp-explore-tab.active {
    background: var(--fp-primary, #6366f1);
    color: #fff;
    border-color: var(--fp-primary, #6366f1);
}

/* ==================== PROFILE TABS ==================== */
.fp-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--fp-border-light, #e2e8f0);
    margin-bottom: 24px;
}
.fp-profile-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fp-text-secondary, #475569);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.fp-profile-tab:hover {
    color: var(--fp-primary, #6366f1);
}
.fp-profile-tab.active {
    color: var(--fp-primary, #6366f1);
    border-bottom-color: var(--fp-primary, #6366f1);
    font-weight: 600;
}

/* ==================== PROFILE SORT ==================== */
.fp-profile-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.fp-profile-sort label {
    font-size: 0.85rem;
    color: var(--fp-text-secondary, #475569);
}
.fp-profile-sort select {
    padding: 6px 12px;
    border: 1px solid var(--fp-border, #e2e8f0);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--fp-bg, #fff);
    cursor: pointer;
}

/* ==================== DELETE ACCOUNT ==================== */
.fp-danger-zone {
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 24px;
    background: #fef2f2;
    margin-top: 32px;
}
.fp-danger-zone h3 {
    color: #dc2626;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.fp-danger-zone p {
    color: #7f1d1d;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.6;
}
.fp-btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fp-btn-danger:hover {
    background: #b91c1c;
}

/* ==================== DELETE ACCOUNT MODAL ==================== */
.fp-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.fp-delete-modal.open {
    display: flex;
}
.fp-delete-modal-content {
    background: var(--fp-bg, #fff);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

/* ==================== INTERESTS ==================== */
.fp-interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.fp-interest-tag {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    border: 1px solid var(--fp-border, #e2e8f0);
    background: var(--fp-bg, #fff);
    color: var(--fp-text-secondary, #475569);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.fp-interest-tag:hover {
    border-color: var(--fp-primary, #6366f1);
}
.fp-interest-tag.selected {
    background: var(--fp-primary, #6366f1);
    color: #fff;
    border-color: var(--fp-primary, #6366f1);
}

/* ==================== TIME SALE ==================== */
.fp-time-sale-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}
.fp-time-sale-countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.fp-time-sale-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fp-time-sale-original {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.85rem;
}
.fp-time-sale-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc2626;
}

/* ==================== PAYWALL ==================== */
.fp-paywall-marker {
    user-select: none;
}
.fp-paywall-divider {
    text-align: center;
    margin: 40px 0 16px;
    position: relative;
}
.fp-paywall-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--fp-border, #e2e8f0);
}
.fp-paywall-divider-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--fp-bg, #fff);
    color: var(--fp-text, #1a1a1a);
    font-weight: 700;
    font-size: 1.1rem;
}
.fp-paywall-volume {
    text-align: center;
    font-size: 0.9rem;
    color: var(--fp-text-secondary, #6b7280);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.fp-paywall-locked {
    position: relative;
    overflow: hidden;
}
.fp-paywall-locked::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--fp-bg, #fff));
    pointer-events: none;
}
.fp-paywall-cta {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid var(--fp-border-light, #e2e8f0);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

/* ==================== REFUND BUTTON ==================== */
.fp-refund-btn-front {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.fp-refund-btn-front:hover {
    background: #fee2e2;
}

/* ==================== NOTIFICATION IMPROVEMENTS ==================== */
.fp-notif-group {
    margin-bottom: 24px;
}
.fp-notif-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-tertiary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--fp-border-light, #e2e8f0);
}
.fp-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background 0.15s;
    margin-bottom: 2px;
}
.fp-notif-item:hover {
    background: var(--fp-surface-hover, #f1f5f9);
}
.fp-notif-item.unread {
    background: rgba(99,102,241,0.04);
}
.fp-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.fp-notif-icon.follow { background: #ede9fe; color: #7c3aed; }
.fp-notif-icon.like { background: #fee2e2; color: #dc2626; }
.fp-notif-icon.comment { background: #dbeafe; color: #2563eb; }
.fp-notif-icon.purchase { background: #d1fae5; color: #059669; }
.fp-notif-icon.system { background: #f1f5f9; color: #64748b; }
.fp-notif-body {
    flex: 1;
    min-width: 0;
}
.fp-notif-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--fp-text, #1a1a2e);
}
.fp-notif-text strong {
    font-weight: 600;
}
.fp-notif-time {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary, #94a3b8);
    margin-top: 2px;
}

/* ==================== HEADER ICONS ==================== */
.fp-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fp-header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fp-bg-secondary, #f8fafc);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--fp-text-secondary, #475569);
}
.fp-header-icon-btn:hover {
    background: var(--fp-surface-hover, #f1f5f9);
    color: var(--fp-primary, #6366f1);
}
.fp-header-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ==================== PAID/FREE UI ==================== */
.fp-paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.fp-paid-badge.paid {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}
.fp-paid-badge.free {
    background: #d1fae5;
    color: #065f46;
}
.fp-paid-badge.premium-free {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
}

/* ==================== COVER IMAGE SIZE DISPLAY ==================== */
.fp-cover-size-info {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary, #94a3b8);
    margin-top: 6px;
    text-align: center;
}

/* ==================== COVER TEMPLATE MODAL ==================== */
.fp-cover-tpl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.fp-cover-tpl-modal.open {
    display: flex;
}
.fp-cover-tpl-modal-content {
    background: var(--fp-bg, #fff);
    border-radius: 16px;
    padding: 24px;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.fp-cover-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.fp-cover-tpl-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.fp-cover-tpl-item:hover {
    border-color: var(--fp-primary, #6366f1);
    transform: translateY(-2px);
}

/* ==================== FAQ PAGE ==================== */
.fp-faq-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 16px;
}
.fp-faq-page-item {
    border: 1px solid var(--fp-border-light, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.2s;
}
.fp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--fp-text, #1a1a2e);
    background: var(--fp-bg, #fff);
    transition: background 0.15s;
    user-select: none;
}
.fp-faq-question:hover {
    background: var(--fp-surface-hover, #f1f5f9);
}
.fp-faq-question svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}
.fp-faq-page-item.open .fp-faq-question svg {
    transform: rotate(180deg);
}
.fp-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--fp-text-secondary, #475569);
}
.fp-faq-page-item.open .fp-faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

/* ==================== REGISTER COMPLETE ==================== */
.fp-register-complete {
    text-align: center;
    padding: 60px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.fp-register-complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.fp-register-complete h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.fp-register-complete p {
    font-size: 0.95rem;
    color: var(--fp-text-secondary, #475569);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ==================== PASSWORD RESET ==================== */
.fp-password-reset {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ==================== TOGGLE SWITCH FIX (global override) ==================== */
.fp-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    user-select: none;
    overflow: visible !important;
}
.fp-toggle .slider {
    position: relative;
    width: 44px !important;
    min-width: 44px !important;
    height: 24px !important;
    background: #cbd5e1;
    border-radius: 99px;
    transition: background 0.2s;
    flex-shrink: 0 !important;
}
.fp-toggle .slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.fp-toggle input:checked + .slider {
    background: var(--fp-primary, #6366f1);
}
.fp-toggle input:checked + .slider::before {
    transform: translateX(20px);
}
.fp-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.fp-toggle .label-text {
    font-size: 0.9rem;
    color: var(--fp-text, #1a1a2e);
    line-height: 1.4;
}

/* ==================== EDITOR PAYWALL BUTTON ==================== */
.fp-paywall-insert-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px dashed #f59e0b;
    background: #fffbeb;
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s;
}
.fp-paywall-insert-btn:hover {
    background: #fef3c7;
}

/* ==================== EDITOR SETTINGS IMPROVEMENTS ==================== */
.fp-editor-setting-group {
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-border-light, #e2e8f0);
}
.fp-editor-setting-group:last-child {
    border-bottom: none;
}
.fp-editor-setting-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-text, #1a1a2e);
    margin-bottom: 8px;
}
.fp-editor-setting-desc {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary, #94a3b8);
    margin-top: 4px;
}

/* ==================== RESPONSIVE FIXES ==================== */
@media (max-width: 640px) {
    .fp-explore-search-bar {
        flex-direction: column;
    }
    .fp-explore-search-input {
        width: 100%;
    }
    .fp-share-bar {
        flex-wrap: wrap;
    }
    .fp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .fp-recommended-grid {
        grid-template-columns: 1fr;
    }
    .fp-profile-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    .fp-profile-tab {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}


/* ============================================================
   HOME TABS & CAROUSEL
   ============================================================ */

/* Tab Navigation - note.com style underline tabs */
.fp-home-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--fp-border);
    margin-bottom: 24px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fp-home-tabs::-webkit-scrollbar { display: none; }

.fp-home-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 24px;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fp-text-tertiary);
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.01em;
}
.fp-home-tab:hover {
    color: var(--fp-text);
    background: transparent;
}
.fp-home-tab.active {
    color: var(--fp-text);
    background: transparent;
    box-shadow: none;
}
.fp-home-tab.active svg {
    stroke: var(--fp-text);
}

/* Sliding underline indicator */
.fp-home-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--fp-primary);
    border-radius: 3px 3px 0 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Tab Content */
.fp-home-tab-content {
    display: none;
}
.fp-home-tab-content.active {
    display: block;
    animation: fpFadeIn 0.3s ease;
}
@keyframes fpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carousel */
.fp-carousel-wrapper {
    position: relative;
    margin: 0 -4px;
    overflow: visible;
}

.fp-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 12px 4px;
}
.fp-carousel-track::-webkit-scrollbar { display: none; }

.fp-carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-width: 0;
}
.fp-carousel-item .fp-article-card {
    width: 100%;
    margin: 0;
}

/* Carousel Arrows */
.fp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.fp-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.08);
}
.fp-carousel-prev {
    left: -12px;
    opacity: 0;
}
.fp-carousel-next {
    right: -12px;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .fp-carousel-item {
        flex: 0 0 240px;
    }
    .fp-carousel-arrow {
        display: none;
    }
    .fp-home-tab {
        padding: 12px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .fp-carousel-item {
        flex: 0 0 220px;
    }
}


/* ==================== IMAGE CROPPER MODAL ==================== */
.fp-cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.fp-cropper-modal.active {
    display: flex;
}
.fp-cropper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.fp-cropper-dialog {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    width: 90vw;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.fp-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fp-cropper-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.fp-cropper-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}
.fp-cropper-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.fp-cropper-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 60vh;
}
.fp-cropper-container {
    width: 100%;
    height: 100%;
    max-height: 60vh;
}
.fp-cropper-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.fp-cropper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    flex-wrap: wrap;
}
.fp-cropper-actions-left {
    display: flex;
    gap: 6px;
}
.fp-cropper-actions-right {
    display: flex;
    gap: 8px;
}
.fp-cropper-tool {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-cropper-tool:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.fp-cropper-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.fp-cropper-skip {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.fp-cropper-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.fp-cropper-apply {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.fp-cropper-apply:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Cropper.js overrides for dark theme */
.fp-cropper-modal .cropper-view-box {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-color: rgba(99, 102, 241, 0.8);
}
.fp-cropper-modal .cropper-line {
    background-color: rgba(99, 102, 241, 0.5);
}
.fp-cropper-modal .cropper-point {
    background-color: #6366f1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.fp-cropper-modal .cropper-modal {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .fp-cropper-dialog {
        width: 96vw;
        border-radius: 12px;
    }
    .fp-cropper-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .fp-cropper-actions-right {
        width: 100%;
    }
    .fp-cropper-btn {
        flex: 1;
        text-align: center;
    }
    .fp-cropper-body {
        min-height: 250px;
    }
}


/* ==================== PAYWALL MARKER - ENHANCED UI ==================== */
.fp-paywall-marker {
    margin: 20px 0;
    user-select: none;
    cursor: grab;
    position: relative;
    z-index: 10;
    transition: opacity 0.2s ease;
}
.fp-paywall-marker:active {
    cursor: grabbing;
}
.fp-paywall-dragging {
    opacity: 0.4;
}
.fp-paywall-marker-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.fp-paywall-marker-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, #f59e0b);
    border-radius: 1px;
}
.fp-paywall-marker-line-right {
    background: linear-gradient(90deg, #f59e0b, #f59e0b, transparent);
}
.fp-paywall-marker-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    border-radius: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    transition: all 0.2s ease;
}
.fp-paywall-marker:hover .fp-paywall-marker-content {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    transform: translateY(-1px);
}
.fp-paywall-marker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b45309;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.fp-paywall-marker-label svg {
    color: #d97706;
    flex-shrink: 0;
}
.fp-paywall-marker-controls {
    display: flex;
    gap: 2px;
}
.fp-paywall-move-btn,
.fp-paywall-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(180, 83, 9, 0.1);
    color: #b45309;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.fp-paywall-move-btn:hover {
    background: rgba(180, 83, 9, 0.2);
    color: #92400e;
    transform: scale(1.1);
}
.fp-paywall-remove-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    transform: scale(1.1);
}
.fp-paywall-marker-hints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 0;
    font-size: 0.7rem;
    color: #9ca3af;
}
.fp-paywall-hint-free {
    color: #059669;
    font-weight: 500;
}
.fp-paywall-hint-paid {
    color: #d97706;
    font-weight: 500;
}
.fp-paywall-hint-drag {
    color: #9ca3af;
    font-style: italic;
}

/* Paywall marker pulse animation */
.fp-paywall-marker-pulse .fp-paywall-marker-content {
    animation: fpPaywallPulse 0.5s ease 3;
}
@keyframes fpPaywallPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15); }
    50% { transform: scale(1.03); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35); }
}

/* Drop zones for drag & drop */
.fp-paywall-dropzone {
    height: 4px;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.2s ease;
    position: relative;
}
.fp-paywall-dropzone-line {
    height: 100%;
    border-radius: 2px;
    background: transparent;
    transition: all 0.2s ease;
}
.fp-paywall-dropzone-active {
    height: 40px;
    margin: 8px 0;
}
.fp-paywall-dropzone-active .fp-paywall-dropzone-line {
    height: 100%;
    background: rgba(245, 158, 11, 0.15);
    border: 2px dashed #f59e0b;
    border-radius: 8px;
}

/* Free/Paid zone visual indicators */
.fp-paywall-zone-free {
    border-left: 3px solid transparent;
    padding-left: 4px;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.fp-paywall-zone-paid {
    border-left: 3px solid #f59e0b;
    padding-left: 4px;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.15), transparent 60px);
    transition: all 0.3s ease;
}

/* Toolbar paywall button highlight */
.fp-toolbar-paywall-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    color: #d97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
    background: rgba(254, 243, 199, 0.5) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
}
.fp-toolbar-paywall-btn:hover {
    background: rgba(254, 243, 199, 0.8) !important;
    border-color: #f59e0b !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .fp-paywall-marker-content {
        padding: 6px 10px;
        gap: 4px;
    }
    .fp-paywall-marker-label {
        font-size: 0.75rem;
    }
    .fp-paywall-move-btn,
    .fp-paywall-remove-btn {
        width: 22px;
        height: 22px;
    }
    .fp-paywall-marker-hints {
        font-size: 0.65rem;
    }
}


/* ==================== HOVER LIFT EFFECT ==================== */
.fp-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fp-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ==================== SUKI ANIMATION ==================== */
@keyframes fp-suki-burst {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes fp-suki-particles {
    0% { opacity: 1; transform: scale(0); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1.5); }
}
.fp-suki-animate {
    animation: fp-suki-burst 0.5s ease;
}
.fp-suki-animate svg {
    fill: #ff6b6b;
    stroke: #ff6b6b;
    color: #ff6b6b;
}
.fp-suki-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    pointer-events: none;
}
.fp-suki-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: fp-suki-particle-fly 0.6s ease-out forwards;
}
@keyframes fp-suki-particle-fly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ==================== BOOKMARK BUTTON ==================== */
.fp-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-bookmark-btn:hover {
    background: var(--fp-bg-secondary, #f3f4f6);
}
.fp-bookmark-btn.active svg {
    fill: var(--fp-primary, #6366f1);
    stroke: var(--fp-primary, #6366f1);
}
@keyframes fp-bookmark-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.fp-bookmark-animate {
    animation: fp-bookmark-pop 0.4s ease;
}

/* ==================== TIPPING / SUPPORT MODAL ==================== */
.fp-tip-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.fp-tip-modal-overlay.active {
    display: flex;
}
.fp-tip-modal {
    background: var(--fp-bg, #fff);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: fp-modal-enter 0.3s ease;
}
@keyframes fp-modal-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.fp-tip-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--fp-border-light, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fp-tip-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.fp-tip-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--fp-text-tertiary);
    border-radius: 50%;
    transition: background 0.2s;
}
.fp-tip-modal-close:hover {
    background: var(--fp-bg-secondary, #f3f4f6);
}
.fp-tip-modal-body {
    padding: 24px;
}
.fp-tip-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.fp-tip-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.fp-tip-author-name {
    font-weight: 600;
    font-size: 15px;
}
.fp-tip-author-label {
    font-size: 13px;
    color: var(--fp-text-tertiary);
}
.fp-tip-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.fp-tip-amount-btn {
    padding: 14px 8px;
    border: 2px solid var(--fp-border-light, #e5e7eb);
    border-radius: 12px;
    background: var(--fp-bg, #fff);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 15px;
}
.fp-tip-amount-btn:hover {
    border-color: var(--fp-primary, #6366f1);
    background: rgba(99,102,241,0.05);
}
.fp-tip-amount-btn.selected {
    border-color: var(--fp-primary, #6366f1);
    background: rgba(99,102,241,0.1);
    color: var(--fp-primary, #6366f1);
}
.fp-tip-custom {
    margin-bottom: 16px;
}
.fp-tip-custom input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fp-border-light, #e5e7eb);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.fp-tip-custom input:focus {
    border-color: var(--fp-primary, #6366f1);
}
.fp-tip-message textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--fp-border-light, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.fp-tip-message textarea:focus {
    border-color: var(--fp-primary, #6366f1);
}
.fp-tip-message label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-text-secondary);
    margin-bottom: 6px;
}
.fp-tip-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--fp-border-light, #f0f0f0);
}
.fp-tip-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--fp-primary, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fp-tip-submit-btn:hover {
    background: var(--fp-primary-dark, #4f46e5);
    transform: translateY(-1px);
}
.fp-tip-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==================== FLOATING BAR IMPROVEMENTS ==================== */
.fp-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fp-bg, #fff);
    border-top: 1px solid var(--fp-border-light, #f0f0f0);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.fp-floating-bar.visible {
    transform: translateY(0);
}
.fp-floating-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 680px;
    width: 100%;
    justify-content: center;
}
.fp-floating-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 100px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--fp-text-secondary);
    transition: all 0.2s;
    position: relative;
}
.fp-floating-action:hover {
    background: var(--fp-bg-secondary, #f3f4f6);
    color: var(--fp-text-primary);
}
.fp-floating-action.active {
    color: var(--fp-primary, #6366f1);
}
.fp-floating-action.liked svg {
    fill: #ff6b6b;
    stroke: #ff6b6b;
    color: #ff6b6b;
}
.fp-floating-divider {
    width: 1px;
    height: 24px;
    background: var(--fp-border-light, #e5e7eb);
}

/* ==================== AUTHOR SIDEBAR (Desktop) ==================== */
.fp-author-sidebar {
    position: sticky;
    top: 80px;
    width: 240px;
    flex-shrink: 0;
}
.fp-author-sidebar-card {
    background: var(--fp-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--fp-border-light, #f0f0f0);
    padding: 20px;
    text-align: center;
}
.fp-author-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.fp-author-sidebar-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.fp-author-sidebar-bio {
    font-size: 13px;
    color: var(--fp-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-author-sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
}
.fp-author-sidebar-stat-value {
    font-weight: 700;
    font-size: 16px;
    display: block;
}
.fp-author-sidebar-stat-label {
    color: var(--fp-text-tertiary);
}
.fp-author-sidebar-follow {
    width: 100%;
    padding: 10px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--fp-primary, #6366f1);
    background: var(--fp-primary, #6366f1);
    color: #fff;
}
.fp-author-sidebar-follow:hover {
    background: var(--fp-primary-dark, #4f46e5);
}
.fp-author-sidebar-follow.following {
    background: transparent;
    color: var(--fp-primary, #6366f1);
}
.fp-author-sidebar-follow.following:hover {
    background: rgba(99,102,241,0.05);
}

/* ==================== TABLE OF CONTENTS - ENHANCED ==================== */
.fp-toc-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px;
}
.fp-toc-sidebar::-webkit-scrollbar {
    width: 3px;
}
.fp-toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--fp-border-light, #e5e7eb);
    border-radius: 3px;
}
.fp-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fp-border-light, #f0f0f0);
}
.fp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fp-toc-item {
    margin-bottom: 2px;
}
.fp-toc-link {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--fp-text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s;
    line-height: 1.4;
}
.fp-toc-link:hover {
    color: var(--fp-text-primary);
    background: var(--fp-bg-secondary, #f3f4f6);
}
.fp-toc-link.active {
    color: var(--fp-primary, #6366f1);
    border-left-color: var(--fp-primary, #6366f1);
    background: rgba(99,102,241,0.05);
    font-weight: 600;
}
.fp-toc-link[data-level="3"] {
    padding-left: 24px;
    font-size: 12px;
}

/* ==================== INFINITE SCROLL ==================== */
.fp-infinite-loader {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}
.fp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--fp-border-light, #e5e7eb);
    border-top-color: var(--fp-primary, #6366f1);
    border-radius: 50%;
    animation: fp-spin 0.8s linear infinite;
}
@keyframes fp-spin {
    to { transform: rotate(360deg); }
}
.fp-infinite-end {
    text-align: center;
    padding: 24px 0;
    color: var(--fp-text-tertiary);
    font-size: 14px;
}

/* ==================== ARTICLE CARD IMPROVEMENTS ==================== */
.fp-card-excerpt {
    font-size: 13px;
    color: var(--fp-text-secondary);
    line-height: 1.5;
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(13px * 1.5 * 2);
}
.fp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}
.fp-card-stat--likes svg {
    color: #ff6b6b;
}

/* ==================== SEARCH IMPROVEMENTS ==================== */
.fp-search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fp-search-tab {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-text-secondary);
    text-decoration: none;
    border: 1px solid var(--fp-border-light, #e5e7eb);
    transition: all 0.2s;
    white-space: nowrap;
}
.fp-search-tab:hover {
    border-color: var(--fp-primary, #6366f1);
    color: var(--fp-primary, #6366f1);
}
.fp-search-tab.active {
    background: var(--fp-primary, #6366f1);
    color: #fff;
    border-color: var(--fp-primary, #6366f1);
}
.fp-search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.fp-search-sort select {
    padding: 6px 12px;
    border: 1px solid var(--fp-border-light, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    background: var(--fp-bg, #fff);
    color: var(--fp-text-primary);
    cursor: pointer;
    outline: none;
}
.fp-search-price-filter {
    display: flex;
    gap: 6px;
}
.fp-search-price-btn {
    padding: 4px 12px;
    border: 1px solid var(--fp-border-light, #e5e7eb);
    border-radius: 100px;
    font-size: 12px;
    background: var(--fp-bg, #fff);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--fp-text-secondary);
}
.fp-search-price-btn:hover,
.fp-search-price-btn.active {
    border-color: var(--fp-primary, #6366f1);
    color: var(--fp-primary, #6366f1);
    background: rgba(99,102,241,0.05);
}
.fp-search-creator-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--fp-bg, #fff);
    border: 1px solid var(--fp-border-light, #f0f0f0);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.fp-search-creator-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.fp-search-creator-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fp-search-creator-info {
    flex: 1;
    min-width: 0;
}
.fp-search-creator-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.fp-search-creator-bio {
    font-size: 13px;
    color: var(--fp-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-search-creator-stats {
    font-size: 12px;
    color: var(--fp-text-tertiary);
    margin-top: 4px;
}

/* ==================== RELATED ARTICLES IMPROVED ==================== */
.fp-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--fp-border-light, #f0f0f0);
}
.fp-related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ==================== HIGH RATING DISPLAY ==================== */
.fp-paywall-ratings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.fp-paywall-rating-avatars {
    display: flex;
}
.fp-paywall-rating-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--fp-bg, #fff);
    margin-left: -8px;
    object-fit: cover;
}
.fp-paywall-rating-avatars img:first-child {
    margin-left: 0;
}
.fp-paywall-rating-text {
    font-size: 13px;
    color: var(--fp-text-secondary);
    font-weight: 500;
}

/* ==================== DESIGN SYSTEM - TRANSITIONS ==================== */
.fp-article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fp-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Smooth page transitions */
.fp-page-transition {
    animation: fp-page-fade 0.3s ease;
}
@keyframes fp-page-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button press feedback */
.fp-press:active {
    transform: scale(0.97);
}

/* Focus visible for accessibility */
.fp-article-card:focus-visible,
.fp-follow-btn:focus-visible,
.fp-bookmark-btn:focus-visible {
    outline: 2px solid var(--fp-primary, #6366f1);
    outline-offset: 2px;
}

/* ==================== RESPONSIVE IMPROVEMENTS ==================== */
@media (max-width: 768px) {
    .fp-author-sidebar {
        display: none;
    }
    .fp-floating-bar {
        padding: 6px 12px;
    }
    .fp-floating-action {
        padding: 6px 8px;
        font-size: 13px;
    }
    .fp-tip-modal {
        width: 95%;
        max-width: none;
        margin: 0 auto;
    }
    .fp-related-grid {
        grid-template-columns: 1fr;
    }
    .fp-search-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

@media (min-width: 1200px) {
    .fp-article-detail-layout {
        display: flex;
        gap: 32px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .fp-article-detail-main {
        flex: 1;
        min-width: 0;
    }
}

/* =========================================================================
   SEO: Breadcrumb Navigation
   ========================================================================= */
.fp-breadcrumb {
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--fp-text-secondary, #6b7280);
}
.fp-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.fp-breadcrumb-item {
    display: flex;
    align-items: center;
}
.fp-breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--fp-text-tertiary, #9ca3af);
    font-size: 14px;
}
.fp-breadcrumb-item a {
    color: var(--fp-primary, #2563eb);
    text-decoration: none;
    transition: color 0.15s;
}
.fp-breadcrumb-item a:hover {
    color: var(--fp-primary-dark, #1d4ed8);
    text-decoration: underline;
}
.fp-breadcrumb-current {
    color: var(--fp-text-primary, #111827);
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================================
   Performance: Image Lazy Loading
   ========================================================================= */
img.fp-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img.fp-lazy.loaded,
img.fp-lazy[data-loaded="true"] {
    opacity: 1;
}

/* =========================================================================
   Performance: Content Visibility for off-screen elements
   ========================================================================= */
.fp-article-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

/* ============================================================
   DECORATION TOOLS - Editor Toolbar Dropdowns
   ============================================================ */
.fp-toolbar-dropdown-wrap {
    position: relative;
    display: inline-flex;
}
.fp-toolbar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--fp-surface, #fff);
    border: 1px solid var(--fp-border, #e5e7eb);
    border-radius: var(--fp-radius, 10px);
    box-shadow: var(--fp-shadow-lg);
    padding: 8px;
    min-width: 140px;
    animation: fpDropdownIn 0.15s ease;
}
.fp-toolbar-dropdown-wrap.open .fp-toolbar-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
@keyframes fpDropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Marker Colors */
.fp-marker-dropdown {
    min-width: 180px;
}
.fp-marker-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fp-marker-color:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fp-marker-clear {
    background: #f3f4f6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}

/* Text Color */
.fp-textcolor-dropdown {
    min-width: 180px;
}
.fp-textcolor-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
    background: none;
}
.fp-textcolor-btn:hover {
    transform: scale(1.15);
    border-color: rgba(0,0,0,0.1);
}
.fp-textcolor-clear {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
}

/* Font Size */
.fp-fontsize-dropdown {
    flex-direction: column;
    min-width: 100px;
}
.fp-fontsize-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: var(--fp-radius-sm, 6px);
    text-align: left;
    transition: background 0.15s;
}
.fp-fontsize-btn:hover {
    background: var(--fp-bg-tertiary, #f1f3f7);
}

/* Box Styles */
.fp-box-dropdown {
    flex-direction: column;
    min-width: 160px;
}
.fp-box-style-btn {
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: var(--fp-radius-sm, 6px);
    text-align: left;
    transition: background 0.15s;
}
.fp-box-style-btn:hover {
    background: var(--fp-bg-tertiary, #f1f3f7);
}

/* Shape/Stamp */
.fp-shape-dropdown {
    flex-direction: column;
    min-width: 160px;
}
.fp-shape-btn {
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: var(--fp-radius-sm, 6px);
    text-align: left;
    transition: background 0.15s;
}
.fp-shape-btn:hover {
    background: var(--fp-bg-tertiary, #f1f3f7);
}

/* ============================================================
   DECORATION ELEMENTS - Rendered in article content
   ============================================================ */

/* Marker highlight */
.fp-deco-marker {
    background: linear-gradient(transparent 60%, var(--marker-color, #fff44f) 60%);
    padding: 0 2px;
}

/* Decorated boxes */
.fp-deco-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    line-height: 1.8;
}
.fp-deco-box-info {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
}
.fp-deco-box-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.fp-deco-box-success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.fp-deco-box-memo {
    background: #faf5ff;
    border-left: 4px solid #8b5cf6;
    color: #5b21b6;
}
.fp-deco-box-dashed {
    background: #fafafa;
    border: 2px dashed #d1d5db;
    color: var(--fp-text, #1a1a2e);
}
.fp-deco-box-shadow {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 4px 4px 0 #e5e7eb;
    color: var(--fp-text, #1a1a2e);
}

/* Dividers */
.fp-deco-divider {
    text-align: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    user-select: none;
}
.fp-deco-divider-wave {
    text-align: center;
    margin: 24px 0;
    color: #d1d5db;
    font-size: 1.5rem;
    user-select: none;
}

/* Badges */
.fp-deco-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 4px 2px;
}
.fp-deco-badge-new {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}
.fp-deco-badge-important {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
}

/* Stamps */
.fp-deco-stamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 2px;
}
.fp-deco-stamp-check {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.fp-deco-stamp-star {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Responsive toolbar */
@media (max-width: 768px) {
    .fp-editor-toolbar {
        flex-wrap: wrap;
    }
    .fp-toolbar-dropdown {
        left: 0;
        transform: none;
    }
    @keyframes fpDropdownIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ==================== PROFILE EDIT BUTTON (MOVED TO COVER) ==================== */
.fp-profile-edit-btn:hover {
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
    transform: translateY(-1px);
}
.fp-profile-edit-btn:active {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .fp-profile-edit-btn {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }
}
/* COMMERCIAL LAW PAGE ENHANCEMENT */
.fp-legal.fp-page-enter {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}
.fp-legal.fp-page-enter h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fp-text, #1a1a2e);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid transparent;
    border-image: var(--fp-primary-gradient, linear-gradient(135deg, #2563eb 0%, #7c3aed 100%)) 1;
    letter-spacing: 0.03em;
}

/* COMMERCIAL LAW TABLE */
.fp-legal-content .fp-commercial-law {
    margin-top: 0;
}
.fp-legal-content .fp-legal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--fp-border, #e5e7eb);
    border-radius: var(--fp-radius-lg, 16px);
    overflow: hidden;
    font-size: 0.93rem;
    box-shadow: var(--fp-shadow-md, 0 4px 6px -1px rgba(0,0,0,0.06));
    background: var(--fp-bg, #ffffff);
}
.fp-legal-content .fp-legal-table th,
.fp-legal-content .fp-legal-table td {
    padding: 20px 28px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.85;
    border-bottom: 1px solid var(--fp-border-light, #f3f4f6);
}
.fp-legal-content .fp-legal-table tr:last-child th,
.fp-legal-content .fp-legal-table tr:last-child td {
    border-bottom: none;
}
.fp-legal-content .fp-legal-table th {
    background: var(--fp-bg-secondary, #f8f9fb);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--fp-text, #1a1a2e);
    width: 220px;
    min-width: 180px;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 24px;
}
.fp-legal-content .fp-legal-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--fp-primary-gradient, linear-gradient(135deg, #2563eb 0%, #7c3aed 100%));
}
.fp-legal-content .fp-legal-table td {
    color: var(--fp-text-secondary, #5f6c7b);
    background: var(--fp-bg, #ffffff);
}
.fp-legal-content .fp-legal-table td strong {
    color: var(--fp-text, #1a1a2e);
    font-weight: 600;
}
.fp-legal-content .fp-legal-table tr {
    transition: background 0.2s var(--fp-ease, ease);
}
.fp-legal-content .fp-legal-table tr:hover td {
    background: var(--fp-primary-lighter, #eff6ff);
}
.fp-legal-content .fp-legal-table tr:hover th {
    background: #eef2f8;
}

/* Responsive */
@media (max-width: 640px) {
    .fp-legal.fp-page-enter {
        padding: 24px 16px 60px;
    }
    .fp-legal.fp-page-enter h1 {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }
    .fp-legal-content .fp-legal-table {
        border-radius: var(--fp-radius, 12px);
    }
    .fp-legal-content .fp-legal-table th,
    .fp-legal-content .fp-legal-table td {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
    .fp-legal-content .fp-legal-table th {
        min-width: unset;
        border-bottom: none;
        padding-bottom: 6px;
        padding-left: 20px;
        background: var(--fp-bg-tertiary, #f1f3f7);
    }
    .fp-legal-content .fp-legal-table th::before {
        width: 3px;
    }
    .fp-legal-content .fp-legal-table td {
        padding-top: 4px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--fp-border-light, #f3f4f6);
    }
    .fp-legal-content .fp-legal-table tr:last-child td {
        border-bottom: none;
    }
}
/* ============================================================
   LOGO ANIMATION VIDEO STYLES
   ============================================================ */
.fp-logo-anim-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
}

.fp-logo-anim-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    object-fit: contain;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.fp-logo-text-anim {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--fp-primary-gradient, linear-gradient(135deg, #2563eb, #7c3aed));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .fp-logo-anim-wrapper {
        width: 48px;
        height: 48px;
    }
    .fp-logo-anim-video {
        width: 80px;
        height: 80px;
    }
    .fp-logo-text-anim {
        font-size: 1.1rem;
    }
}


/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================================ */

/* ===== Mobile Search Bar (Home Page) ===== */
.fp-mobile-search-bar {
    display: none;
    padding: 12px 16px 0;
}
@media (max-width: 768px) {
    .fp-mobile-search-bar {
        display: block;
    }
    .fp-mobile-search-bar .fp-search-bar {
        position: relative;
        width: 100%;
    }
    .fp-mobile-search-bar .fp-search-bar input,
    .fp-mobile-search-input {
        width: 100%;
        padding: 10px 16px 10px 42px;
        background: var(--fp-bg-tertiary, #f3f4f6);
        border: 2px solid transparent;
        border-radius: 100px;
        font-size: 0.9rem;
        color: var(--fp-text);
        outline: none;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    .fp-mobile-search-bar .fp-search-bar input:focus,
    .fp-mobile-search-input:focus {
        background: var(--fp-bg, #fff);
        border-color: var(--fp-primary, #6366f1);
        box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    }
}

/* ===== Dashboard: Table Wrapper for Horizontal Scroll ===== */
.fp-dash-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}
.fp-dash-table-wrap table {
    min-width: 480px;
}
.fp-dash-table-wrap::-webkit-scrollbar {
    height: 4px;
}
.fp-dash-table-wrap::-webkit-scrollbar-track {
    background: var(--fp-bg-secondary, #f3f4f6);
    border-radius: 4px;
}
.fp-dash-table-wrap::-webkit-scrollbar-thumb {
    background: var(--fp-border, #d1d5db);
    border-radius: 4px;
}

/* ===== Dashboard: Desktop Table / Mobile Cards Toggle ===== */
.fp-dash-table-desktop {
    display: block;
}
.fp-dash-cards-mobile {
    display: none;
}

@media (max-width: 768px) {
    .fp-dash-table-desktop {
        display: none;
    }
    .fp-dash-cards-mobile {
        display: block;
    }
}

/* ===== Dashboard: Mobile Article Cards ===== */
.fp-dash-article-card {
    padding: 14px 0;
    border-bottom: 1px solid var(--fp-border-light, #f0f0f0);
}
.fp-dash-article-card:first-child {
    padding-top: 0;
}
.fp-dash-article-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.fp-dash-article-card__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fp-text, #111827);
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-dash-article-card__title:hover {
    color: var(--fp-primary, #6366f1);
}
.fp-dash-article-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fp-dash-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.fp-dash-badge--published {
    background: #d1fae5;
    color: #065f46;
}
.fp-dash-badge--draft {
    background: #fef3c7;
    color: #92400e;
}
.fp-dash-badge--paid {
    background: var(--fp-primary-light, #eef2ff);
    color: var(--fp-primary, #6366f1);
}
.fp-dash-article-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--fp-text-secondary, #6b7280);
    margin-bottom: 8px;
}
.fp-dash-article-card__actions {
    display: flex;
    gap: 8px;
}
.fp-dash-action-btn {
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
}
.fp-dash-action-btn--edit {
    background: var(--fp-primary-light, #eef2ff);
    color: var(--fp-primary, #6366f1);
}
.fp-dash-action-btn--edit:hover {
    background: var(--fp-primary, #6366f1);
    color: #fff;
}
.fp-dash-action-btn--delete {
    background: #fef2f2;
    color: #ef4444;
}
.fp-dash-action-btn--delete:hover {
    background: #ef4444;
    color: #fff;
}

/* ===== Dashboard: Magazine Cards (JS rendered) ===== */
.fp-mag-dash-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--fp-border-light, #f0f0f0);
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
}
.fp-mag-dash-card__cover {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--fp-bg-secondary, #f3f4f6);
}
.fp-mag-dash-card__body {
    flex: 1;
    min-width: 0;
}
.fp-mag-dash-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fp-mag-dash-card__desc {
    font-size: 0.8rem;
    color: var(--fp-text-tertiary, #9ca3af);
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fp-mag-dash-card__meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--fp-text-secondary, #6b7280);
    flex-wrap: wrap;
}
.fp-mag-dash-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.fp-mag-dash-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--fp-border, #e5e7eb);
    border-radius: 8px;
    background: var(--fp-bg, #fff);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.fp-mag-dash-btn:hover {
    background: var(--fp-bg-secondary, #f3f4f6);
}
.fp-mag-dash-btn--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #ef4444;
}
.fp-mag-dash-btn--danger:hover {
    background: #ef4444;
    color: #fff;
}

/* Mobile: Magazine cards stack vertically */
@media (max-width: 768px) {
    .fp-mag-dash-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .fp-mag-dash-card__cover {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16/9;
    }
    .fp-mag-dash-card__title {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .fp-mag-dash-card__desc {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .fp-mag-dash-card__meta {
        gap: 8px;
        font-size: 0.75rem;
    }
    .fp-mag-dash-card__actions {
        display: flex;
        gap: 8px;
    }
    .fp-mag-dash-btn {
        flex: 1;
        text-align: center;
        padding: 8px 8px;
        font-size: 0.78rem;
    }
}

/* ===== Dashboard: Stats Grid Mobile ===== */
@media (max-width: 768px) {
    .fp-dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .fp-dash-stat {
        padding: 12px 8px;
    }
    .fp-dash-stat-value {
        font-size: 1.1rem;
    }
    .fp-dash-stat-label {
        font-size: 0.65rem;
    }
}
@media (max-width: 480px) {
    .fp-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ===== Dashboard: Tabs Horizontal Scroll ===== */
@media (max-width: 768px) {
    .fp-dash-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        touch-action: pan-x;
    }
    .fp-dash-tabs::-webkit-scrollbar {
        display: none;
    }
    .fp-dash-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
    }
}

/* ===== Dashboard: Bank Account Grid Mobile ===== */
@media (max-width: 640px) {
    .fp-dash-bank-grid {
        grid-template-columns: 1fr !important;
    }
    .fp-dash-modal-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Dashboard: Points Section Mobile ===== */
@media (max-width: 640px) {
    .fp-user-dashboard .fp-dash-stat[style*="flex:1"] {
        min-width: unset !important;
    }
}

/* ===== Profile: note.com Style Article List (Mobile) ===== */
.fp-profile-list-mobile {
    display: none;
}
.fp-profile-grid-desktop {
    display: grid;
}

@media (max-width: 640px) {
    .fp-profile-grid-desktop {
        display: none !important;
    }
    .fp-profile-list-mobile {
        display: block;
    }
}

.fp-profile-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fp-border-light, #f0f0f0);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.fp-profile-list-item:first-child {
    padding-top: 0;
}
.fp-profile-list-item:hover {
    opacity: 0.8;
}
.fp-profile-list-item__body {
    flex: 1;
    min-width: 0;
}
.fp-profile-list-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--fp-text, #111827);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-profile-list-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fp-profile-list-item__badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.fp-profile-list-item__badge--paid {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}
.fp-profile-list-item__date {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary, #9ca3af);
}
.fp-profile-list-item__stat {
    font-size: 0.75rem;
    color: var(--fp-text-tertiary, #9ca3af);
}
.fp-profile-list-item__thumb {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fp-bg-tertiary, #f3f4f6);
}
.fp-profile-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Profile: Tabs Mobile Scroll ===== */
@media (max-width: 640px) {
    .fp-profile-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        touch-action: pan-x;
    }
    .fp-profile-tabs::-webkit-scrollbar {
        display: none;
    }
    .fp-profile-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

/* ===== Profile: Cover & Info Mobile ===== */
@media (max-width: 640px) {
    .fp-profile-cover {
        height: 120px !important;
    }
    .fp-profile-info {
        padding: 0 16px;
    }
    .fp-profile-name {
        font-size: 1.1rem;
    }
    .fp-profile-bio {
        font-size: 0.85rem;
    }
}

/* ===== Magazine Page: Header Mobile ===== */
@media (max-width: 640px) {
    .fp-magazine-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .fp-magazine-cover-img {
        width: 100%;
        max-width: 300px;
    }
    .fp-magazine-info {
        width: 100%;
    }
    .fp-magazine-title {
        font-size: 1.2rem;
    }
}

/* ===== Editor Bottom Actions ===== */
.fp-editor-bottom-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--fp-border-light, #e2e8f0);
    margin-top: 24px;
}
.fp-editor-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1.5px solid var(--fp-border, #e2e8f0);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-text-secondary, #64748b);
    background: var(--fp-bg, #fff);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}
.fp-editor-action-btn:hover {
    border-color: var(--fp-text-tertiary, #94a3b8);
    color: var(--fp-text, #1a1a2e);
    background: var(--fp-bg-secondary, #f8fafc);
}
.fp-editor-action-btn svg {
    flex-shrink: 0;
}
.fp-editor-action-publish {
    background: var(--fp-primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.fp-editor-action-publish:hover {
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    color: #fff;
    background: var(--fp-primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
}
.fp-editor-action-publish svg {
    stroke: #fff;
}
.fp-editor-action-draft {
    background: var(--fp-bg-secondary, #f8fafc);
}

/* ===== Editor: Mobile Fixes ===== */
@media (max-width: 768px) {
    .fp-editor-toolbar {
        flex-wrap: wrap;
        gap: 2px;
        padding: 6px;
    }
    .fp-editor-toolbar button {
        padding: 6px;
        min-width: 32px;
    }
    .fp-editor-container {
        padding: 12px 12px 80px;
    }
    .fp-editor-title-input {
        font-size: 1.3rem;
    }
    .fp-editor-bottom-actions {
        position: fixed;
        bottom: 56px;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--fp-bg, #fff);
        border-top: 1px solid var(--fp-border-light, #e2e8f0);
        margin-top: 0;
        padding: 10px 12px;
        gap: 8px;
        justify-content: stretch;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    }
    .fp-editor-action-btn {
        flex: 1;
        padding: 10px 6px;
        font-size: 0.78rem;
        border-radius: 8px;
        gap: 4px;
        flex-direction: row;
        text-align: center;
    }
    .fp-editor-action-btn svg {
        width: 14px;
        height: 14px;
    }
    .fp-editor-action-settings {
        flex: 0 0 auto;
        padding: 10px 12px;
    }
    .fp-editor-action-settings span {
        display: none;
    }
}

/* ===== Notification Page: Mobile ===== */
@media (max-width: 640px) {
    .fp-notification-item {
        padding: 12px;
        gap: 10px;
    }
    .fp-notification-avatar {
        width: 36px;
        height: 36px;
    }
    .fp-notification-text {
        font-size: 0.82rem;
    }
}

/* ===== Explore Page: Mobile ===== */
@media (max-width: 640px) {
    .fp-explore-search-bar {
        flex-direction: column;
    }
    .fp-explore-search-input {
        width: 100%;
    }
}

/* ===== General: Prevent Horizontal Overflow ===== */
@media (max-width: 768px) {
    .fp-main {
        overflow-x: hidden;
    }
    .fp-home-layout {
        overflow-x: hidden;
    }
    .fp-feed {
        overflow-x: hidden;
    }
    /* Prevent any table from breaking layout */
    table {
        word-break: break-word;
    }
}

/* ===== Header: Mobile Point Button ===== */
@media (max-width: 768px) {
    .fp-header-point-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .fp-point-balance {
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fp-notification-bell {
        padding: 4px;
    }
    .fp-header-right {
        gap: 4px;
    }
}

/* ===== Auth Carousel: Mobile ===== */
@media (max-width: 640px) {
    .fp-auth-card {
        padding: 20px 16px;
        margin: 0 8px;
    }
    .fp-auth-card h2 {
        font-size: 1.2rem;
    }
}

/* ===== Single Article: Mobile ===== */
@media (max-width: 768px) {
    .fp-article-content {
        padding: 0 16px;
    }
    .fp-article-content img {
        max-width: 100%;
        height: auto;
    }
    .fp-article-content iframe {
        max-width: 100%;
    }
    .fp-article-content video {
        max-width: 100%;
        height: auto;
    }
    .fp-paywall-box {
        margin: 0 -16px;
        border-radius: 0;
        padding: 24px 16px;
    }
}

/* ===== Bookmarks Page: Mobile ===== */
@media (max-width: 640px) {
    .fp-bookmarks-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Settings Page: Mobile ===== */
@media (max-width: 640px) {
    .fp-settings-form {
        padding: 16px;
    }
    .fp-settings-avatar-section {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Modal: Mobile Full Width ===== */
@media (max-width: 640px) {
    .fp-publish-modal {
        width: 95% !important;
        max-width: none !important;
        margin: 0 auto;
    }
    .fp-modal-overlay {
        padding: 16px;
    }
}

/* ===== Home: Category Nav Mobile ===== */
@media (max-width: 640px) {
    .fp-category-nav-item {
        min-width: 64px;
        padding: 8px 4px;
        gap: 4px;
    }
    .fp-category-nav-item span:first-child {
        font-size: 1.2rem;
    }
    .fp-category-nav-item span:last-child {
        font-size: 0.65rem;
    }
}

/* ===== Home: Article Grid Mobile ===== */
@media (max-width: 640px) {
    .fp-article-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ===== Carousel: Mobile ===== */
@media (max-width: 640px) {
    .fp-carousel-item {
        flex: 0 0 240px;
    }
    .fp-carousel-arrow {
        display: none;
    }
}

/* ===== DM / Messages: Mobile ===== */
@media (max-width: 640px) {
    .fp-dm-container {
        flex-direction: column;
    }
    .fp-dm-sidebar {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
    .fp-dm-main {
        width: 100%;
    }
}

/* ===== Footer: Mobile ===== */
@media (max-width: 640px) {
    .fp-footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 24px 16px;
    }
    .fp-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .fp-footer-links a {
        font-size: 0.78rem;
    }
}

/* ===== Swiper Carousel (Login/Register): Mobile ===== */
@media (max-width: 640px) {
    .swiper-slide {
        padding: 0 4px;
    }
}

/* ===== Dashboard: Overview Recent Articles Mobile ===== */
@media (max-width: 640px) {
    .fp-user-dashboard {
        padding: 0 12px !important;
    }
    .fp-user-dashboard h1 {
        font-size: 1.2rem !important;
    }
}

/* Settings page toggle override - prevent duplication with settings page toggle */
.fp-settings-section .fp-toggle-switch { background: none !important; width: auto !important; height: auto !important; cursor: default !important; position: relative !important; }
.fp-settings-section .fp-toggle-switch::after { display: none !important; }

/* ===== Mobile: Article List View (deeps.me style) ===== */
@media (max-width: 640px) {
    .fp-home-tab-content .fp-article-grid,
    .fp-feed .fp-article-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .fp-home-tab-content .fp-article-card,
    .fp-feed .fp-article-card {
        display: flex !important;
        flex-direction: row !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--fp-border-light, #f0f0f0) !important;
        height: auto !important;
        overflow: hidden !important;
        padding: 12px 16px !important;
        background: var(--fp-bg, #fff) !important;
        box-shadow: none !important;
        transform: none !important;
        content-visibility: visible !important;
        contain-intrinsic-size: auto !important;
    }
    .fp-home-tab-content .fp-article-card:hover,
    .fp-feed .fp-article-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-link,
    .fp-feed .fp-article-card .fp-card-link {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px;
        width: 100%;
    }
    .fp-home-tab-content .fp-article-card .fp-card-thumbnail,
    .fp-feed .fp-article-card .fp-card-thumbnail {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 80px !important;
        padding-top: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        order: 2 !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-thumbnail img,
    .fp-feed .fp-article-card .fp-card-thumbnail img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-body,
    .fp-feed .fp-article-card .fp-card-body {
        flex: 1 !important;
        padding: 0 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        order: 1 !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-title,
    .fp-feed .fp-article-card .fp-card-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-excerpt,
    .fp-feed .fp-article-card .fp-card-excerpt {
        font-size: 0.78rem !important;
        color: var(--fp-text-secondary) !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 6px !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-tags,
    .fp-feed .fp-article-card .fp-card-tags {
        display: none !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-footer,
    .fp-feed .fp-article-card .fp-card-footer {
        margin-top: auto !important;
        padding-top: 4px !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-author-avatar,
    .fp-feed .fp-article-card .fp-card-author-avatar {
        width: 20px !important;
        height: 20px !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-author-name,
    .fp-feed .fp-article-card .fp-card-author-name {
        font-size: 0.72rem !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-date,
    .fp-feed .fp-article-card .fp-card-date {
        font-size: 0.68rem !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-stats,
    .fp-feed .fp-article-card .fp-card-stats {
        display: none !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-badge,
    .fp-feed .fp-article-card .fp-card-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        top: 4px !important;
        left: 4px !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-badge-recent-purchase,
    .fp-feed .fp-article-card .fp-card-badge-recent-purchase {
        display: none !important;
    }
    .fp-home-tab-content .fp-article-card .fp-card-menu-wrap,
    .fp-feed .fp-article-card .fp-card-menu-wrap {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
    }
}

/* ===== Explore Page: Mobile Gap Fix ===== */
@media (max-width: 640px) {
    .fp-explore-container {
        padding-top: 8px !important;
    }
    .fp-explore-header {
        margin-bottom: 8px !important;
    }
    .fp-explore-title {
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
    }
    .fp-explore-search-section {
        margin-bottom: 12px !important;
    }
}
