/* PuraVida Community - Bluesky-inspired Design */
:root {
    --bs-blue: #0085ff;
    --bs-blue-hover: #006adb;
    --bs-blue-light: #e7f3ff;
    --bs-bg: #ffffff;
    --bs-bg-secondary: #f1f3f5;
    --bs-border: #e6e9ec;
    --bs-text: #0f1419;
    --bs-text-secondary: #6b7280;
    --bs-text-tertiary: #9ca3af;
    --bs-red: #f4212e;
    --bs-red-light: #fee7e9;
    --bs-green: #00ba7c;
    --bs-green-light: #e6f9f0;
    --bs-purple: #7c3aed;
    --bs-purple-light: #f0e7ff;
    --bs-radius: 12px;
    --bs-radius-sm: 8px;
    --bs-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.pv-community-body {
    background: var(--bs-bg);
    color: var(--bs-text);
    font-family: var(--bs-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Preloader */
.pv-preloader {
    position: fixed; inset: 0; background: #fff; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.3s ease;
}
.pv-preloader-hidden { opacity: 0; pointer-events: none; }
.pv-preloader img { width: 160px; height: auto; animation: pvPulse 1.2s ease-in-out infinite; }
.pv-preloader-spinner {
    width: 32px; height: 32px; margin: 20px auto 0;
    border: 3px solid var(--bs-blue-light);
    border-top-color: var(--bs-blue);
    border-radius: 50%; animation: pvSpin 0.7s linear infinite;
}
@keyframes pvPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes pvSpin { to{transform:rotate(360deg)} }

/* Layout */
.pv-app {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: var(--bs-bg);
}
.pv-sidebar {
    width: 240px;
    min-width: 240px;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bs-border);
}
.pv-center {
    width: 600px;
    min-width: 0;
    border-right: 1px solid var(--bs-border);
    min-height: 100vh;
}
.pv-right {
    width: 350px;
    min-width: 350px;
    padding: 12px 16px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}
.pv-right::-webkit-scrollbar { width: 0; }

/* Sidebar */
.pv-logo {
    padding: 8px 12px 16px;
}
.pv-logo img { height: 32px; width: auto; }

.pv-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--bs-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.15s;
    margin-bottom: 2px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--bs-font);
    width: 100%;
    text-align: left;
}
.pv-nav-item:hover { background: var(--bs-bg-secondary); }
.pv-nav-item.active { color: var(--bs-blue); }
.pv-nav-item i { font-size: 22px; width: 24px; text-align: center; }

.pv-new-post-btn {
    margin: 16px 8px 12px;
    background: var(--bs-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--bs-font);
}
.pv-new-post-btn:hover { background: var(--bs-blue-hover); }

.pv-sidebar-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--bs-text);
    transition: background 0.15s;
}
.pv-sidebar-profile:hover { background: var(--bs-bg-secondary); }
.pv-sidebar-profile .pv-avatar { width: 36px; height: 36px; }
.pv-sidebar-profile-info { flex: 1; min-width: 0; }
.pv-sidebar-profile-name {
    font-size: 14px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-sidebar-profile-handle {
    font-size: 13px; color: var(--bs-text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Avatars */
.pv-avatar {
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bs-blue-light);
}
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-avatar-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bs-blue); color: #fff;
    font-weight: 700; font-size: 14px;
}

/* Center header (sticky) */
.pv-center-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bs-border);
}
.pv-center-title {
    font-size: 19px; font-weight: 800;
    padding: 14px 16px 8px;
}
.pv-center-subtitle {
    font-size: 13px; color: var(--bs-text-secondary);
    padding: 0 16px 10px;
}
.pv-tabs {
    display: flex;
}
.pv-tab {
    flex: 1; text-align: center;
    padding: 13px 0;
    color: var(--bs-text-secondary);
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}
.pv-tab:hover { background: var(--bs-bg-secondary); color: var(--bs-text); }
.pv-tab.active { color: var(--bs-text); border-bottom-color: var(--bs-blue); font-weight: 700; }

/* Composer */
.pv-composer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--bs-border);
}
.pv-composer .pv-avatar { width: 48px; height: 48px; }
.pv-composer-body { flex: 1; min-width: 0; }
.pv-composer textarea {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-size: 17px;
    line-height: 1.4;
    color: var(--bs-text);
    font-family: var(--bs-font);
    min-height: 52px;
}
.pv-composer textarea::placeholder { color: var(--bs-text-tertiary); }
.pv-composer-preview {
    margin-top: 10px;
    border-radius: var(--bs-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--bs-border);
}
.pv-composer-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}
.pv-composer-preview-close {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: #fff;
    border: none; border-radius: 50%;
    width: 28px; height: 28px;
    cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.pv-composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.pv-composer-media { display: flex; gap: 2px; }
.pv-media-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bs-blue);
    cursor: pointer;
    transition: background 0.15s;
    border: none; background: none;
    font-size: 18px;
}
.pv-media-btn:hover { background: var(--bs-blue-light); }
.pv-media-btn input { display: none; }
.pv-post-btn {
    background: var(--bs-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--bs-font);
}
.pv-post-btn:hover { background: var(--bs-blue-hover); }

/* Guest CTA */
.pv-guest-cta {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--bs-border);
}
.pv-guest-cta h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.pv-guest-cta p { font-size: 14px; color: var(--bs-text-secondary); margin-bottom: 14px; }
.pv-guest-cta .pv-post-btn { padding: 10px 28px; font-size: 15px; }

/* Post */
.pv-post {
    border-bottom: 1px solid var(--bs-border);
    padding: 14px 16px;
    transition: background 0.1s;
}
.pv-post:hover { background: #fafbfc; }
.pv-post-row { display: flex; gap: 12px; }
.pv-post .pv-avatar { width: 48px; height: 48px; }
.pv-post-content { flex: 1; min-width: 0; }
.pv-post-meta {
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 4px; flex-wrap: wrap;
}
.pv-post-name {
    font-weight: 700; color: var(--bs-text);
    text-decoration: none; font-size: 15px;
}
.pv-post-name:hover { text-decoration: underline; }
.pv-post-handle { color: var(--bs-text-secondary); font-size: 15px; }
.pv-post-dot { color: var(--bs-text-tertiary); }
.pv-post-time {
    color: var(--bs-text-secondary); font-size: 15px;
    text-decoration: none;
}
.pv-post-time:hover { text-decoration: underline; color: var(--bs-blue); }
.pv-post-delete {
    margin-left: auto; color: var(--bs-text-tertiary);
    background: none; border: none; cursor: pointer;
    padding: 2px 6px; border-radius: 6px; font-size: 14px;
    transition: all 0.15s;
}
.pv-post-delete:hover { color: var(--bs-red); background: var(--bs-red-light); }

.pv-post-text {
    font-size: 15px; line-height: 1.5;
    color: var(--bs-text);
    margin: 0 0 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.pv-hashtag { color: var(--bs-blue); text-decoration: none; }
.pv-hashtag:hover { text-decoration: underline; }
.pv-mention { color: var(--bs-blue); font-weight: 600; }
.pv-link { color: var(--bs-blue); text-decoration: none; }
.pv-link:hover { text-decoration: underline; }

.pv-post-media {
    margin: 8px 0;
    border-radius: var(--bs-radius);
    overflow: hidden;
    border: 1px solid var(--bs-border);
}
.pv-post-media img {
    width: 100%; max-height: 500px;
    object-fit: cover; display: block; cursor: pointer;
}
.pv-post-media video { width: 100%; max-height: 500px; display: block; }

/* Quote */
.pv-post-quote {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 10px 12px;
    margin: 8px 0;
    background: var(--bs-bg-secondary);
}
.pv-post-quote .pv-post-name { font-size: 14px; }
.pv-post-quote .pv-post-text { font-size: 14px; color: var(--bs-text-secondary); margin: 2px 0 0; }

/* Actions */
.pv-actions {
    display: flex;
    justify-content: space-between;
    max-width: 360px;
    margin-top: 8px;
}
.pv-action {
    display: flex; align-items: center; gap: 6px;
    color: var(--bs-text-secondary);
    text-decoration: none;
    font-size: 13px;
    background: none; border: none;
    cursor: pointer; font-family: var(--bs-font);
    padding: 6px 8px; border-radius: 999px;
    transition: all 0.15s;
}
.pv-action i { font-size: 18px; }
.pv-action-reply:hover { color: var(--bs-blue); background: var(--bs-blue-light); }
.pv-action-repost:hover { color: var(--bs-green); background: var(--bs-green-light); }
.pv-action-like:hover { color: var(--bs-red); background: var(--bs-red-light); }
.pv-action-like.liked { color: var(--bs-red); }
.pv-action-bookmark:hover { color: var(--bs-purple); background: var(--bs-purple-light); }
.pv-action-bookmark.bookmarked { color: var(--bs-purple); }

/* Right sidebar */
.pv-search {
    position: relative;
    margin-bottom: 16px;
}
.pv-search i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--bs-text-tertiary); font-size: 15px;
}
.pv-search input {
    width: 100%;
    background: var(--bs-bg-secondary);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 16px 11px 40px;
    font-size: 15px;
    color: var(--bs-text);
    outline: none;
    transition: all 0.15s;
    font-family: var(--bs-font);
}
.pv-search input:focus {
    background: #fff;
    border-color: var(--bs-blue);
}
.pv-search input::placeholder { color: var(--bs-text-tertiary); }

.pv-card {
    background: var(--bs-bg-secondary);
    border-radius: var(--bs-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.pv-card-title {
    font-size: 17px; font-weight: 800;
    padding: 14px 16px 8px;
    color: var(--bs-text);
}
.pv-card-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    transition: background 0.1s;
    text-decoration: none;
    color: var(--bs-text);
}
.pv-card-item:hover { background: #e9ecee; }
.pv-card-item .pv-avatar { width: 42px; height: 42px; }
.pv-card-item-info { flex: 1; min-width: 0; }
.pv-card-item-name {
    font-weight: 700; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-card-item-handle {
    font-size: 13px; color: var(--bs-text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-follow-btn {
    background: var(--bs-text);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    font-family: var(--bs-font);
}
.pv-follow-btn:hover { background: #2a2d33; }
.pv-follow-btn.following {
    background: #fff; color: var(--bs-text);
    border: 1px solid var(--bs-border);
}
.pv-card-footer {
    padding: 10px 16px;
    color: var(--bs-blue);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
}
.pv-card-footer:hover { text-decoration: underline; }

/* Tags */
.pv-tag-row {
    display: flex; justify-content: space-between;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.1s;
}
.pv-tag-row:hover { background: #e9ecee; }
.pv-tag-name { font-weight: 700; font-size: 14px; color: var(--bs-text); }
.pv-tag-name::before { content: '#'; color: var(--bs-blue); }
.pv-tag-count { font-size: 13px; color: var(--bs-text-secondary); }

/* Empty */
.pv-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--bs-text-secondary);
}
.pv-empty i { font-size: 40px; margin-bottom: 12px; color: var(--bs-text-tertiary); }
.pv-empty p { font-size: 15px; }

/* Pagination */
.pv-pagination { padding: 16px; text-align: center; }
.pv-pagination .pagination { justify-content: center; margin: 0; }
.pv-pagination .page-link {
    color: var(--bs-blue); border: 1px solid var(--bs-border);
    padding: 8px 14px; font-size: 14px; font-weight: 600;
}
.pv-pagination .page-item.active .page-link {
    background: var(--bs-blue); border-color: var(--bs-blue); color: #fff;
}

/* Profile */
.pv-profile-banner {
    height: 150px;
    background: linear-gradient(135deg, #1e3a5f, #0f1419);
    border-bottom: 1px solid var(--bs-border);
}
.pv-profile-info {
    padding: 0 16px 16px;
    position: relative;
}
.pv-profile-avatar-wrap {
    width: 84px; height: 84px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin: -42px 0 10px;
    overflow: hidden;
    background: var(--bs-blue);
}
.pv-profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pv-profile-avatar-wrap .pv-avatar-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 28px;
}
.pv-profile-name-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 12px;
}
.pv-profile-name { font-size: 21px; font-weight: 800; }
.pv-profile-handle { font-size: 15px; color: var(--bs-text-secondary); margin-top: 2px; }
.pv-profile-bio { font-size: 15px; margin: 10px 0; line-height: 1.5; }
.pv-profile-meta {
    display: flex; gap: 6px; flex-wrap: wrap;
    font-size: 14px; color: var(--bs-text-secondary);
    margin-bottom: 10px;
}
.pv-profile-meta i { margin-right: 4px; }
.pv-profile-stats {
    display: flex; gap: 20px;
    font-size: 14px; color: var(--bs-text-secondary);
}
.pv-profile-stats a { color: var(--bs-text-secondary); text-decoration: none; }
.pv-profile-stats a:hover { color: var(--bs-blue); }
.pv-profile-stats strong { color: var(--bs-text); }

.pv-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--bs-border);
}
.pv-profile-tab {
    flex: 1; text-align: center;
    padding: 14px 0;
    color: var(--bs-text-secondary);
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}
.pv-profile-tab:hover { background: var(--bs-bg-secondary); color: var(--bs-text); }
.pv-profile-tab.active { color: var(--bs-text); border-bottom-color: var(--bs-blue); font-weight: 700; }

/* Thread */
.pv-thread {
    padding: 16px;
    border-bottom: 1px solid var(--bs-border);
}
.pv-thread-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.pv-thread-meta .pv-avatar { width: 48px; height: 48px; }
.pv-thread-name { font-size: 16px; font-weight: 700; color: var(--bs-text); text-decoration: none; }
.pv-thread-name:hover { text-decoration: underline; }
.pv-thread-handle { font-size: 14px; color: var(--bs-text-secondary); }
.pv-thread-text { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.pv-thread-time { font-size: 14px; color: var(--bs-text-secondary); margin-bottom: 12px; }
.pv-thread-stats {
    display: flex; gap: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
    font-size: 14px; color: var(--bs-text-secondary);
    margin-bottom: 10px;
}
.pv-thread-stats strong { color: var(--bs-text); }
.pv-thread-replies-label {
    font-size: 16px; font-weight: 700;
    padding: 14px 16px 8px;
    border-bottom: 1px solid var(--bs-border);
}

/* Media grid */
.pv-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.pv-media-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}
.pv-media-grid-item img,
.pv-media-grid-item video {
    width: 100%; height: 100%; object-fit: cover;
}

/* Lightbox */
.pv-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.pv-lightbox.show { display: flex; }
.pv-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.pv-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.15); color: #fff;
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile bottom nav */
.pv-mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bs-border);
    padding: 6px 0;
    justify-content: space-around;
}
.pv-mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: var(--bs-text-secondary);
    text-decoration: none; font-size: 10px; gap: 2px;
    padding: 4px 8px;
}
.pv-mobile-nav-item i { font-size: 22px; }
.pv-mobile-nav-item.active { color: var(--bs-blue); }

.pv-mobile-new-post {
    display: none;
    position: fixed; bottom: 70px; right: 16px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bs-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,133,255,0.4);
    z-index: 200;
    transition: transform 0.15s;
}
.pv-mobile-new-post:hover { transform: scale(1.05); }

/* Responsive */
@media (max-width: 960px) {
    .pv-right { display: none; }
}
@media (max-width: 640px) {
    .pv-sidebar { display: none; }
    .pv-center { width: 100%; border-right: none; }
    .pv-mobile-nav { display: flex; }
    .pv-mobile-new-post { display: flex; align-items: center; justify-content: center; }
    .pv-center { padding-bottom: 60px; }
    .pv-post, .pv-composer, .pv-thread { padding: 12px 14px; }
    .pv-media-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Modal */
.pv-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.pv-modal-overlay.show { display: flex; }
.pv-modal {
    background: #fff;
    border-radius: 16px;
    width: 560px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.pv-modal-header {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--bs-border);
}
.pv-modal-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none; background: none;
    cursor: pointer; font-size: 18px;
    color: var(--bs-text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.pv-modal-close:hover { background: var(--bs-bg-secondary); }
.pv-modal-title { font-size: 18px; font-weight: 800; margin: 0; }
.pv-modal-body { padding: 20px; }

/* Live search dropdown */
.pv-search-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    margin-top: 4px;
}
.pv-search-dropdown.show { display: block; }
.pv-search-result {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--bs-text);
    transition: background 0.1s;
}
.pv-search-result:hover { background: var(--bs-bg-secondary); }
.pv-search-result .pv-avatar { width: 36px; height: 36px; }
.pv-search-result-info { flex: 1; min-width: 0; }
.pv-search-result-name { font-weight: 700; font-size: 14px; }
.pv-search-result-handle { font-size: 13px; color: var(--bs-text-secondary); }
.pv-search-result-type {
    font-size: 11px; color: var(--bs-text-tertiary);
    text-transform: uppercase; font-weight: 600;
}
.pv-search-empty { padding: 20px; text-align: center; color: var(--bs-text-secondary); font-size: 14px; }

/* Profile edit button */
.pv-edit-profile-btn {
    background: var(--bs-bg-secondary);
    color: var(--bs-text);
    border: 1px solid var(--bs-border);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--bs-font);
}
.pv-edit-profile-btn:hover { background: #e9ecee; }

/* Edit profile modal fields */
.pv-edit-field { margin-bottom: 16px; }
.pv-edit-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--bs-text-secondary); margin-bottom: 4px;
}
.pv-edit-field input, .pv-edit-field textarea {
    width: 100%;
    border: 1px solid var(--bs-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--bs-text);
    outline: none;
    font-family: var(--bs-font);
    transition: border 0.15s;
}
.pv-edit-field input:focus, .pv-edit-field textarea:focus {
    border-color: var(--bs-blue);
}
.pv-edit-field textarea { resize: vertical; min-height: 70px; }

/* Credit badge in sidebar */
.pv-nav-credit-badge {
    background: var(--bs-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
}

/* Credits page */
.pv-credits-page { padding: 0; }
.pv-credits-balance-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin: 16px;
    background: linear-gradient(135deg, #1e3a5f, #0f1419);
    border-radius: var(--bs-radius);
    color: #fff;
}
.pv-credits-balance-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.pv-credits-balance-amount { font-size: 32px; font-weight: 800; }
.pv-credits-balance-label { font-size: 14px; opacity: 0.8; }
.pv-credits-balance-hint { font-size: 13px; opacity: 0.6; margin-top: 2px; }

.pv-credits-success {
    margin: 0 16px 16px;
    padding: 12px 16px;
    background: var(--bs-green-light);
    color: var(--bs-green);
    border-radius: var(--bs-radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.pv-credits-packages-title {
    font-size: 18px; font-weight: 800;
    padding: 0 16px 12px;
}
.pv-credits-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 0 16px 24px;
}
.pv-credit-package {
    border: 2px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    transition: border-color 0.15s, transform 0.15s;
}
.pv-credit-package:hover { border-color: var(--bs-blue); transform: translateY(-2px); }
.pv-credit-package.popular { border-color: var(--bs-blue); }
.pv-credit-package-badge {
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    background: var(--bs-blue); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 12px; border-radius: 999px;
    white-space: nowrap;
}
.pv-credit-package-credits { font-size: 32px; font-weight: 800; color: var(--bs-text); }
.pv-credit-package-label { font-size: 13px; color: var(--bs-text-secondary); margin-bottom: 8px; }
.pv-credit-package-price { font-size: 18px; font-weight: 700; color: var(--bs-blue); margin-bottom: 4px; }
.pv-credit-package-desc { font-size: 12px; color: var(--bs-text-tertiary); margin-bottom: 12px; }
.pv-credit-package-btn {
    background: var(--bs-blue); color: #fff;
    border: none; border-radius: 999px;
    padding: 8px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; width: 100%;
    transition: background 0.15s;
}
.pv-credit-package-btn:hover { background: var(--bs-blue-hover); }

.pv-credits-transactions { padding: 0 16px 24px; }
.pv-credits-transactions h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.pv-credit-tx {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bs-border);
}
.pv-credit-tx-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.pv-credit-tx-icon.positive { background: var(--bs-green-light); color: var(--bs-green); }
.pv-credit-tx-icon.negative { background: var(--bs-red-light); color: var(--bs-red); }
.pv-credit-tx-info { flex: 1; min-width: 0; }
.pv-credit-tx-desc { font-size: 14px; font-weight: 600; }
.pv-credit-tx-date { font-size: 12px; color: var(--bs-text-tertiary); }
.pv-credit-tx-amount { font-weight: 700; font-size: 15px; }
.pv-credit-tx-amount.positive { color: var(--bs-green); }
.pv-credit-tx-amount.negative { color: var(--bs-red); }

/* Checkout */
.pv-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}
@media (max-width: 640px) { .pv-checkout-layout { grid-template-columns: 1fr; } }
.pv-checkout-summary, .pv-checkout-form-wrap {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 20px;
}
.pv-checkout-summary h3, .pv-checkout-form-wrap h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.pv-checkout-item {
    display: flex; justify-content: space-between;
    font-size: 15px; padding: 8px 0;
}
.pv-checkout-desc { font-size: 13px; color: var(--bs-text-secondary); padding: 4px 0; }
.pv-checkout-divider { height: 1px; background: var(--bs-border); margin: 12px 0; }
.pv-checkout-total {
    display: flex; justify-content: space-between;
    font-size: 18px; font-weight: 800;
}
.pv-checkout-simulated {
    font-size: 13px; color: var(--bs-text-tertiary);
    background: var(--bs-bg-secondary);
    padding: 8px 12px; border-radius: var(--bs-radius-sm);
    margin-bottom: 16px;
}
.pv-checkout-method {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--bs-blue);
    border-radius: var(--bs-radius-sm);
    margin-bottom: 16px;
    font-weight: 600; font-size: 15px;
}
.pv-checkout-method.active { background: var(--bs-blue-light); }
.pv-checkout-method i { font-size: 20px; color: var(--bs-blue); }
.pv-checkout-status {
    padding: 12px 16px; border-radius: var(--bs-radius-sm);
    margin-bottom: 12px; font-size: 14px; font-weight: 600;
}
.pv-checkout-status.processing { background: var(--bs-blue-light); color: var(--bs-blue); }
.pv-checkout-status.success { background: var(--bs-green-light); color: var(--bs-green); }
.pv-checkout-submit-btn { width: 100%; padding: 12px; font-size: 16px; }

/* Repost indicator */
.pv-repost-indicator {
    padding: 8px 16px 0 60px;
    font-size: 13px;
    color: var(--bs-text-secondary);
    font-weight: 600;
}
.pv-repost-indicator i { color: var(--bs-green); margin-right: 4px; }
.pv-repost-quote {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 12px;
    margin: 8px 0;
    background: var(--bs-bg-secondary);
}
.pv-action-repost.reposted { color: var(--bs-green); }
.pv-action-repost.reposted i { color: var(--bs-green); }

/* Cover image */
.pv-profile-banner { position: relative; }
.pv-cover-edit-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: var(--bs-radius-sm);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.pv-cover-edit-btn:hover { background: rgba(0,0,0,0.8); }

.pv-edit-cover-preview {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: var(--bs-radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bs-bg-secondary);
}
.pv-edit-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pv-edit-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bs-text-tertiary);
    gap: 6px;
    font-size: 14px;
}
.pv-edit-cover-placeholder i { font-size: 28px; }
.pv-cover-change-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: var(--bs-radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.pv-cover-change-btn:hover { background: rgba(0,0,0,0.8); }

