:root {
    --ps-bg: #000000;
    --ps-surface: #000000;
    --ps-border: #2f3336;
    --ps-text: #e7e9ea;
    --ps-muted: #71767b;
    --ps-blue: #1d9bf0;
    --ps-like: #f91880;
    --ps-green: #00ba7c;
    --ps-hover: #16181c;
    --ps-indent: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    height: -webkit-fill-available;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ps-bg);
    color: var(--ps-text);
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}
body.ps-video-fs-open {
    overflow: hidden;
    padding-bottom: 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
}
html.ps-video-fs-open {
    overflow: hidden;
    height: 100%;
}
.ps-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ps-border);
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.ps-logo-wrap { text-align: center; line-height: 1.2; }
.ps-logo { font-size: 1.2em; font-weight: 800; letter-spacing: -0.3px; color: var(--ps-text); }
.ps-logo span { color: var(--ps-text); }
.ps-tagline { display: none; }
.ps-back { color: var(--ps-text); text-decoration: none; font-size: 0.95em; font-weight: 500; }
.ps-header-actions { display: flex; gap: 8px; align-items: center; }
.ps-header-btn {
    background: transparent; border: none; color: var(--ps-text); border-radius: 999px;
    padding: 8px; font-size: 0.9em; font-weight: 600; cursor: pointer;
}
.ps-header-btn:hover { background: var(--ps-hover); }
.ps-header-profile { padding: 6px 10px; font-size: 1em; }
.ps-shell {
    max-width: 600px; width: 100%; margin: 0 auto;
    border-left: 1px solid var(--ps-border);
    border-right: 1px solid var(--ps-border);
    min-height: 100vh;
}

.ps-sewa-banner {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-bottom: 1px solid #334155;
    padding: 14px 16px;
}
.ps-sewa-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.ps-sewa-inner strong { display: block; font-size: 0.95em; margin-bottom: 4px; }
.ps-sewa-inner p { font-size: 0.8em; color: #bfdbfe; margin: 0; line-height: 1.4; }
.ps-sewa-cta {
    background: #fbbf24; color: #1e293b; text-decoration: none;
    padding: 10px 16px; border-radius: 999px; font-weight: 800;
    font-size: 0.85em; white-space: nowrap; flex-shrink: 0;
}
.ps-sewa-pending { background: transparent; }
.ps-sewa-pending p { color: #fde68a; }

.ps-compose {
    background: var(--ps-surface);
    border: none;
    border-bottom: 1px solid var(--ps-border);
    border-radius: 0;
    margin: 0;
    padding: 12px 16px;
    display: flex; gap: 12px;
    box-shadow: none;
}
.ps-compose[hidden],
.ps-guest-compose-cta[hidden] { display: none !important; }
.ps-avatar, #ps-compose-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15em; background: #16181c;
    background-position: center; background-repeat: no-repeat;
}
.ps-compose-main { flex: 1; min-width: 0; }
#ps-compose-text {
    width: 100%; min-height: 56px; resize: none;
    background: transparent; border: none; border-radius: 0;
    color: var(--ps-text); padding: 10px 0; font-family: inherit; font-size: 1.2em;
    outline: none;
}
#ps-compose-text::placeholder { color: var(--ps-muted); }
#ps-compose-text:focus { border: none; }
#ps-compose-hint { font-size: 0.75em; color: var(--ps-muted); margin-top: 4px; }
.ps-compose-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.ps-compose-tools { display: flex; gap: 8px; align-items: center; }
#ps-compose-image, #ps-compose-video { display: none; }
#ps-video-preview {
    display: none; margin-top: 8px; padding: 8px 12px; background: #0f172a;
    border-radius: 8px; font-size: 0.8em; color: #94a3b8;
}
#ps-video-preview.visible { display: block; }
.ps-compose-video-preview {
    position: relative; border-radius: 10px; overflow: hidden; background: #000;
}
.ps-compose-preview-video {
    width: 100%; max-height: 200px; display: block; object-fit: contain; background: #000;
}
.ps-compose-preview-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(29, 155, 240, 0.92); color: #fff; font-size: 1em;
    cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.ps-compose-preview-play.playing { background: rgba(15, 23, 42, 0.85); }
.ps-compose-video-meta {
    padding: 6px 4px 0; font-size: 0.78em; color: #94a3b8;
}
.ps-music-preview { margin-bottom: 10px; }
.ps-music-preview[hidden] { display: none !important; }
.ps-music-preview-video-wrap {
    border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 8px;
}
#ps-music-preview-video {
    width: 100%; max-height: 160px; display: block; object-fit: contain; background: #000;
}
.ps-music-waveform-hint {
    margin: 0 0 4px; font-size: 0.72em; color: #64748b;
}
.ps-music-waveform-wrap {
    position: relative; height: 48px; border-radius: 8px; overflow: hidden;
    background: #0b1220; border: 1px solid #334155; margin-bottom: 6px;
}
#ps-music-waveform {
    width: 100%; height: 48px; display: block; cursor: pointer;
}
#ps-music-waveform.loading { opacity: 0.4; }
.ps-music-waveform-marker {
    position: absolute; top: 0; bottom: 0; width: 2px; background: #fbbf24;
    pointer-events: none; left: 0; box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}
.ps-music-preview-status {
    margin: 0; font-size: 0.75em; color: #94a3b8; text-align: center;
}
.ps-music-chip {
    display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px;
    background: #1e1b4b; border-radius: 8px; font-size: 0.85em; color: #c4b5fd;
}
.ps-music-chip[hidden] { display: none !important; }
.ps-music-chip-label small { opacity: 0.85; font-weight: 400; }
.ps-music-chip-remove {
    margin-left: auto; background: transparent; border: none; color: #94a3b8;
    cursor: pointer; font-size: 1em; padding: 2px 6px;
}
.ps-music-overlay {
    display: none; position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,0.65); align-items: flex-end; justify-content: center;
}
.ps-music-sheet {
    width: 100%; max-width: 480px; max-height: 85vh; overflow: auto;
    background: var(--ps-card, #16181c); border-radius: 16px 16px 0 0;
    padding: 16px 16px 24px; position: relative;
}
.ps-music-sheet h3 { margin: 0 0 10px; font-size: 1em; }
.ps-music-categories {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.ps-music-cat {
    padding: 6px 10px; border-radius: 999px; border: 1px solid #334155;
    background: #0f172a; color: #94a3b8; font-size: 0.78em; cursor: pointer;
}
.ps-music-cat.active { border-color: #a78bfa; background: #1e1b4b; color: #e9d5ff; }
.ps-music-editor {
    margin-bottom: 10px; padding: 10px 12px; border-radius: 8px;
    background: #0f172a; border: 1px solid #334155;
}
.ps-music-editor-row { margin-bottom: 8px; }
.ps-music-editor-row:last-child { margin-bottom: 0; }
.ps-music-editor-row label { display: block; font-size: 0.8em; color: #94a3b8; margin-bottom: 4px; }
.ps-music-editor-row input[type="range"] { width: 100%; }
.ps-music-pick-badge {
    font-size: 0.7em; padding: 1px 6px; border-radius: 4px;
    background: #14532d; color: #86efac; margin-left: 4px;
}
.ps-music-upload-btn {
    width: 100%; margin-top: 8px; padding: 10px; border-radius: 8px;
    border: 1px dashed #7c3aed; background: transparent; color: #c4b5fd;
    cursor: pointer; font-size: 0.9em;
}
.ps-music-upload-btn:disabled { opacity: 0.5; }
.ps-music-chip-edit {
    background: transparent; border: none; color: #94a3b8; cursor: pointer; padding: 2px 4px;
}
.ps-music-close {
    position: absolute; top: 12px; right: 12px; background: transparent; border: none;
    color: #94a3b8; font-size: 1.5em; cursor: pointer;
}
#ps-music-search {
    width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 10px;
    border-radius: 8px; border: 1px solid #334155; background: #0f172a; color: #e2e8f0;
}
#ps-music-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.ps-music-pick {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
    border: 1px solid #334155; background: #0f172a; color: #e2e8f0; cursor: pointer;
}
.ps-music-pick.selected { border-color: #a78bfa; background: #1e1b4b; }
.ps-music-pick-title { font-weight: 600; }
.ps-music-pick-meta { font-size: 0.8em; color: #94a3b8; }
.ps-music-license { font-size: 0.72em; color: #64748b; margin: 12px 0 8px; line-height: 1.4; }
#ps-music-done {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: #7c3aed; color: #fff; font-weight: 600; cursor: pointer;
}
.ps-music-credit {
    margin: 6px 0 0; font-size: 0.8em; color: #a78bfa; opacity: 0.95;
}
.ps-post-video-wrap {
    margin: 10px -16px 10px;
    max-width: none;
    width: calc(100% + 32px);
    border-radius: 0;
    overflow: hidden; background: #000;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    aspect-ratio: 9 / 16;
    max-height: min(72vh, 640px);
}
.ps-post-video {
    display: block; width: 100%; height: 100%;
    object-fit: cover; background: #000;
    pointer-events: none;
}
.ps-video-play-fab {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25);
    pointer-events: none;
}
.ps-video-play-fab span {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6em; color: #fff; padding-left: 4px;
}
.ps-post-video-badge {
    position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.55);
    color: #fff; font-size: 0.7em; font-weight: 700; padding: 3px 8px;
    border-radius: 999px; pointer-events: none;
}
.ps-post-video-expand {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: #fff; border: none;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1em; cursor: pointer; z-index: 2;
}
.ps-post.ps-post--video { padding-bottom: 18px; }

/* Tab 🎬 — feed video vertikal (Reels/TikTok) */
.ps-shell--immersive-video .ps-header,
.ps-shell--immersive-video .ps-compose,
.ps-shell--immersive-video .ps-guest-compose-cta,
.ps-shell--immersive-video .ps-guest-browse-banner,
.ps-shell--immersive-video .ps-footer-note,
.ps-shell--immersive-video .ps-sewa-banner,
.ps-shell--immersive-video .ps-push-banner,
.ps-shell--immersive-video .ps-install-banner,
.ps-shell--immersive-video .ps-onboarding-banner,
.ps-shell--immersive-video .ps-feed-tabs,
.ps-shell--immersive-video .ps-search-bar,
.ps-shell--immersive-video .ps-tag-chip,
.ps-shell--immersive-video .ps-store-chip,
.ps-shell--immersive-video .ps-trending-bar { display: none !important; }
.ps-shell--immersive-video {
    max-width: none;
    width: 100%;
    margin: 0;
    border-left: none;
    border-right: none;
    min-height: var(--ps-vvh, 100dvh);
}
.ps-shell--immersive-video .ps-feed {
    padding: 0;
    margin: 0;
    width: 100%;
}
.ps-video-tab-exit {
    display: none;
    position: fixed; top: max(12px, env(safe-area-inset-top, 12px)); left: 12px;
    z-index: 1200; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.1em; cursor: pointer;
}
.ps-shell--immersive-video .ps-video-tab-exit { display: flex; }
.ps-video-fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    height: 100svh;
    height: var(--ps-vvh, 100dvh);
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
}
.ps-video-fullscreen:not([hidden]) {
    display: flex !important;
}
.ps-video-fullscreen[hidden] { display: none !important; }
.ps-video-fs-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 12px));
    left: max(12px, env(safe-area-inset-left, 12px));
    z-index: 3501; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.2em; cursor: pointer;
}
.ps-video-fs-list {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background: #000;
    overscroll-behavior: contain;
}
.ps-video-fs-list .ps-reel {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    min-height: var(--ps-vvh, 100dvh);
    height: 100svh;
    height: var(--ps-vvh, 100dvh);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
    flex-shrink: 0;
}
.ps-video-fs-list .ps-reel-stage {
    position: relative;
    height: 100%;
    min-height: 100%;
    width: 100%;
    overflow: hidden;
}
.ps-video-fs-list .ps-reel-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ps-video-fs-list .ps-reel-video,
.ps-video-fs-list .ps-post-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    background: #000;
}
.ps-video-fs-list .ps-reel-side-actions {
    bottom: max(100px, calc(env(safe-area-inset-bottom, 0px) + 88px));
    right: max(10px, env(safe-area-inset-right, 10px));
}
.ps-video-fs-list .ps-reel-meta {
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
}
.ps-video-fs-list .ps-reel-mute {
    top: max(52px, calc(env(safe-area-inset-top, 12px) + 40px));
    right: max(12px, env(safe-area-inset-right, 12px));
}
.ps-video-fs-list .ps-reel-comments {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    max-height: 55vh;
    overflow-y: auto;
    margin: 0;
    padding: 12px 14px max(16px, env(safe-area-inset-bottom, 16px));
    background: #0f172a;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid #334155;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.ps-video-fs-list .ps-reel-comments[hidden] {
    display: none !important;
}
.ps-video-fs-swipe-hint {
    position: absolute;
    top: max(14px, env(safe-area-inset-top, 14px));
    left: 50%; transform: translateX(-50%);
    z-index: 3502;
    color: rgba(255,255,255,0.55);
    font-size: 0.72em;
    pointer-events: none;
}
.ps-feed--reels-mode .ps-search-bar,
.ps-feed--reels-mode .ps-tag-chip,
.ps-feed--reels-mode .ps-store-chip,
.ps-feed--reels-mode .ps-trending-bar { display: none !important; }
.ps-feed-list--reels {
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    height: calc(100dvh - 200px);
    min-height: 420px;
    background: #0f172a;
}
.ps-shell--immersive-video .ps-feed-list--reels {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: var(--ps-vvh, 100dvh);
    min-height: var(--ps-vvh, 100dvh);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #000;
}
.ps-shell--immersive-video .ps-reel {
    min-height: var(--ps-vvh, 100dvh);
    height: var(--ps-vvh, 100dvh);
}
.ps-shell--immersive-video .ps-reel-stage {
    height: var(--ps-vvh, 100dvh);
    min-height: var(--ps-vvh, 100dvh);
}
.ps-reel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100dvh - 200px);
    position: relative;
    background: #000;
    border-bottom: 1px solid #1e293b;
}
.ps-reel--highlight {
    outline: 2px solid #38bdf8;
    outline-offset: -2px;
    animation: psHighlight 2.5s ease-out;
}
.ps-reel--pinned { box-shadow: inset 0 0 0 2px #f59e0b; }
.ps-reel-stage {
    position: relative;
    width: 100%;
    height: calc(100dvh - 200px);
    min-height: 420px;
    overflow: hidden;
}
.ps-reel-video-wrap {
    position: absolute;
    inset: 0;
    background: #000;
}
.ps-reel-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
    background: #000;
}
.ps-reel-mute {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
}
.ps-post-video-wrap .ps-reel-mute {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 1em;
}
.ps-sound-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.78em;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}
.ps-sound-hint[hidden] { display: none; }
.ps-sound-hint--feed {
    bottom: 10px;
    font-size: 0.68em;
    padding: 5px 10px;
}
.ps-reel-paused-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.ps-reel-paused-icon[hidden] { display: none !important; }
.ps-reel-pinned {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1e293b;
    font-size: 0.72em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.ps-reel-side-actions {
    position: absolute;
    right: 10px;
    bottom: 100px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.ps-reel-action {
    background: none;
    border: none;
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.72em;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    min-width: 44px;
}
.ps-reel-action.active { color: #f87171; }
.ps-reel-action-icon { font-size: 1.5em; line-height: 1; }
.ps-reel-meta {
    position: absolute;
    left: 0;
    right: 64px;
    bottom: 0;
    z-index: 4;
    padding: 16px 14px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: #f1f5f9;
}
.ps-reel-author {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}
.ps-reel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}
.ps-reel-caption {
    font-size: 0.92em;
    line-height: 1.45;
    margin: 0 0 6px;
    max-height: 4.5em;
    overflow: hidden;
}
.ps-reel-time { font-size: 0.75em; color: #94a3b8; }
.ps-reel-shop {
    display: inline-block; margin-top: 8px; padding: 8px 14px;
    background: #16a34a; color: white; text-decoration: none;
    border-radius: 999px; font-size: 0.82em; font-weight: 700;
}
.ps-reel-comments {
    margin: 0;
    padding: 12px 14px 16px;
    background: #1e293b;
    border-top: 1px solid #334155;
}
.ps-reel-comments .ps-comment-compose { margin-left: 0; }
.ps-reel-comments .ps-comments-list { margin-left: 0; }

.ps-icon-btn {
    background: transparent; border: none; border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer; font-size: 1.15em;
}
.ps-icon-btn:hover { background: rgba(29, 155, 240, 0.1); }
#ps-compose-submit {
    background: var(--ps-blue); color: #fff; border: none; border-radius: 999px;
    padding: 8px 18px; font-weight: 700; cursor: pointer; font-size: 0.95em;
}
#ps-compose-submit:disabled { opacity: 0.5; }
.ps-guest-compose-cta {
    background: var(--ps-surface);
    border-bottom: 1px solid var(--ps-border);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
}
.ps-guest-compose-cta p {
    margin: 0; font-size: 0.88em; color: var(--ps-muted); flex: 1; min-width: 180px;
}
.ps-guest-compose-login {
    padding: 8px 18px; border-radius: 999px; border: none;
    background: var(--ps-blue); color: white; font-weight: 700; cursor: pointer;
    font-size: 0.88em; white-space: nowrap;
}
.ps-compose-analytics {
    font-size: 0.78em; color: #94a3b8; margin: 6px 0 4px;
    padding: 8px 10px; background: rgba(99, 102, 241, 0.08);
    border-radius: 8px; border: 1px solid rgba(99, 102, 241, 0.2);
}
.ps-compose-analytics strong { color: #c4b5fd; }
.ps-store-analytics {
    margin: 12px 0; padding: 12px; background: #0f172a;
    border: 1px solid #334155; border-radius: 12px;
}
.ps-store-analytics h4 { font-size: 0.9em; margin: 0 0 8px; color: #e2e8f0; }
.ps-analytics-top { font-size: 0.85em; color: #94a3b8; margin: 0 0 6px; }
.ps-analytics-tip { font-size: 0.78em; color: #64748b; margin: 0 0 10px; }
.ps-analytics-katalog { margin-top: 0 !important; font-size: 0.85em !important; }
.ps-weekly-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid #334155; }
.ps-weekly-summary h4 { font-size: 0.85em; margin: 0 0 8px; color: #cbd5e1; }
.ps-weekly-stats { margin-bottom: 10px; }
.ps-weekly-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-weekly-copy, .ps-weekly-export, .ps-weekly-pdf {
    flex: 1; min-width: 120px; padding: 10px; border-radius: 10px;
    border: 1px solid #334155; font-weight: 600; cursor: pointer; font-size: 0.82em;
}
.ps-weekly-copy {
    background: #16181c; color: #38bdf8;
}
.ps-weekly-export {
    background: #1e1b4b; color: #c4b5fd;
}
.ps-weekly-pdf {
    background: #172554; color: #93c5fd;
}
.ps-store-milestones {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px;
}
.ps-store-milestone {
    font-size: 0.72em; font-weight: 600; padding: 4px 10px;
    border-radius: 999px; border: 1px solid #334155;
}
.ps-store-milestone--views {
    color: #38bdf8; background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
}
.ps-store-milestone--followers {
    color: #a78bfa; background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.35);
}
.ps-weekly-chart {
    display: flex; align-items: flex-end; gap: 6px;
    height: 88px; margin: 0 0 12px; padding: 4px 0;
}
.ps-weekly-bar-wrap {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    height: 100%; min-width: 0;
}
.ps-weekly-bar-wrap span {
    font-size: 0.62em; color: #64748b; margin-top: 4px; text-transform: capitalize;
}
.ps-weekly-bar {
    width: 100%; max-width: 28px; margin-top: auto;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    border-radius: 4px 4px 0 0; min-height: 4px;
}
.ps-discover-store-act { display: block; color: #64748b; font-size: 0.78em; margin-top: 2px; }
.ps-guest-browse-banner {
    display: none; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: #172554; border-bottom: 1px solid #1e3a8a;
    font-size: 0.82em; color: #93c5fd;
}
.ps-guest-browse-banner.show { display: flex; flex-wrap: wrap; }
.ps-guest-browse-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ps-guest-browse-dismiss {
    background: transparent; border: none; color: #64748b; cursor: pointer; font-size: 1em;
}
.ps-comment-compose--guest { padding: 8px 0; }
.ps-comment-login-btn {
    width: 100%; padding: 10px; border-radius: 999px;
    border: 1px solid var(--ps-border); background: #16181c;
    color: var(--ps-blue); font-weight: 600; cursor: pointer;
}
.ps-guest-setup-dismiss {
    width: 100%; margin-top: 14px; padding: 8px; border: none;
    background: transparent; color: #64748b; cursor: pointer; font-size: 0.9em;
}

.ps-feed { padding: 0; }
#ps-feed-list:not(.ps-feed-list--reels) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}
.ps-post--pinned {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.ps-pinned-badge {
    display: inline-block; margin-bottom: 8px; padding: 3px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1e293b; font-size: 0.72em; font-weight: 800;
    border-radius: 999px;
}
.ps-store-promo-badge {
    display: inline-block; margin: 0 4px 0 0; padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border-radius: 999px;
    font-size: 0.72em; font-weight: 700;
}
.ps-post-badges {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 8px;
}
.ps-post-badges .ps-discover-milestones { margin: 0; }
.ps-post-viral-badge {
    display: inline-block; padding: 3px 8px; border-radius: 999px;
    font-size: 0.68em; font-weight: 700; color: #fb923c;
    background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.35);
}
.ps-reel--store .ps-post-badges {
    position: absolute; top: 48px; left: 10px; z-index: 3;
    margin: 0; max-width: calc(100% - 70px);
}
.ps-oauth-guide {
    margin-top: 10px; padding: 10px 12px; background: #0f172a;
    border: 1px solid #334155; border-radius: 10px; font-size: 0.82em;
}
.ps-oauth-guide summary { cursor: pointer; color: #94a3b8; font-weight: 600; }
.ps-oauth-guide-steps {
    margin: 10px 0 0; padding-left: 18px; color: #94a3b8; line-height: 1.5;
}
.ps-oauth-guide-steps code {
    display: block; margin: 4px 0; padding: 6px 8px; background: #1e293b;
    border-radius: 6px; font-size: 0.78em; word-break: break-all; color: #cbd5e1;
}
.ps-oauth-copy-uri {
    margin-top: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid #334155;
    background: #1e293b; color: #38bdf8; font-size: 0.78em; font-weight: 600; cursor: pointer;
}
.ps-oauth-guide-steps a { color: #38bdf8; }
.ps-post--store { border-left: 2px solid rgba(99, 102, 241, 0.35); }
.ps-post {
    background: var(--ps-surface);
    border: none;
    border-bottom: 1px solid var(--ps-border);
    border-radius: 0;
    padding: 12px 16px;
    box-shadow: none;
    width: 100%;
    transition: background 0.15s;
}
.ps-post:hover { background: rgba(255, 255, 255, 0.03); }
.ps-post-head { display: flex; gap: 12px; align-items: flex-start; }
.ps-post-meta { flex: 1; min-width: 0; }
.ps-post-names {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    font-size: 0.95em; line-height: 1.3;
}
.ps-role { font-size: 0.75em; font-weight: 500; color: var(--ps-muted); }
.ps-lapak { font-size: 0.75em; color: var(--ps-muted); }
.ps-time { font-size: 0.85em; color: var(--ps-muted); font-weight: 400; }
.ps-meta-sep { color: var(--ps-muted); margin: 0 2px; font-weight: 400; }
.ps-delete { background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 1em; }
.ps-post-body {
    margin: 4px 0 8px var(--ps-indent); line-height: 1.45;
    font-size: 0.98em; word-wrap: break-word;
}
.ps-post-img {
    display: block; width: 100%;
    border-radius: 0; max-height: min(85vh, 720px); object-fit: cover;
}
.ps-post-img-btn {
    display: block; margin: 10px -16px 10px;
    max-width: none; width: calc(100% + 32px);
    padding: 0; border: none; background: none; cursor: zoom-in;
    border-radius: 0; overflow: hidden;
    position: relative;
}
.ps-like-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: clamp(3rem, 18vw, 5rem);
    line-height: 1;
    pointer-events: none;
    z-index: 6;
    animation: psLikeBurst 0.85s ease-out forwards;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}
@keyframes psLikeBurst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
    18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
.ps-post-img-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.ps-lightbox {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0, 0, 0, 0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; padding-top: max(16px, env(safe-area-inset-top));
}
.ps-lightbox[hidden] { display: none !important; }
.ps-lightbox-img {
    max-width: 100%; max-height: 92vh; object-fit: contain;
    border-radius: 8px; user-select: none;
}
.ps-lightbox-close {
    position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px;
    background: rgba(30, 41, 59, 0.85); border: 1px solid #475569;
    color: #f1f5f9; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.4em; cursor: pointer; line-height: 1;
}
.ps-blocks-overlay {
    position: fixed; inset: 0; z-index: 350;
    background: rgba(0, 0, 0, 0.75);
    display: none; align-items: flex-end; justify-content: center;
}
.ps-blocks-sheet {
    background: #1e293b; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 520px; max-height: 70vh; overflow-y: auto;
    padding: 20px 16px 28px; border-top: 1px solid #334155;
}
.ps-blocks-close {
    float: right; background: none; border: none; color: #94a3b8;
    font-size: 1.5em; cursor: pointer; line-height: 1;
}
.ps-block-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 0; border-bottom: 1px solid #334155;
    font-size: 0.92em;
}
.ps-block-unblock {
    background: #334155; border: none; color: #e2e8f0;
    padding: 6px 12px; border-radius: 999px; font-size: 0.82em;
    font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.ps-block-unblock:hover { background: #475569; }
.ps-post-actions {
    display: flex; justify-content: space-between;
    margin: 4px 0 0 0;
    padding: 0 var(--ps-indent) 0 var(--ps-indent);
    max-width: 100%;
}
.ps-action {
    background: none; border: none; color: var(--ps-muted); cursor: pointer;
    font-size: 0.88em; display: flex; align-items: center; gap: 4px;
    padding: 8px 0; min-width: 36px;
    transition: color 0.15s;
}
.ps-action:hover { color: var(--ps-blue); }
.ps-action.active { color: var(--ps-like); }
.ps-save-post.active { color: var(--ps-blue); }
.ps-reaction-summary {
    margin: 0 0 6px var(--ps-indent); font-size: 0.8em; color: var(--ps-muted);
}
.ps-reaction-wrap { position: relative; display: inline-flex; }
.ps-reaction-picker {
    position: absolute; bottom: 100%; left: 0; z-index: 20;
    display: flex; gap: 4px; padding: 6px 8px;
    background: #16181c; border: 1px solid var(--ps-border); border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45); margin-bottom: 6px;
}
.ps-reaction-picker[hidden] { display: none !important; }
.ps-reaction-picker--reel {
    right: 0; left: auto; bottom: auto; top: 100%; margin-top: 8px;
}
.ps-emoji-pick {
    background: none; border: none; font-size: 1.35em; cursor: pointer;
    padding: 2px 4px; line-height: 1;
}
.ps-emoji-pick:hover { transform: scale(1.15); }
.ps-header-btn.ps-header-active {
    background: rgba(29, 155, 240, 0.15) !important; color: var(--ps-blue) !important;
}
.ps-share-post { color: var(--ps-muted); }
.ps-share-post:hover { color: var(--ps-blue); }
.ps-post--highlight {
    outline: none;
    background: rgba(29, 155, 240, 0.08);
    animation: psHighlight 2.5s ease-out;
}
@keyframes psHighlight {
    0% { background: rgba(29, 155, 240, 0.15); }
    100% { background: transparent; }
}
.ps-comments-wrap {
    margin: 8px 0 0 var(--ps-indent); padding-top: 10px; border-top: 1px solid var(--ps-border);
}
.ps-comment { font-size: 0.88em; padding: 6px 0; color: #cbd5e1; line-height: 1.4; }
.ps-comment-thread {
    margin-left: 12px; padding-left: 10px;
    border-left: 2px solid #334155;
}
.ps-comment--reply { padding: 4px 0 4px 0; }
.ps-comment-author { font-weight: 700; margin-right: 4px; background: none; border: none; padding: 0; cursor: pointer; font-size: inherit; }
.ps-comment-text { display: inline; }
.ps-reply-to { color: #64748b; font-size: 0.9em; margin-right: 4px; }
.ps-comment-reply {
    background: none; border: none; color: #64748b; font-size: 0.78em;
    cursor: pointer; margin-left: 8px; padding: 0;
}
.ps-comment-reply:hover { color: #38bdf8; }
.ps-reply-hint {
    font-size: 0.8em; color: #94a3b8; margin-top: 8px; padding: 6px 10px;
    background: #0f172a; border-radius: 8px; display: flex; align-items: center; gap: 8px;
}
.ps-reply-cancel {
    margin-left: auto; background: #334155; border: none; color: #94a3b8;
    border-radius: 999px; width: 22px; height: 22px; cursor: pointer; font-size: 0.75em;
}
.ps-mention-link {
    background: none; border: none; padding: 0; color: var(--ps-blue);
    cursor: pointer; font-size: inherit;
}
.ps-mention-link:hover { text-decoration: underline; }
.ps-no-comments { font-size: 0.85em; color: #64748b; padding: 4px 0; }
.ps-comment-compose { display: flex; gap: 8px; margin-top: 8px; }
.ps-comment-input {
    flex: 1; background: #0f172a; border: 1px solid #334155; border-radius: 999px;
    color: #f1f5f9; padding: 8px 14px; font-size: 0.88em; outline: none;
}
.ps-comment-send {
    background: #334155; color: #f1f5f9; border: none; border-radius: 999px;
    padding: 8px 14px; font-size: 0.85em; font-weight: 600; cursor: pointer;
}
.ps-empty { text-align: center; padding: 48px 24px; color: #64748b; }
.ps-error { color: #f87171; }

.ps-guest-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 20px;
}
.ps-guest-card {
    background: #1e293b; border-radius: 20px; padding: 28px 24px;
    max-width: 360px; width: 100%; text-align: center;
    border: 1px solid #334155;
}
.ps-guest-card h2 { margin-bottom: 8px; font-size: 1.3em; }
.ps-guest-card p { color: #94a3b8; font-size: 0.9em; margin-bottom: 20px; line-height: 1.45; }
.ps-btn-google {
    width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #475569;
    background: white; color: #1e293b; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 12px;
}
.ps-member-note { font-size: 0.85em; color: #94a3b8; line-height: 1.45; margin-bottom: 14px; }
.ps-sewa-link-modal {
    display: block; color: #38bdf8; font-weight: 700; font-size: 0.9em;
    text-decoration: none; margin-top: 8px;
}

.ps-footer-note {
    text-align: center; padding: 20px; font-size: 0.78em; color: #475569;
    line-height: 1.5;
}
.ps-author-link {
    background: none; border: none; padding: 0; cursor: pointer;
    color: inherit; font: inherit; font-weight: 700; text-align: left;
}
.ps-author-link:hover { color: var(--ps-text); text-decoration: underline; }
.ps-profile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75);
    display: none; align-items: flex-end; justify-content: center;
    z-index: 300; padding: 0;
}
.ps-profile-sheet {
    background: #1e293b; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto;
    padding: 20px 16px 28px; border-top: 1px solid #334155;
}
.ps-profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ps-profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6em;
}
.ps-profile-posts { margin-top: 12px; }
.ps-profile-post {
    display: block; width: 100%; text-align: left;
    padding: 10px 0; border-bottom: 1px solid #334155;
    font-size: 0.9em; line-height: 1.45; color: #cbd5e1;
}
.ps-profile-post-btn {
    background: none; border: none; cursor: pointer;
    transition: color 0.15s;
}
.ps-profile-post-btn:hover { color: #38bdf8; }
.ps-profile-sewa {
    display: block; margin-top: 14px; text-align: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b; text-decoration: none; padding: 12px;
    border-radius: 12px; font-weight: 800;
}
.ps-profile-close {
    float: right; background: none; border: none; color: #94a3b8;
    font-size: 1.5em; cursor: pointer; line-height: 1;
}
.ps-feed-tabs {
    display: flex; gap: 0;
    margin: 0;
    background: var(--ps-surface);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--ps-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ps-feed-tab {
    flex: 1; min-width: max-content; padding: 14px 10px;
    background: none; border: none; border-radius: 0;
    color: var(--ps-muted); font-weight: 700; font-size: 0.88em; cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.ps-feed-tab:hover { background: rgba(255, 255, 255, 0.03); color: var(--ps-muted); }
.ps-feed-tab.active {
    color: var(--ps-text);
    border-bottom-color: var(--ps-blue);
    background: transparent;
}
.ps-feed-tab { position: relative; }
.ps-feed-tab-badge {
    position: absolute; top: 6px; right: 4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--ps-blue); color: #fff;
    font-size: 0.65em; font-weight: 800; line-height: 16px;
    border-radius: 999px; text-align: center;
}
.ps-following-suggest { margin-top: 12px; text-align: left; }
.ps-following-suggest-title {
    font-size: 0.85em; color: #64748b; margin: 8px 0 10px; font-weight: 600;
}
.ps-following-suggest-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--ps-border);
    font-size: 0.9em;
}
.ps-following-discover-btn {
    margin-top: 14px; width: 100%;
}
.ps-trending-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; overflow-x: auto;
    border-bottom: 1px solid var(--ps-border);
    -webkit-overflow-scrolling: touch;
}
.ps-trending-label {
    flex-shrink: 0; font-size: 0.78em; font-weight: 700;
    color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.03em;
}
.ps-trending-tag {
    flex-shrink: 0; padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--ps-border); background: rgba(29, 155, 240, 0.08);
    color: var(--ps-blue); font-size: 0.82em; font-weight: 600; cursor: pointer;
}
.ps-trending-tag:hover { background: rgba(29, 155, 240, 0.18); }
.ps-trending-pill {
    flex-shrink: 0; display: inline-flex; align-items: center;
    border: 1px solid var(--ps-border); border-radius: 999px;
    background: rgba(29, 155, 240, 0.08); overflow: hidden;
}
.ps-trending-pill .ps-trending-tag {
    border: none; background: transparent;
}
.ps-hashtag-follow {
    border: none; background: transparent; color: var(--ps-blue);
    font-size: 0.75em; font-weight: 800; cursor: pointer; padding: 5px 8px;
    border-left: 1px solid var(--ps-border);
}
.ps-hashtag-follow.following { color: #22c55e; }
.ps-notif-wrap { position: relative; }
.ps-notif-badge {
    position: absolute; top: -4px; right: -4px; background: #ef4444;
    color: white; font-size: 0.65em; font-weight: 800; min-width: 16px;
    height: 16px; border-radius: 999px; display: none; align-items: center;
    justify-content: center; padding: 0 4px;
}
.ps-notif-panel {
    position: fixed; top: 56px; right: 8px; left: 8px; max-width: 360px;
    margin-left: auto; background: #000; border: 1px solid var(--ps-border);
    border-radius: 16px; max-height: 420px; overflow-y: auto; z-index: 250;
    display: none; box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.ps-notif-panel.open { display: block; }
.ps-notif-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--ps-border);
    position: sticky; top: 0; background: #000; z-index: 1;
}
.ps-notif-read-all {
    background: none; border: none; color: var(--ps-blue);
    font-size: 0.82em; font-weight: 700; cursor: pointer; padding: 4px 0;
}
.ps-notif-item {
    padding: 12px 14px; border-bottom: 1px solid var(--ps-border); font-size: 0.88em;
    line-height: 1.4; cursor: pointer;
}
.ps-notif-item.unread { background: rgba(29, 155, 240, 0.08); }
.ps-notif-item:hover { background: rgba(255, 255, 255, 0.04); }
.ps-load-more-wrap {
    padding: 16px; text-align: center; border-bottom: 1px solid var(--ps-border);
}
.ps-load-more-btn {
    background: transparent; border: 1px solid var(--ps-border);
    color: var(--ps-blue); border-radius: 999px;
    padding: 10px 20px; font-weight: 700; font-size: 0.9em; cursor: pointer;
}
.ps-load-more-btn:disabled { opacity: 0.6; cursor: wait; }
.ps-load-more-btn:hover:not(:disabled) { background: rgba(29, 155, 240, 0.1); }
.ps-refresh-toast,
.ps-space-toast {
    position: fixed; top: max(64px, calc(env(safe-area-inset-top) + 56px));
    left: 50%; transform: translateX(-50%);
    background: var(--ps-blue); color: #fff;
    padding: 8px 16px; border-radius: 999px;
    font-size: 0.85em; font-weight: 700; z-index: 400;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ps-share-overlay {
    position: fixed; inset: 0; z-index: 360;
    background: rgba(0, 0, 0, 0.65);
    display: none; align-items: flex-end; justify-content: center;
}
.ps-share-overlay.open { display: flex; }
.ps-share-sheet {
    width: 100%; max-width: 600px;
    background: #000; border-top: 1px solid var(--ps-border);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px max(20px, env(safe-area-inset-bottom));
}
.ps-share-sheet h3 {
    margin: 4px 0 12px; font-size: 0.95em; color: var(--ps-muted); font-weight: 600;
}
.ps-share-opt {
    display: block; width: 100%; text-align: left;
    background: transparent; border: none; border-bottom: 1px solid var(--ps-border);
    color: var(--ps-text); padding: 14px 4px; font-size: 1em; font-weight: 600;
    cursor: pointer;
}
.ps-share-opt:last-of-type { border-bottom: none; }
.ps-share-opt:hover { color: var(--ps-blue); }
.ps-share-cancel {
    display: block; width: 100%; margin-top: 8px;
    background: transparent; border: 1px solid var(--ps-border);
    color: var(--ps-text); border-radius: 999px;
    padding: 12px; font-size: 0.95em; font-weight: 700; cursor: pointer;
}
.ps-follow-btn {
    margin-top: 10px; padding: 8px 20px; border-radius: 999px; border: 1px solid #38bdf8;
    background: transparent; color: #38bdf8; font-weight: 700; cursor: pointer; font-size: 0.9em;
}
.ps-follow-btn.following { background: #334155; border-color: #475569; color: #94a3b8; }
.ps-profile-stats { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: 8px; font-size: 0.85em; color: #94a3b8; }
.ps-profile-stats strong { color: #f1f5f9; display: block; font-size: 1.1em; }
.ps-profile-post-btn small { color: #64748b; font-weight: 400; margin-left: 4px; }
.ps-install-banner {
    background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
    padding: 10px 14px; display: none; align-items: center;
    justify-content: space-between; gap: 10px; font-size: 0.85em;
    border-bottom: 1px solid #334155;
}
.ps-install-banner.show { display: flex; }
.ps-install-banner button {
    border: none; border-radius: 999px; padding: 6px 14px;
    font-weight: 700; cursor: pointer; font-size: 0.85em;
}
#ps-install-btn { background: #fbbf24; color: #1e293b; }
#ps-install-dismiss { background: transparent; color: #94a3b8; padding: 6px 8px; }
.ps-push-banner {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    padding: 10px 14px; display: none; align-items: center;
    justify-content: space-between; gap: 10px; font-size: 0.85em;
    border-bottom: 1px solid #334155; color: #cbd5e1;
}
.ps-push-banner.show { display: flex; }
.ps-push-banner button {
    border: none; border-radius: 999px; padding: 6px 14px;
    font-weight: 700; cursor: pointer; font-size: 0.85em;
}
#ps-push-enable { background: #f59e0b; color: #1e293b; }
#ps-push-dismiss { background: transparent; color: #94a3b8; padding: 6px 8px; }
.ps-push-toast {
    position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
    z-index: 9999; background: #1e293b; color: #f1f5f9;
    border: 1px solid #38bdf8; border-radius: 12px; padding: 12px 16px;
    max-width: min(92vw, 360px); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    cursor: pointer;
}
.ps-search-bar {
    display: flex; gap: 8px; padding: 8px 12px;
    margin: 0;
    background: var(--ps-surface);
    border-bottom: 1px solid var(--ps-border);
}
#ps-search {
    flex: 1; background: #202327; border: 1px solid transparent; border-radius: 999px;
    color: var(--ps-text); padding: 10px 16px; font-size: 0.9em; outline: none;
}
#ps-search:focus { border-color: var(--ps-blue); background: #000; }
#ps-search-clear {
    background: #334155; border: none; color: #94a3b8; border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer; font-size: 1.1em;
}
.ps-tag-chip {
    display: none; align-items: center; gap: 8px; padding: 8px 12px;
    margin: 0; background: #0f172a; border: none;
    border-bottom: 1px solid #334155; font-size: 0.85em;
}
.ps-tag-chip.show { display: flex; }
.ps-tag-chip span { color: var(--ps-blue); font-weight: 700; }
.ps-tag-chip #ps-tag-chip-clear {
    margin-left: auto; background: #334155; border: none; color: #f1f5f9;
    border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 0.8em;
}
.ps-tag-follow-btn {
    background: rgba(29, 155, 240, 0.15); border: 1px solid var(--ps-blue);
    color: var(--ps-blue); border-radius: 999px; padding: 4px 12px;
    cursor: pointer; font-size: 0.8em; font-weight: 700;
}
.ps-tag-follow-btn.following { border-color: #22c55e; color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.ps-hashtag {
    background: none; border: none; padding: 0; color: var(--ps-blue);
    font-weight: 700; cursor: pointer; font-size: inherit;
}
.ps-hashtag:hover { text-decoration: underline; }
.ps-store-link {
    background: none; border: none; padding: 0; color: #a78bfa;
    font-size: 0.75em; font-weight: 700; cursor: pointer;
}
.ps-handle { color: #64748b; font-size: 0.82em; }
.ps-unified-badge {
    display: inline-block; margin-top: 6px; padding: 4px 10px;
    background: #0f172a; border-radius: 999px; font-size: 0.72em;
    color: #94a3b8; border: 1px solid #334155;
}
.ps-unified-badge--store {
    background: #1e1b4b; border-color: #6366f1; color: #c4b5fd;
}
.ps-verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--ps-blue); color: white; font-size: 0.65em; font-weight: 800;
    vertical-align: middle; margin-left: 2px; flex-shrink: 0;
}
.ps-role-badge {
    display: inline-block; margin-left: 4px; padding: 1px 7px;
    border-radius: 999px; font-size: 0.68em; font-weight: 700;
    vertical-align: middle; line-height: 1.4;
    border: 1px solid transparent;
}
.ps-role-badge--guest {
    background: #1e293b; color: #94a3b8; border-color: #334155;
}
.ps-role-badge--member {
    background: rgba(14, 165, 233, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.35);
}
.ps-role-badge--store {
    background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border-color: rgba(129, 140, 248, 0.4);
}
.ps-role-badge--default {
    background: #0f172a; color: #cbd5e1; border-color: #334155;
}
.ps-comment .ps-role-badge { font-size: 0.62em; margin-left: 2px; padding: 0 5px; }
.ps-upgrade-card { text-align: center; }
.ps-upgrade-action {
    width: 100%; margin-top: 8px; padding: 12px; border: none; border-radius: 999px;
    background: var(--ps-blue); color: white; font-weight: 700; cursor: pointer;
}
.ps-upgrade-dismiss {
    width: 100%; margin-top: 10px; padding: 8px; border: none; background: transparent;
    color: #64748b; cursor: pointer; font-size: 0.9em;
}
.ps-katalog-link {
    display: block; margin-top: 10px; padding: 10px 14px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white; text-decoration: none; border-radius: 10px;
    font-size: 0.88em; font-weight: 700; text-align: center;
}
.ps-katalog-link:hover { filter: brightness(1.08); }
.ps-katalog-cta { margin-left: var(--ps-indent); max-width: calc(100% - var(--ps-indent)); }
.ps-catalog-cards {
    display: flex; flex-direction: column; gap: 8px;
    margin: 0 0 10px var(--ps-indent); max-width: calc(100% - var(--ps-indent));
}
.ps-catalog-card {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px 14px; background: linear-gradient(135deg, #14532d, #166534);
    border-radius: 12px; color: white; text-decoration: none; font-size: 0.9em;
}
.ps-catalog-card-name { font-weight: 700; }
.ps-catalog-card-price { font-size: 0.85em; opacity: 0.95; flex-shrink: 0; }
.ps-repost-label {
    font-size: 0.82em; color: var(--ps-muted); margin-bottom: 8px; padding-left: var(--ps-indent);
}
.ps-repost-card {
    display: block; width: calc(100% - var(--ps-indent)); margin: 0 0 10px var(--ps-indent);
    padding: 12px; background: transparent; border: 1px solid var(--ps-border);
    border-radius: 16px; text-align: left; cursor: pointer; color: var(--ps-text);
}
.ps-repost-card strong { color: #f1f5f9; display: block; margin-bottom: 4px; }
.ps-repost-card p { font-size: 0.88em; margin: 0 0 8px; line-height: 1.4; }
.ps-repost-thumb {
    width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px;
}
.ps-repost-thumb--video {
    display: block; padding: 24px; text-align: center; background: #1e293b;
    border-radius: 8px; font-size: 1.5em;
}
.ps-repost-post { color: #38bdf8; }
#ps-catalog-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
#ps-catalog-chips[hidden] { display: none !important; }
.ps-catalog-chip {
    background: #14532d; color: #bbf7d0; font-size: 0.78em;
    padding: 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
}
.ps-catalog-chip-remove {
    background: none; border: none; color: #86efac; cursor: pointer; padding: 0; font-size: 1em;
}
.ps-catalog-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.8); display: none;
    align-items: flex-end; justify-content: center;
}
.ps-catalog-sheet {
    background: #1e293b; width: 100%; max-width: 520px; max-height: 80vh;
    border-radius: 20px 20px 0 0; padding: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.ps-catalog-sheet h3 { margin: 0 0 10px; font-size: 1em; }
#ps-catalog-search {
    width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid #334155;
    background: #0f172a; color: #f1f5f9; margin-bottom: 10px;
}
#ps-catalog-list {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
.ps-catalog-pick {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; background: #0f172a; border: 1px solid #334155; border-radius: 10px;
    color: #f1f5f9; cursor: pointer; text-align: left; font-size: 0.9em;
}
.ps-catalog-pick.selected { border-color: #22c55e; background: #14532d; }
.ps-catalog-close {
    float: right; background: none; border: none; color: #94a3b8; font-size: 1.5em; cursor: pointer;
}
#ps-catalog-done {
    margin-top: 10px; width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: #22c55e; color: white; font-weight: 700; cursor: pointer;
}
.ps-onboarding-banner {
    display: none; background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-bottom: 1px solid #334155; padding: 14px 16px; font-size: 0.88em; line-height: 1.5;
}
.ps-onboarding-banner.show { display: block; }
.ps-onboarding-steps {
    display: flex; gap: 8px; margin-bottom: 10px;
}
.ps-onboarding-steps span {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #334155; color: #94a3b8; font-size: 0.8em; font-weight: 800;
}
.ps-onboarding-steps span.done { background: #22c55e; color: white; }
.ps-onboarding-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ps-onboarding-cta {
    background: #fbbf24; color: #1e293b; border: none; border-radius: 999px;
    padding: 8px 16px; font-weight: 800; cursor: pointer; font-size: 0.88em;
}
.ps-onboarding-dismiss {
    background: transparent; border: 1px solid #475569; color: #94a3b8;
    border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.85em;
}
.ps-discover { padding: 12px 0; }
.ps-discover-section { margin-bottom: 20px; padding: 0 14px; }
.ps-discover-section h3 { font-size: 0.95em; color: #94a3b8; margin-bottom: 10px; }
.ps-discover-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-discover-tag-row {
    display: inline-flex; align-items: center;
    border: 1px solid var(--ps-border); border-radius: 999px; overflow: hidden;
}
.ps-discover-tag-row .ps-discover-tag { border: none; }
.ps-discover-tag-row .ps-hashtag-follow { border-left: 1px solid var(--ps-border); padding: 6px 10px; }
.ps-discover-tag {
    background: #0f172a; border: 1px solid #334155; color: #38bdf8;
    padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85em; cursor: pointer;
}
.ps-discover-tag span { color: #64748b; font-weight: 400; margin-left: 4px; }
.ps-discover-stores { display: flex; flex-direction: column; gap: 8px; }
.ps-discover-store {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px; background: #1e293b; border-radius: 12px; border: 1px solid #334155;
}
.ps-discover-store-info { flex: 1; min-width: 0; }
.ps-discover-store-open {
    display: block; background: none; border: none; padding: 0; margin: 0;
    color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.ps-discover-store-open strong { color: #e2e8f0; }
.ps-discover-store-open:hover strong { color: #38bdf8; }
.ps-discover-handle { display: block; color: #64748b; font-size: 0.78em; margin-top: 2px; }
.ps-discover-milestones { display: inline-flex; gap: 4px; margin: 4px 0 2px; }
.ps-discover-milestone {
    font-size: 0.68em; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.ps-discover-milestone--views {
    color: #38bdf8; background: rgba(56, 189, 248, 0.12);
}
.ps-discover-milestone--followers {
    color: #a78bfa; background: rgba(167, 139, 250, 0.12);
}
.ps-discover-follow {
    background: #2563eb; color: white; border: none; border-radius: 999px;
    padding: 6px 14px; font-weight: 700; font-size: 0.82em; cursor: pointer; flex-shrink: 0;
}
.ps-discover-videos {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
}
.ps-discover-video {
    flex: 0 0 100px; height: 140px; border-radius: 12px; overflow: hidden;
    background: #000; border: 1px solid #334155; cursor: pointer; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ps-discover-video img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ps-discover-video small {
    position: absolute; bottom: 6px; left: 6px; right: 6px; font-size: 0.7em;
    color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 1;
}
.ps-discover-empty { font-size: 0.88em; color: #64748b; }
.ps-discover-tip {
    font-size: 0.82em; color: #64748b; text-align: center; padding: 12px 16px 20px; line-height: 1.5;
}
.ps-social-links {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;
}
.ps-social-link {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: 0.78em; font-weight: 700; text-decoration: none;
}
.ps-social-ig { background: #e1306c22; color: #f472b6; border: 1px solid #e1306c55; }
.ps-social-tt { background: #ffffff12; color: #e2e8f0; border: 1px solid #64748b; }
.ps-report-post { color: #94a3b8; font-size: 0.9em; }
.ps-report-post:hover { color: #f87171; }
.ps-profile-actions {
    display: flex; gap: 8px; margin-top: 8px;
}
.ps-profile-actions .ps-follow-btn { flex: 1; margin-top: 0 !important; }
.ps-block-btn { margin-top: 8px; width: 100%; background: #334155 !important; color: #94a3b8 !important; }
.ps-block-btn.blocked { background: #7f1d1d33 !important; color: #fca5a5 !important; border: 1px solid #991b1b; }
.ps-store-chip {
    display: none; align-items: center; gap: 8px; padding: 8px 12px;
    margin: 0; background: #1e1b4b; border: none;
    border-bottom: 1px solid #4338ca; font-size: 0.85em;
}
.ps-store-chip.show { display: flex; }
.ps-store-chip span { color: #a78bfa; font-weight: 700; }
.ps-profile-edit {
    margin: 12px 0; padding: 16px; background: #000;
    border-radius: 16px; border: 1px solid var(--ps-border);
}
.ps-profile-edit-title {
    margin: 0 0 12px; font-size: 1em; font-weight: 800; color: var(--ps-text);
}
.ps-profile-edit-section { margin-bottom: 14px; }
.ps-profile-edit label {
    display: block; font-size: 0.78em; color: var(--ps-muted);
    font-weight: 700; margin-bottom: 6px;
}
.ps-profile-edit-hint {
    font-size: 0.75em; color: var(--ps-muted); margin: 4px 0 8px; line-height: 1.4;
}
.ps-profile-edit-error {
    color: #f87171; font-size: 0.8em; margin-top: 8px; min-height: 1.2em;
}
.ps-profile-edit input, .ps-profile-edit textarea {
    width: 100%; background: #16181c; border: 1px solid var(--ps-border);
    border-radius: 12px; color: var(--ps-text); padding: 12px; font-family: inherit;
    font-size: 0.95em; box-sizing: border-box;
}
.ps-profile-edit textarea { min-height: 80px; resize: vertical; }
.ps-social-connect-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.ps-social-connect {
    flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 999px;
    border: 1px solid var(--ps-border); background: #16181c;
    color: var(--ps-text); font-weight: 700; font-size: 0.82em; cursor: pointer;
}
.ps-social-connect--ig:hover { border-color: #e1306c; color: #e1306c; }
.ps-social-connect--tt:hover { border-color: #69c9d0; color: #69c9d0; }
.ps-social-manual {
    display: flex; flex-direction: column; gap: 8px;
}
.ps-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ps-social-link {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    font-size: 0.82em; font-weight: 600; text-decoration: none;
    border: 1px solid var(--ps-border);
}
.ps-social-ig { color: #e1306c; }
.ps-social-tt { color: #69c9d0; }
.ps-post-socials {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.ps-post-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.ps-post-social--ig { background: #e1306c22; color: #f472b6; border: 1px solid #e1306c44; }
.ps-post-social--tt { background: #ffffff10; color: #94a3b8; border: 1px solid #64748b55; }
#ps-save-profile {
    width: 100%; margin-top: 12px; padding: 12px; border: none;
    border-radius: 999px; background: var(--ps-blue);
    color: #fff; font-weight: 800; cursor: pointer; font-size: 0.95em;
}
.ps-handle-link {
    background: none; border: none; padding: 0; color: var(--ps-muted);
    font-size: 0.82em; cursor: pointer;
}
.ps-handle-link:hover { color: var(--ps-muted); text-decoration: underline; }
