/* FollowersLike - Soft UI + Glassmorphism */
:root {
    --fl-primary: #6366f1;
    --fl-primary-dark: #4f46e5;
    --fl-accent: #a855f7;
    --fl-success: #10b981;
    --fl-danger: #ef4444;
    --fl-bg: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    --fl-card: rgba(255, 255, 255, 0.75);
    --fl-border: rgba(255, 255, 255, 0.4);
    --fl-text: #1e293b;
    --fl-muted: #64748b;
    --fl-radius: 16px;
    --fl-radius-lg: 24px;
    --fl-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

body.fl-dark, .fl-dark {
    --fl-bg: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 50%, #2e1065 100%);
    --fl-card: rgba(30, 27, 75, 0.7);
    --fl-border: rgba(255, 255, 255, 0.08);
    --fl-text: #f1f5f9;
    --fl-muted: #94a3b8;
}

.fl-app {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--fl-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.fl-header {
    margin-bottom: 28px;
}
.fl-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fl-subtitle {
    color: var(--fl-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Cards */
.fl-card {
    background: var(--fl-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    padding: 24px;
    box-shadow: var(--fl-shadow);
    margin-bottom: 20px;
}

.fl-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .fl-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.fl-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}
.fl-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(99, 102, 241, 0.12);
}
.fl-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--fl-muted);
    margin-bottom: 2px;
}
.fl-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.fl-grid-2 {
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .fl-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.fl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
}
.fl-btn-primary {
    background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.fl-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45); }
.fl-btn-secondary {
    background: rgba(99, 102, 241, 0.12);
    color: var(--fl-primary);
}
.fl-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}
.fl-btn-outline {
    background: transparent;
    border: 1px solid var(--fl-primary);
    color: var(--fl-primary);
}
.fl-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.fl-btn-block { width: 100%; }
.fl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.fl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Referral */
.fl-referral {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--fl-border);
}
.fl-referral h3 { font-size: 0.95rem; margin: 0 0 8px; }
.fl-referral-code {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fl-referral-code code {
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Transactions */
.fl-txn-list { list-style: none; margin: 0; padding: 0; }
.fl-txn-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fl-border);
}
.fl-txn-list li:last-child { border-bottom: none; }
.fl-txn-list small { display: block; color: var(--fl-muted); font-size: 0.8rem; }
.fl-plus { color: var(--fl-success); font-weight: 700; }
.fl-minus { color: var(--fl-danger); font-weight: 700; }

/* Filters & Chips */
.fl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
a.fl-chip, .fl-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--fl-border);
    background: var(--fl-card);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.fl-chip.active, .fl-chip:hover {
    background: var(--fl-primary);
    color: #fff;
    border-color: var(--fl-primary);
}

/* Tasks Grid */
.fl-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.fl-task-card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.fl-task-platform {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.fl-task-reward {
    font-weight: 700;
    color: var(--fl-success);
    margin-bottom: 12px;
}
.fl-task-card .fl-btn { margin-right: 6px; margin-top: 4px; }

/* Forms */
.fl-form-card { max-width: 480px; }
.fl-form-group { margin-bottom: 18px; }
.fl-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.fl-form-group input,
.fl-form-group select,
.fl-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--fl-border);
    background: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    color: var(--fl-text);
    box-sizing: border-box;
}
.fl-form-group input:focus,
.fl-form-group select:focus {
    outline: none;
    border-color: var(--fl-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.fl-cost-preview {
    background: rgba(99, 102, 241, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* Orders */
.fl-order-card { margin-bottom: 16px; }
.fl-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.fl-platform-badge {
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.fl-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.fl-status-pending { background: #fef3c7; color: #92400e; }
.fl-status-processing { background: #dbeafe; color: #1e40af; }
.fl-status-completed { background: #d1fae5; color: #065f46; }
.fl-status-cancelled { background: #fee2e2; color: #991b1b; }
.fl-order-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--fl-muted);
    margin: 10px 0;
}
.fl-progress {
    height: 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.fl-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fl-primary), var(--fl-accent));
    border-radius: 99px;
    transition: width 0.4s;
}

/* Modal */
.fl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.fl-modal-content {
    background: var(--fl-card);
    backdrop-filter: blur(20px);
    border-radius: var(--fl-radius-lg);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--fl-shadow);
}
.fl-modal-content textarea {
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--fl-border);
    box-sizing: border-box;
}
.fl-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Empty & Loading */
.fl-empty, .fl-empty-state {
    text-align: center;
    color: var(--fl-muted);
    padding: 40px 20px;
}
.fl-loading {
    text-align: center;
    padding: 40px;
    color: var(--fl-muted);
}

/* Auth */
.fl-auth-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 32px;
    background: var(--fl-card);
    backdrop-filter: blur(16px);
    border-radius: var(--fl-radius-lg);
    box-shadow: var(--fl-shadow);
}
.fl-auth-box h2 { text-align: center; margin-bottom: 24px; }
.fl-auth-links { text-align: center; margin-top: 16px; font-size: 0.9rem; }

/* Notices */
.fl-notice {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.fl-notice-warning {
    background: #fef3c7;
    color: #92400e;
}

[x-cloak] { display: none !important; }
/* Notification Bell */
.fl-notif-wrap {
    position: relative;
    display: inline-block;
}
.fl-notif-btn {
    position: relative;
    background: var(--fl-card);
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fl-text);
}
.fl-notif-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}
.fl-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.fl-notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    max-width: 92vw;
    background: var(--fl-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--fl-border);
    border-radius: 16px;
    box-shadow: var(--fl-shadow);
    z-index: 1000;
    overflow: hidden;
}
.fl-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fl-border);
}
.fl-notif-list {
    max-height: 360px;
    overflow-y: auto;
}
.fl-notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fl-border);
    cursor: pointer;
    transition: background 0.15s;
}
.fl-notif-item:hover { background: rgba(99, 102, 241, 0.06); }
.fl-notif-item.unread { background: rgba(99, 102, 241, 0.08); }
.fl-notif-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.fl-notif-msg { font-size: 0.82rem; color: var(--fl-muted); line-height: 1.4; }
.fl-notif-time { font-size: 0.75rem; color: var(--fl-muted); margin-top: 4px; }
.fl-notif-empty { padding: 28px 16px; text-align: center; color: var(--fl-muted); margin: 0; }

/* Leaderboard */
.fl-rank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
}
.fl-rank-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fl-lb-table-wrap { padding: 0; overflow: hidden; }
.fl-lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.fl-lb-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--fl-muted);
    border-bottom: 1px solid var(--fl-border);
    background: rgba(0,0,0,0.02);
}
.fl-lb-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fl-border);
    vertical-align: middle;
}
.fl-lb-table tr:last-child td { border-bottom: none; }
.fl-lb-table tr.fl-lb-me {
    background: rgba(99, 102, 241, 0.08);
}
.fl-lb-table tr.fl-lb-top td { font-weight: 600; }
.fl-lb-rank {
    white-space: nowrap;
    font-weight: 700;
}
.fl-medal { margin-right: 4px; font-size: 1.1rem; }
.fl-lb-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fl-lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fl-you {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--fl-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}
.fl-lb-num { font-variant-numeric: tabular-nums; }
.fl-lb-score { color: var(--fl-primary); font-weight: 700; }
.fl-muted { color: var(--fl-muted); margin: 4px 0 0; font-size: 0.85rem; }

@media (max-width: 640px) {
    .fl-lb-table th:nth-child(n+4),
    .fl-lb-table td:nth-child(n+4) { display: none; }
}

/* Achievements */
.fl-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.fl-badge-card {
    text-align: center;
    padding: 24px 16px;
    transition: transform 0.2s;
}
.fl-badge-card.earned {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(160deg, rgba(16,185,129,0.08), var(--fl-card));
}
.fl-badge-card.locked {
    opacity: 0.75;
}
.fl-badge-card:hover { transform: translateY(-2px); }
.fl-badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1;
}
.fl-badge-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}
.fl-badge-card p {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: var(--fl-muted);
}
.fl-badge-status.earned {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
}
.fl-badge-progress small {
    display: block;
    margin-top: 6px;
    color: var(--fl-muted);
    font-size: 0.75rem;
}

/* Referrals */
.fl-ref-box {
    display: flex;
    gap: 10px;
    margin: 16px 0 12px;
    flex-wrap: wrap;
}
.fl-ref-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--fl-border);
    background: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    color: var(--fl-text);
}
.fl-ref-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.fl-ref-code-row code {
    background: rgba(99, 102, 241, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== Mobile + PC responsive + performance ===== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
img, video {
    max-width: 100%;
    height: auto;
}
.fl-app {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly targets (mobile) */
@media (max-width: 768px) {
    .fl-app {
        padding: 12px 12px 80px;
    }
    .fl-header h1 {
        font-size: 1.35rem;
    }
    .fl-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    .fl-btn-sm {
        min-height: 40px;
    }
    .fl-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .fl-stat-card {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .fl-stat-value {
        font-size: 1.2rem;
    }
    .fl-grid-2 {
        grid-template-columns: 1fr;
    }
    .fl-badge-grid,
    .fl-tasks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .fl-badge-card,
    .fl-task-card {
        padding: 14px 12px;
    }
    .fl-badge-icon {
        font-size: 1.8rem;
    }
    .fl-form-card {
        max-width: 100%;
    }
    .fl-ref-box {
        flex-direction: column;
    }
    .fl-ref-input {
        width: 100%;
    }
    .fl-notif-dropdown {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        top: auto;
        bottom: 70px;
        max-height: 60vh;
    }
    .fl-modal {
        padding: 12px;
        align-items: flex-end;
    }
    .fl-modal-content {
        max-width: 100%;
        border-radius: 20px 20px 12px 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .fl-lb-table {
        font-size: 0.8rem;
    }
    .fl-lb-table th,
    .fl-lb-table td {
        padding: 10px 8px;
    }
    .fl-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .fl-badge-grid,
    .fl-tasks-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .fl-app {
        padding: 20px 20px 40px;
    }
    .fl-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fl-badge-grid,
    .fl-tasks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .fl-app {
        max-width: 1100px;
        padding: 24px 20px 48px;
    }
    .fl-btn:hover {
        transform: translateY(-1px);
    }
}

/* Reduced motion (accessibility + less CPU) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Content visibility for long lists (faster paint) */
.fl-tasks-grid > *,
.fl-badge-grid > *,
.fl-orders-list > *,
.fl-lb-table tbody tr {
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .fl-app {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Print (optional, light) */
@media print {
    .fl-notif-wrap,
    .fl-btn { display: none !important; }
}

/* ===== Professional Homepage ===== */
.fl-home { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.fl-hero { text-align: center; padding: 48px 12px 40px; }
.fl-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--fl-card); border: 1px solid var(--fl-border);
    font-size: 0.85rem; font-weight: 500; margin-bottom: 20px;
    backdrop-filter: blur(12px);
}
.fl-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: flPulse 2s infinite;
}
@keyframes flPulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.fl-hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--fl-text);
}
.fl-gradient-text {
    background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fl-hero-sub {
    max-width: 560px; margin: 0 auto 28px;
    color: var(--fl-muted); font-size: 1.05rem; line-height: 1.6;
}
.fl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }
.fl-btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.fl-hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    max-width: 640px; margin: 0 auto;
}
.fl-hero-stats div {
    background: var(--fl-card); border: 1px solid var(--fl-border);
    border-radius: 16px; padding: 14px 8px; backdrop-filter: blur(12px);
}
.fl-hero-stats strong { display: block; font-size: 1.25rem; font-weight: 800; }
.fl-hero-stats span { font-size: 0.75rem; color: var(--fl-muted); }
.fl-section { padding: 32px 0; }
.fl-section-title {
    text-align: center; font-size: 1.5rem; font-weight: 800; margin: 0 0 24px;
}
.fl-platform-row {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.fl-platform-pill {
    padding: 10px 18px; border-radius: 999px;
    background: var(--fl-card); border: 1px solid var(--fl-border);
    font-weight: 600; font-size: 0.9rem;
    box-shadow: inset 0 -2px 0 var(--pc, #6366f1);
}
.fl-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.fl-step { text-align: center; padding: 28px 20px; }
.fl-step-num {
    width: 40px; height: 40px; margin: 0 auto 14px;
    border-radius: 12px; background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
    color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.fl-step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.fl-step p { margin: 0; color: var(--fl-muted); font-size: 0.9rem; line-height: 1.5; }
.fl-feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.fl-feat { padding: 24px; }
.fl-feat-icon { font-size: 1.75rem; margin-bottom: 10px; }
.fl-feat h3 { margin: 0 0 8px; font-size: 1.05rem; }
.fl-feat p { margin: 0; color: var(--fl-muted); font-size: 0.88rem; line-height: 1.5; }
.fl-cta-band {
    text-align: center; margin-top: 24px; padding: 40px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    border: 1px solid var(--fl-border);
}
.fl-cta-band h2 { margin: 0 0 10px; font-size: 1.5rem; }
.fl-cta-band p { margin: 0 0 20px; color: var(--fl-muted); }
.fl-announce-bar {
    background: linear-gradient(90deg, #4f46e5, #9333ea);
    color: #fff; text-align: center; padding: 10px 16px;
    font-size: 0.9rem; font-weight: 500;
}

@media (max-width: 768px) {
    .fl-hero { padding: 28px 0 24px; }
    .fl-hero-stats { grid-template-columns: 1fr 1fr; }
    .fl-steps, .fl-feat-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .fl-feat-grid { grid-template-columns: 1fr 1fr; }
}

/* Toolbar: language + dark mode */
.fl-toolbar {
    position: sticky; top: 0; z-index: 90;
    padding: 8px 12px;
}
.fl-toolbar-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.fl-tool-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 12px;
    border: 1px solid var(--fl-border);
    background: var(--fl-card); color: var(--fl-text);
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
    backdrop-filter: blur(12px);
}
.fl-tool-btn:hover { background: rgba(99,102,241,0.1); }
.fl-lang-switch { position: relative; }
.fl-lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 140px; background: var(--fl-card);
    border: 1px solid var(--fl-border); border-radius: 12px;
    box-shadow: var(--fl-shadow); overflow: hidden; z-index: 100;
    backdrop-filter: blur(16px);
}
.fl-lang-menu a {
    display: block; padding: 10px 14px; color: var(--fl-text);
    text-decoration: none; font-size: 0.9rem;
}
.fl-lang-menu a:hover, .fl-lang-menu a.active {
    background: rgba(99,102,241,0.12);
}
@media (max-width: 480px) {
    .fl-tool-label { display: none; }
}

/* Dark mode on body/html */
html.fl-dark-mode, body.fl-dark-mode {
    --fl-bg: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 50%, #2e1065 100%);
    --fl-card: rgba(30, 27, 75, 0.75);
    --fl-border: rgba(255, 255, 255, 0.1);
    --fl-text: #f1f5f9;
    --fl-muted: #94a3b8;
    color: var(--fl-text);
    background: #0f0a2e;
}
html.fl-dark-mode body,
body.fl-dark-mode {
    background: #0f0a2e;
    color: #f1f5f9;
}

/* Help Center */
.fl-help .fl-feat:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
}
.fl-help-article .fl-article-body p {
    margin: 0 0 1em;
}

a.fl-chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
a.fl-chip:hover { text-decoration: none; }

/* Auth nav (Home / Back) */
.fl-auth-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.fl-auth-box .fl-auth-nav a.fl-btn-ghost {
    background: transparent;
    border: 1px solid var(--fl-border, rgba(0,0,0,0.1));
    color: var(--fl-muted, #64748b);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
}
.fl-auth-box .fl-auth-nav a.fl-btn-ghost:hover {
    border-color: #6366f1;
    color: #6366f1;
}
.fl-register-form .input,
.fl-auth-box input[type="text"],
.fl-auth-box input[type="email"],
.fl-auth-box input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--fl-border, #e2e8f0);
    background: var(--fl-card, #fff);
    color: var(--fl-text, #0f172a);
    box-sizing: border-box;
}
.fl-btn-block { width: 100%; display: block; text-align: center; }
.fl-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8125rem; }


/* Auth gate (login required) */
.fl-auth-gate {
    max-width: 420px;
    margin: 2.5rem auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--fl-card, #fff);
    border: 1px solid var(--fl-border, #e2e8f0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.fl-auth-gate-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.fl-auth-gate h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.fl-auth-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

[x-cloak] { display: none !important; }


/* ===== v1.8.8 Performance + Mobile ===== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.fl-app, .fl-home, .fl-auth-box, .fl-auth-gate {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* Faster paint on low-end mobile: lighter glass */
@media (max-width: 768px) {
    .fl-card, .fl-stat-card, .fl-auth-box, .fl-auth-gate {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--fl-card-solid, #fff);
    }
    html.fl-dark-mode .fl-card,
    html.fl-dark-mode .fl-stat-card,
    body.fl-dark-mode .fl-card {
        background: rgba(30, 27, 75, 0.95);
    }
    .fl-btn, .fl-tool-btn, button.fl-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }
    .fl-stats-grid { gap: 10px; }
    .fl-header h1 { font-size: 1.4rem; }
    table.fl-table, .fl-orders-table, .fl-tasks-list {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .fl-form-card, .fl-auth-box { max-width: 100%; margin-left: auto; margin-right: auto; }
    input.input, .fl-auth-box input, .fl-register-form input,
    select, textarea {
        font-size: 16px !important; /* prevent iOS zoom */
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Admin users mobile */
@media (max-width: 782px) {
    .fl-admin-users #fl-user-add-form {
        grid-template-columns: 1fr !important;
    }
    .fl-admin-users .button-small {
        margin: 2px 0;
    }
}

/* Reduce motion already present; content-visibility for long lists */
.fl-task-card, .fl-order-row, .fl-chat-msg {
    content-visibility: auto;
    contain-intrinsic-size: 80px;
}

img, svg { max-width: 100%; height: auto; }


/* Page nav + toolbar nav (Back / Home) */
.fl-page-nav {
    margin: 0 0 16px;
}
.fl-page-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.fl-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.fl-toolbar-nav,
.fl-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.fl-toolbar a.fl-tool-btn {
    text-decoration: none;
    color: inherit;
}
.fl-btn-ghost {
    background: transparent;
    border: 1px solid var(--fl-border, rgba(0,0,0,0.12));
    color: var(--fl-muted, #64748b);
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font: inherit;
}
.fl-btn-ghost:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* Combined app hub */
.fl-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .fl-hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .fl-hub-grid { grid-template-columns: repeat(4, 1fr); }
}
a.fl-hub-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 100px;
}
a.fl-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}
.fl-hub-icon {
    font-size: 1.75rem;
    line-height: 1;
}


/* ===== v1.9.4 Unique live design ===== */
:root {
    --fl-primary: #7c3aed;
    --fl-primary-dark: #6d28d9;
    --fl-accent: #06b6d4;
    --fl-success: #10b981;
    --fl-danger: #f43f5e;
    --fl-warning: #f59e0b;
    --fl-bg: linear-gradient(160deg, #f5f3ff 0%, #ecfeff 45%, #fdf4ff 100%);
    --fl-card: rgba(255, 255, 255, 0.88);
    --fl-card-solid: #ffffff;
    --fl-border: rgba(124, 58, 237, 0.12);
    --fl-text: #1e1b4b;
    --fl-muted: #64748b;
    --fl-radius: 14px;
    --fl-radius-lg: 22px;
    --fl-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}

html.fl-dark-mode, body.fl-dark-mode, body.fl-dark {
    --fl-bg: linear-gradient(160deg, #0f0a1a 0%, #1a1033 50%, #0c1a2e 100%);
    --fl-card: rgba(30, 27, 60, 0.85);
    --fl-card-solid: #1e1b3a;
    --fl-border: rgba(167, 139, 250, 0.15);
    --fl-text: #f1f5f9;
    --fl-muted: #94a3b8;
}

.fl-app, .fl-home {
    background: transparent;
}

/* Hero redesign */
.fl-hero {
    position: relative;
    text-align: center;
    padding: 48px 20px 40px;
    border-radius: var(--fl-radius-lg);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.18), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.15), transparent 50%),
        var(--fl-card);
    border: 1px solid var(--fl-border);
    box-shadow: var(--fl-shadow);
    margin-bottom: 32px;
    overflow: hidden;
}
.fl-hero::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
    pointer-events: none;
}
.fl-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 12px 0 16px;
}
.fl-gradient-text {
    background: linear-gradient(120deg, #7c3aed, #06b6d4, #a855f7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flShine 6s ease infinite;
}
@keyframes flShine {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.fl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--fl-primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.fl-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fl-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: flPulse 2s infinite;
}
@keyframes flPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fl-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) {
    .fl-hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.fl-hero-stats > div {
    background: var(--fl-card-solid);
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    padding: 12px 8px;
}
.fl-hero-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--fl-primary);
}
.fl-hero-stats span {
    font-size: 0.75rem;
    color: var(--fl-muted);
}

.fl-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.fl-btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.fl-btn-secondary {
    background: var(--fl-card-solid) !important;
    border: 1px solid var(--fl-border) !important;
    color: var(--fl-text) !important;
}

.fl-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    position: relative;
    padding-left: 14px;
}
.fl-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #7c3aed, #06b6d4);
}

.fl-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.fl-platform-row > * {
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-weight: 600;
    border: 1px solid var(--fl-border);
    background: var(--fl-card-solid);
}

.fl-card {
    border-radius: var(--fl-radius-lg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fl-card:hover {
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
}

.fl-toolbar {
    background: var(--fl-card);
    border: 1px solid var(--fl-border);
    border-radius: 16px;
    padding: 8px 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Status badges (admin + frontend) */
.fl-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}
.fl-status-pending { background: #fef3c7; color: #b45309; }
.fl-status-processing { background: #e0e7ff; color: #4338ca; }
.fl-status-completed { background: #d1fae5; color: #047857; }
.fl-status-cancelled { background: #ffe4e6; color: #be123c; }
.fl-status-partial { background: #f3e8ff; color: #7e22ce; }

html.fl-dark-mode .fl-status-pending { background: #78350f; color: #fde68a; }
html.fl-dark-mode .fl-status-processing { background: #312e81; color: #c7d2fe; }
html.fl-dark-mode .fl-status-completed { background: #064e3b; color: #a7f3d0; }
html.fl-dark-mode .fl-status-cancelled { background: #881337; color: #fecdd3; }

.fl-hub-card {
    background: linear-gradient(145deg, var(--fl-card-solid), rgba(124, 58, 237, 0.04));
}


/* Language menu — many countries */
.fl-lang-menu {
    max-height: 280px;
    overflow-y: auto;
    min-width: 180px;
    overscroll-behavior: contain;
}
.fl-lang-menu a {
    display: block;
    padding: 8px 12px;
    white-space: nowrap;
}
.fl-lang-menu a.active {
    background: rgba(124, 58, 237, 0.12);
    font-weight: 700;
}

/* Footer notifications */
.fl-footer-notif {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99990;
    font-family: inherit;
}
.fl-footer-notif-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
    position: relative;
}
.fl-footer-notif-toggle .fl-notif-badge {
    position: static;
    margin-left: 4px;
    background: #f43f5e;
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.fl-footer-notif-panel {
    position: absolute;
    left: 0;
    bottom: 56px;
    width: min(360px, calc(100vw - 32px));
    max-height: 420px;
    background: var(--fl-card-solid, #fff);
    border: 1px solid var(--fl-border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fl-footer-notif-panel .fl-notif-list {
    max-height: 320px;
    overflow-y: auto;
}
@media (max-width: 480px) {
    .fl-footer-notif {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .fl-footer-notif-toggle {
        width: 100%;
        justify-content: center;
    }
    .fl-footer-notif-panel {
        left: 0;
        right: 0;
        width: 100%;
    }
}


/* ========== Premium hub / landing (v1.9.7) ========== */
.fl-premium {
    --fl-prem-bg: radial-gradient(1200px 600px at 10% -10%, rgba(124,58,237,.22), transparent 55%),
                  radial-gradient(900px 500px at 100% 0%, rgba(6,182,212,.18), transparent 50%),
                  linear-gradient(180deg, #f8f7ff 0%, #f0f9ff 40%, #faf5ff 100%);
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 12px 40px;
}
html.fl-dark-mode .fl-premium,
body.fl-dark-mode .fl-premium {
    --fl-prem-bg: radial-gradient(1000px 500px at 0% 0%, rgba(124,58,237,.35), transparent 50%),
                  radial-gradient(800px 400px at 100% 10%, rgba(6,182,212,.2), transparent 45%),
                  linear-gradient(180deg, #0c0a14 0%, #12101f 50%, #0a1628 100%);
}

.fl-premium-hero {
    position: relative;
    text-align: center;
    padding: 48px 24px 40px;
    border-radius: 28px;
    background: var(--fl-prem-bg);
    border: 1px solid rgba(124, 58, 237, 0.14);
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 24px 60px rgba(99, 102, 241, 0.12);
    overflow: hidden;
    margin-bottom: 36px;
}
html.fl-dark-mode .fl-premium-hero {
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.fl-premium-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    left: 50%;
    top: -120px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(167,139,250,.35), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}
.fl-premium-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #6d28d9;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(124,58,237,.18);
    backdrop-filter: blur(8px);
}
html.fl-dark-mode .fl-premium-badge {
    color: #c4b5fd;
    background: rgba(30,27,60,.7);
}
.fl-premium-title {
    position: relative;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 18px 0 14px;
    color: var(--fl-text, #1e1b4b);
}
.fl-premium-sub {
    position: relative;
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--fl-muted, #64748b);
}
.fl-premium-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}
.fl-btn-lg {
    padding: 0.85rem 1.5rem !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
}
.fl-btn-glow {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45) !important;
}
.fl-btn-glass {
    background: rgba(255,255,255,.65) !important;
    border: 1px solid rgba(124,58,237,.15) !important;
    color: var(--fl-text, #1e1b4b) !important;
    backdrop-filter: blur(10px);
}
html.fl-dark-mode .fl-btn-glass {
    background: rgba(255,255,255,.06) !important;
    color: #f1f5f9 !important;
}
.fl-premium-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .fl-premium-stats { grid-template-columns: repeat(4, 1fr); }
}
.fl-premium-stat {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(124,58,237,.1);
    border-radius: 16px;
    padding: 14px 10px;
    backdrop-filter: blur(8px);
}
html.fl-dark-mode .fl-premium-stat {
    background: rgba(30, 27, 60, 0.75);
    border-color: rgba(167,139,250,.15);
}
.fl-premium-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(120deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fl-premium-stat span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fl-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fl-premium-section {
    margin-bottom: 36px;
}
.fl-section-head {
    text-align: center;
    margin-bottom: 20px;
}
.fl-section-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--fl-text, #1e1b4b);
}
.fl-section-head p {
    margin: 0;
    color: var(--fl-muted, #64748b);
    font-size: 0.95rem;
}

.fl-hub-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) {
    .fl-hub-grid-premium { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
    .fl-hub-grid-premium { grid-template-columns: repeat(4, 1fr); }
}

a.fl-hub-card-premium {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px 18px 18px;
    min-height: 140px;
    border-radius: 20px;
    background: linear-gradient(155deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
html.fl-dark-mode a.fl-hub-card-premium {
    background: linear-gradient(155deg, #1a1730 0%, #15122a 100%);
    border-color: rgba(167, 139, 250, 0.15);
}
a.fl-hub-card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
}
.fl-hub-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.12));
    margin-bottom: 12px;
}
.fl-hub-card-premium .fl-hub-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.fl-hub-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--fl-text, #1e1b4b);
}
.fl-hub-desc {
    font-size: 0.8rem;
    color: var(--fl-muted, #64748b);
    line-height: 1.35;
    flex: 1;
}
.fl-hub-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 1.1rem;
    color: #7c3aed;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
a.fl-hub-card-premium:hover .fl-hub-arrow {
    opacity: 1;
    transform: translateX(0);
}

.fl-platform-row-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.fl-platform-pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pc, #7c3aed);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--pc, #7c3aed) 25%, transparent);
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
html.fl-dark-mode .fl-platform-pill {
    background: rgba(30,27,60,.85);
}

/* Smooth page container when theme content is tight */
.entry-content .fl-premium,
.fl-premium {
    clear: both;
}


/* SEO keywords footer block */
.fl-seo-keywords {
    margin-top: 8px;
    padding-top: 8px;
}
.fl-seo-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(124,58,237,.1);
    color: var(--fl-muted, #64748b);
    font-size: 0.9rem;
    line-height: 1.55;
}
html.fl-dark-mode .fl-seo-box {
    background: rgba(30,27,60,.6);
    border-color: rgba(167,139,250,.12);
}
.fl-seo-box p { margin: 0 0 12px; }
.fl-seo-tags {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fl-seo-tags li {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6d28d9;
    background: rgba(124,58,237,.08);
    border: 1px solid rgba(124,58,237,.12);
}
html.fl-dark-mode .fl-seo-tags li {
    color: #c4b5fd;
    background: rgba(124,58,237,.2);
}


/* ========== Premium site header (v1.9.9) ========== */
.fl-site-header.fl-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 0 20px;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html.fl-dark-mode .fl-site-header.fl-toolbar,
body.fl-dark-mode .fl-site-header.fl-toolbar {
    background: rgba(22, 18, 40, 0.92);
    border-color: rgba(167, 139, 250, 0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.fl-site-header .fl-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
}
.fl-toolbar-brand {
    flex-shrink: 0;
}
.fl-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.fl-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.fl-brand-text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--fl-text, #1e1b4b);
}
.fl-brand-text span {
    background: linear-gradient(120deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fl-site-header .fl-toolbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.fl-site-header .fl-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}
.fl-site-header .fl-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--fl-text, #1e1b4b);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    min-height: 40px;
}
.fl-site-header .fl-tool-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.12);
}
.fl-lang-btn .fl-lang-code {
    font-weight: 800;
    letter-spacing: 0.04em;
    min-width: 1.5em;
}
.fl-lang-switch {
    position: relative;
}
.fl-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1001;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}
html.fl-dark-mode .fl-lang-menu {
    background: #1e1b3a;
    border-color: rgba(167, 139, 250, 0.2);
}
.fl-lang-menu-title {
    padding: 6px 10px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fl-muted, #64748b);
}
.fl-lang-form {
    margin: 0;
}
.fl-lang-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.fl-lang-item:hover {
    background: rgba(124, 58, 237, 0.08);
}
.fl-lang-item.active {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
}
html.fl-dark-mode .fl-lang-item.active {
    color: #c4b5fd;
}
@media (max-width: 640px) {
    .fl-site-header .fl-tool-label {
        display: none;
    }
    .fl-site-header .fl-lang-btn .fl-lang-code {
        display: inline;
    }
    .fl-brand-text {
        font-size: 0.95rem;
    }
    .fl-site-header .fl-toolbar-inner {
        padding: 8px 10px;
    }
}
