/* =====================================================
 * PUBLIC PROFILE — Page-specific styles
 * Extracted from inline <style> for browser caching
 * ===================================================== */

.public-container {
    min-height: 100vh;
}

.attachment-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-top: 10px;
    display: none;
}

#create-post-modal .form-group textarea {
    min-height: 120px;
}

@keyframes pulse-btn {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.3);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(233, 30, 140, 0);
    }
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(233, 30, 140, 0.15); }
    50%       { border-color: rgba(233, 30, 140, 0.35); }
}

/* ================================================
 * CREATOR HOME BAR (Owner-only floating action bar)
 * ================================================ */
/* ================================================
 * CREATOR HOME BAR — Floating pill (bottom-right)
 * ================================================ */
#creator-home-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10100;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: chb-slide-in 0.4s cubic-bezier(0.16,1,0.3,1);
}

body.pd-chat-open #creator-home-bar,
#pd-chat-drawer.open ~ #creator-home-bar,
#pd-chat-drawer.open + #creator-home-bar {
    display: none !important;
}
@keyframes chb-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* Expanded panel */
.chb-expanded {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(14,12,25,0.97) 0%, rgba(24,18,45,0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(233,30,140,0.3);
    border-radius: 30px;
    padding: 8px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Collapsed pill icon */
.chb-pill-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #a855f7);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(233,30,140,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: chb-pulse 2.2s infinite;
}
.chb-pill-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(233,30,140,0.7);
}
@keyframes chb-pulse {
    0%,100% { box-shadow: 0 6px 24px rgba(233,30,140,0.5); }
    50%      { box-shadow: 0 6px 32px rgba(233,30,140,0.8); }
}

/* × close button */
.chb-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.chb-close:hover {
    background: rgba(239,68,68,0.2);
    color: #f87171;
    border-color: rgba(239,68,68,0.4);
}

.chb-left { display: flex; align-items: center; gap: 8px; }
.chb-eye-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e91e8c;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(233,30,140,0.5);
    animation: chb-blink 1.8s infinite;
    flex-shrink: 0;
}
@keyframes chb-blink {
    0%   { box-shadow: 0 0 0 0 rgba(233,30,140,0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(233,30,140,0); }
    100% { box-shadow: 0 0 0 0 rgba(233,30,140,0); }
}
.chb-label  { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 500; white-space: nowrap; }
.chb-handle {
    font-size: 0.72rem; font-weight: 700; color: #e91e8c;
    background: rgba(233,30,140,0.1);
    border: 1px solid rgba(233,30,140,0.25);
    border-radius: 20px; padding: 2px 8px;
    white-space: nowrap;
}
.chb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chb-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 20px; border: none;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: all 0.2s; font-family: inherit;
    white-space: nowrap;
}
.chb-btn-live {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; box-shadow: 0 3px 12px rgba(239,68,68,0.35);
}
.chb-btn-live:hover { transform: scale(1.05); }
.chb-btn-post { background: linear-gradient(135deg, #e91e8c, #ff6eb4); color: #fff; }
.chb-btn-post:hover { transform: scale(1.05); opacity: 0.9; }
.chb-btn-dash {
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.35);
    color: #a78bfa;
}
.chb-btn-dash:hover { background: rgba(99,102,241,0.3); color: #c4b5fd; }
.chb-btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
}
.chb-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Mobile — stack actions */
@media (max-width: 600px) {
    #creator-home-bar { bottom: 16px; right: 12px; }
    .chb-expanded { padding: 8px 10px; gap: 8px; }
    .chb-label, .chb-handle { display: none; }
    .chb-btn { padding: 6px 9px; font-size: 0.7rem; gap: 4px; }
}



/* ================================================
 * CREATOR ANALYTICS STRIP
 * ================================================ */
.cas-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem 2rem;
    max-width: 1100px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, rgba(14,12,25,0.7), rgba(24,18,45,0.7));
    border: 1px solid rgba(233,30,140,0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}
@media (max-width: 600px) {
    .cas-wrap { grid-template-columns: repeat(2, 1fr); padding: 1rem; }
}
.cas-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cas-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cas-val {
    font-size: 1.3rem; font-weight: 800; color: #fff;
    min-height: 1.5rem; display: flex; align-items: center;
}
.cas-skeleton {
    display: inline-block; width: 60px; height: 20px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
.cas-key {
    font-size: 0.72rem; color: rgba(255,255,255,0.45);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ================================================
 * FAN STICKY SUBSCRIBE BAR (bottom)
 * ================================================ */
#fan-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9500;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    background: linear-gradient(135deg, rgba(10,8,20,0.97), rgba(20,15,40,0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(233,30,140,0.2);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
    padding: 12px 20px;
}
#fan-sticky-bar.fsb-visible { transform: translateY(0); }
.fsb-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fsb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fsb-avatar-wrap {
    width: 40px; height: 40px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(233,30,140,0.4);
}
.fsb-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.fsb-info { min-width: 0; }
.fsb-name {
    font-weight: 700; font-size: 0.9rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsb-sub-count { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.fsb-btn {
    background: linear-gradient(135deg, #e91e8c, #ff4081);
    color: #fff; border: none; padding: 11px 28px; border-radius: 25px;
    font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(233,30,140,0.4);
    white-space: nowrap; flex-shrink: 0; font-family: inherit;
    animation: chb-live-pulse 2.5s infinite;
}
.fsb-btn:hover { transform: scale(1.04); }

/* ================================================
 * LIVE STATUS BANNER
 * ================================================ */
#live-status-banner {
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.1));
    border-bottom: 1px solid rgba(239,68,68,0.35);
    padding: 8px 20px;
    position: sticky; top: 76px;
    z-index: 9000;
    animation: fadeIn 0.5s ease;
}
.lsb-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.lsb-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ef4444; display: inline-block;
    animation: chb-pulse 1.2s infinite; flex-shrink: 0;
}
.lsb-inner strong {
    font-size: 0.78rem; font-weight: 800;
    letter-spacing: 1px; color: #f87171; text-transform: uppercase;
}
.lsb-title {
    font-size: 0.85rem; color: rgba(255,255,255,0.8);
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lsb-btn {
    background: #ef4444; color: #fff; border: none;
    padding: 5px 14px; border-radius: 16px;
    font-size: 0.78rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s; white-space: nowrap; font-family: inherit;
}
.lsb-btn:hover { background: #dc2626; }

/* ================================================
 * KANMANI PAGE SPECIFIC THEME
 * ================================================ */
body.kanmani-page {
    background-color: #0b031b !important;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(138, 43, 226, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(233, 30, 140, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(106, 0, 244, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.35) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: #ffffff !important;
    --bg-deep: #0b031b;
    --bg-surface: rgba(22, 14, 38, 0.65);
    --bg-elevated: rgba(30, 18, 51, 0.7);
    --bg-card: rgba(18, 9, 31, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #e2d1f0;
    --text-muted: #a48cb3;
    --glass: rgba(20, 10, 35, 0.55);
    --glass-border: rgba(233, 30, 140, 0.2);
    --shadow-glow: 0 8px 32px rgba(233, 30, 140, 0.25);
    --shadow-glow-lg: 0 16px 48px rgba(233, 30, 140, 0.35);
}
body.kanmani-page .glow-mesh { background: none !important; }
body.kanmani-page .header-premium,
body.kanmani-page .profile-card-premium,
body.kanmani-page .post-card-premium,
body.kanmani-page .tabs-premium,
body.kanmani-page .payout-card,
body.kanmani-page .modal-content,
body.kanmani-page .auth-modal-content,
body.kanmani-page .tier-card-premium {
    background: rgba(22, 12, 38, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(233, 30, 140, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35) !important;
}
body.kanmani-page h1,
body.kanmani-page h2,
body.kanmani-page h3,
body.kanmani-page h4,
body.kanmani-page h5,
body.kanmani-page h6,
body.kanmani-page .profile-name-premium,
body.kanmani-page .heading-display {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
body.kanmani-page .profile-bio-premium,
body.kanmani-page .bio-text,
body.kanmani-page .profile-bio { color: #e2d1f0 !important; }
body.kanmani-page .tab-premium { color: #a48cb3 !important; }
body.kanmani-page .tab-premium.active {
    color: #ffffff !important;
    border-bottom-color: var(--accent-glow) !important;
}
body.kanmani-page .btn-premium:not(.btn-outline),
body.kanmani-page .btn-primary:not(.btn-outline),
body.kanmani-page .subscribe-btn-premium {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%) !important;
    color: #ffffff !important; border: none !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4) !important;
    transition: all 0.3s ease !important;
}
body.kanmani-page .btn-premium:not(.btn-outline):hover,
body.kanmani-page .btn-primary:not(.btn-outline):hover,
body.kanmani-page .subscribe-btn-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6) !important;
}
body.kanmani-page .logo-premium,
body.kanmani-page .nav-link-premium { color: #ffffff !important; }
body.kanmani-page #fan-sticky-bar {
    background: rgba(22, 12, 38, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(233, 30, 140, 0.3) !important;
}
