/**
 * PicWall Extension v3 - Stylesheet
 */
.pw_hidden { display: none !important; }
.pw_wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; background: var(--pw-bg, #0e1117); overflow: hidden; }
.pw_main { display: flex; flex: 1; overflow: hidden; }
.pw_left { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* Right Panel */
.pw_right { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.pw_right_head { padding: 12px 14px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.pw_right_head i { margin-right: 6px; }
.pw_right_feed { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.pw_feed_empty { padding: 40px 16px; text-align: center; color: rgba(255,255,255,0.2); font-size: 13px; }
.pw_feed_item { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pw_feed_item:hover { background: rgba(255,255,255,0.04); }
.pw_feed_av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.pw_feed_body { flex: 1; min-width: 0; }
.pw_feed_name { font-size: 12px; font-weight: 600; display: block; }
.pw_feed_text { font-size: 12px; color: rgba(255,255,255,0.5); display: block; overflow: hidden; white-space: normal; word-break: break-word; line-height: 1.4; }
.pw_feed_time { font-size: 10px; color: rgba(255,255,255,0.25); }
.pw_feed_thumb { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.pw_feed_thumb_blur { filter: blur(6px); }

/* Toolbar */
.pw_toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; gap: 8px; }
.pw_toolbar_left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pw_toolbar_right { display: flex; align-items: center; gap: 8px; }
.pw_btn_back { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; margin-right: 4px; box-shadow: 0 2px 8px rgba(34,197,94,0.35); }
.pw_btn_back:hover { background: linear-gradient(135deg, #4ade80, #22c55e); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(34,197,94,0.45); }
.pw_filter { padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.55); transition: all 0.2s; white-space: nowrap; }
.pw_filter:hover { color: #fff; background: rgba(255,255,255,0.06); }
.pw_filter_active { background: rgba(255,255,255,0.10); color: #fff; font-weight: 600; }
.pw_gold_display { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; background: rgba(255,215,0,0.10); color: #ffd700; font-weight: 600; font-size: 13px; }
.pw_gold_icon { width: 16px; height: 16px; }
.pw_gold_sm { width: 13px; height: 13px; vertical-align: middle; }

/* Buttons */
.pw_btn { padding: 7px 16px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pw_btn_upload { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.pw_btn_upload:hover { background: linear-gradient(135deg, #818cf8, #a78bfa); transform: translateY(-1px); }
.pw_btn_submit { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; width: 100%; justify-content: center; padding: 10px; border-radius: 8px; margin-top: 4px; }
.pw_btn_submit:hover { background: linear-gradient(135deg, #818cf8, #a78bfa); }
.pw_btn_more { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); margin: 16px auto; }
.pw_btn_more:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pw_btn_unlock { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; padding: 12px 28px; font-size: 15px; border-radius: 10px; margin-top: 10px; }
.pw_btn_unlock:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.3); }
.pw_btn_full { width: 100%; justify-content: center; box-sizing: border-box; }
.pw_btn_disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); padding: 12px 28px; font-size: 15px; border-radius: 10px; margin-top: 10px; cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px; }
.pw_btn_comment { padding: 8px 14px; border-radius: 8px; background: rgba(99,102,241,0.8); color: #fff; flex-shrink: 0; }
.pw_btn_comment:hover { background: rgba(99,102,241,1); }
.pw_btn_dl { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); padding: 7px 14px; }
.pw_btn_dl:hover { background: rgba(255,255,255,0.14); color: #fff; }
.pw_btn_extend { background: rgba(245,158,11,0.15); color: #f59e0b; padding: 7px 14px; }
.pw_btn_extend:hover { background: rgba(245,158,11,0.25); }
.pw_btn_extend_sm { background: rgba(245,158,11,0.12); color: #fbbf24; padding: 8px 16px; margin-top: 8px; font-size: 13px; }
.pw_btn_extend_sm:hover { background: rgba(245,158,11,0.2); }

/* Timer */
.pw_card_timer { font-size: 11px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.05); white-space: nowrap; }
.pw_card_timer i { font-size: 10px; }
.pw_timer_warn { color: #f59e0b; background: rgba(245,158,11,0.1); }
.pw_timer_urgent { color: #ef4444; background: rgba(239,68,68,0.1); animation: pw_pulse 1s infinite; }
@keyframes pw_pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pw_view_timer { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,0.5); padding: 4px 10px; border-radius: 16px; background: rgba(255,255,255,0.05); margin-right: 8px; }
.pw_view_actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pw_view_actions_wrap { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pw_view_votes { display: flex; align-items: center; gap: 10px; }

/* Extend rows */
.pw_extend_list { padding: 8px 0; }
.pw_extend_row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); font-size: 14px; }
.pw_extend_row:hover { background: rgba(255,255,255,0.06); }
.pw_extend_row i { margin-right: 6px; color: #f59e0b; }
.pw_extend_cost { display: flex; align-items: center; gap: 4px; color: #ffd700; font-weight: 700; }

/* Clickable stats */
.pw_stat_click { cursor: pointer; transition: color 0.15s; }
.pw_stat_click:hover { color: rgba(255,255,255,0.7); }
.pw_vstat { font-size: 12px; color: rgba(255,255,255,0.35); cursor: pointer; margin-right: 12px; }
.pw_vstat:hover { color: rgba(255,255,255,0.7); }
.pw_vstat i { margin-right: 3px; }

/* Stats modal */
.pw_stats_box { max-height: 70vh; max-height: 70dvh; display: flex; flex-direction: column; }
.pw_stats_list { flex: 1; overflow-y: auto; max-height: 400px; scrollbar-width: thin; }
.pw_stats_row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* Grid */
.pw_grid_scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px; scrollbar-width: thin; }
.pw_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pw_spinner { text-align: center; padding: 40px; font-size: 28px; color: rgba(255,255,255,0.3); }
.pw_spinner_sm { text-align: center; padding: 60px; font-size: 24px; color: rgba(255,255,255,0.3); }
.pw_empty { text-align: center; padding: 80px 20px; color: rgba(255,255,255,0.25); }
.pw_empty i { font-size: 48px; margin-bottom: 12px; }
.pw_empty p { margin: 8px 0 0; font-size: 14px; }
.pw_loadmore { text-align: center; padding: 10px; }

/* Card */
.pw_card { background: rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.pw_card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.pw_card_head { display: flex; flex-direction: column; padding: 8px 10px; gap: 4px; }
.pw_card_head_row1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pw_card_head_row2 { display: flex; align-items: center; gap: 6px; padding-left: 38px; }
.pw_card_av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
.pw_card_info { flex: 1; min-width: 0; }
.pw_card_name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pw_card_name:hover { text-decoration: underline; opacity: 0.85; }
.pw_card_date { font-size: 11px; color: rgba(255,255,255,0.35); white-space: nowrap; }
.pw_card_menu { cursor: pointer; color: rgba(255,255,255,0.25); padding: 3px 6px; border-radius: 4px; transition: all 0.15s; position: relative; font-size: 12px; }
.pw_card_menu:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* Card gear dropdown */
.pw_card_dropdown { position: fixed; z-index: 99999; background: #1e2130; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); width: 170px; overflow: hidden; }
.pw_dd_item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,0.75); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.pw_dd_item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.pw_dd_item i { width: 14px; text-align: center; opacity: 0.7; }
.pw_dd_danger { color: #f87171; }
.pw_dd_danger:hover { background: rgba(239,68,68,0.12); color: #ef4444; }
/* light theme */
body.light .pw_card_dropdown, .theme_lite .pw_card_dropdown { background: #fff; border-color: #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body.light .pw_dd_item, .theme_lite .pw_dd_item { color: #374151; }
body.light .pw_dd_item:hover, .theme_lite .pw_dd_item:hover { background: #f3f4f6; color: #111; }
.pw_card_img { position: relative; cursor: pointer; overflow: hidden; background: rgba(0,0,0,0.2); aspect-ratio: 4/3; }
.pw_card_img img.pw_thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.pw_card_img:hover img.pw_thumb { transform: scale(1.03); }
.pw_blurred { filter: blur(22px) saturate(0.7); transform: scale(1.1); }
.pw_card_img:hover .pw_blurred { filter: blur(18px) saturate(0.7); transform: scale(1.13); }
.pw_lock_overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); color: #fff; gap: 6px; pointer-events: none; }
.pw_lock_overlay i { font-size: 28px; opacity: 0.85; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.pw_lock_price { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.55); padding: 4px 12px; border-radius: 16px; font-size: 13px; font-weight: 700; color: #ffd700; backdrop-filter: blur(4px); }
.pw_card_title { position: absolute; top: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%); color: #fff; font-size: 13px; font-weight: 600; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw_card_foot { display: flex; align-items: center; padding: 6px 10px; gap: 12px; border-top: 1px solid rgba(255,255,255,0.04); }
.pw_stat { font-size: 12px; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 4px; }
.pw_earned { color: #ffd700; margin-left: auto; font-weight: 600; }
.pw_card_tag_row { padding: 4px 10px 2px; }

/* Modals */
.pw_modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.pw_modal_box { background: #1a1d27; border-radius: 14px; width: 90%; max-width: 440px; border: 1px solid rgba(255,255,255,0.08); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; }
.pw_modal_body { padding: 16px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.pw_modal_foot { flex-shrink: 0; padding: 12px 16px 16px; }
.pw_modal_head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 700; font-size: 15px; color: #fff; }
.pw_modal_close { cursor: pointer; color: rgba(255,255,255,0.4); padding: 4px 8px; border-radius: 6px; transition: all 0.15s; }
.pw_modal_close:hover { color: #fff; background: rgba(255,255,255,0.08); }
/* pw_modal_body and pw_modal_foot defined with pw_modal_box above */

/* Upload */
.pw_upload_preview { width: 100%; min-height: 180px; border: 2px dashed rgba(255,255,255,0.12); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 14px; position: relative; overflow: hidden; cursor: pointer; transition: border-color 0.2s; margin-bottom: 14px; background: rgba(0,0,0,0.15); }
.pw_upload_preview:hover { border-color: rgba(255,255,255,0.25); }
.pw_upload_preview img { width: 100%; height: 100%; object-fit: cover; max-height: 260px; border-radius: 8px; }
.pw_upload_preview input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pw_upload_placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); pointer-events: none; }
.pw_upload_placeholder i { font-size: 36px; margin-bottom: 8px; }
.pw_preview_img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; pointer-events: none; }
.pw_upload_fields { display: flex; flex-direction: column; gap: 10px; }
.pw_input { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); color: #fff; font-size: 14px; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.pw_input:focus { border-color: rgba(99,102,241,0.6); }
.pw_input::placeholder { color: rgba(255,255,255,0.25); }
.pw_price_row { display: flex; align-items: center; gap: 8px; }
.pw_input_price { flex: 1; }
.pw_price_label_row { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.pw_price_sub { font-weight: 400; color: rgba(255,255,255,0.3); }
.pw_price_hint { font-size: 12px; padding: 6px 10px; border-radius: 6px; margin: 4px 0 2px; display: block; transition: background 0.2s, color 0.2s; line-height: 1.6; }
.pw_price_hint_free { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); }
.pw_price_hint_locked { background: rgba(255,215,0,0.1); color: #ffd700; }
.pw_price_hint_locked strong { color: #fff; }
.pw_price_hint_warn { background: rgba(239,68,68,0.12); color: #f87171; }
.pw_price_hint_warn strong { color: #fff; }
.pw_fee_warn_icon { margin-right: 4px; }
.pw_fee_warn_links { display: block; margin-top: 4px; }
.pw_fee_warn_btn { display: inline-block; cursor: pointer; background: rgba(255,255,255,0.12); color: #fff; border-radius: 5px; padding: 2px 10px; font-size: 11px; margin-right: 4px; transition: background 0.15s; }
.pw_fee_warn_btn:hover { background: rgba(255,255,255,0.22); }
.pw_fee_warn_cancel { background: transparent; color: rgba(255,255,255,0.4); }
.pw_fee_warn_cancel:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.pw_profit_pos { color: #22c55e; }
.pw_profit_neg { color: #f87171; }
.pw_price_hint_profit { background: rgba(34,197,94,0.1); color: #86efac; margin-top: 3px; }
.pw_price_hint_profit strong { color: #22c55e; }
.pw_input_hours { flex: 1; }
.pw_field_icon { color: rgba(255,255,255,0.35); font-size: 15px; width: 16px; text-align: center; }
.pw_checkbox_row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); cursor: pointer; }
.pw_checkbox_row input[type="checkbox"] { accent-color: #6366f1; }
/* Dark select dropdown */
.pw_input select, select.pw_input {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-color: rgba(255,255,255,0.04); color: #fff;
}
select.pw_input option { background: #1a1d27; color: #fff; padding: 8px; }
/* Report button on card */
.pw_card_report { cursor: pointer; color: rgba(255,255,255,0.18); padding: 4px 6px; border-radius: 4px; transition: all 0.15s; font-size: 12px; }
.pw_card_report:hover { color: #f59e0b; background: rgba(245,158,11,0.1); }
/* Staff-only reported filter (hidden by default, shown via JS for rank>=80) */
.pw_filter_staff { display: none; }
.pw_filter_staff_show { display: inline-flex; }
.pw_hint { font-size: 12px; color: rgba(255,255,255,0.3); margin: 0; line-height: 1.4; }
.pw_upload_progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.pw_upload_bar { height: 100%; width: 0%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 2px; transition: width 0.2s; }

/* View modal */
.pw_view_box { position: relative; background: #1a1d27; border-radius: 14px; max-width: 700px; width: 92%; max-height: 90vh; max-height: 90dvh; overflow: auto; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pw_view_close { position: absolute; top: 10px; right: 10px; z-index: 10; cursor: pointer; background: rgba(0,0,0,0.5); color: #fff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.pw_view_close:hover { background: rgba(0,0,0,0.8); }
.pw_view_img { width: 100%; display: block; border-radius: 14px 14px 0 0; max-height: 55vh; max-height: 55dvh; object-fit: contain; background: #000; }
.pw_view_info { padding: 14px 16px; }
.pw_view_title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pw_view_user { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.pw_view_stats { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.pw_unlock_box { position: relative; overflow: hidden; min-height: 280px; }
.pw_unlock_blur { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(0.5); transform: scale(1.2); position: absolute; top: 0; left: 0; }
.pw_unlock_content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 30px; text-align: center; background: rgba(0,0,0,0.35); }
.pw_lock_big { font-size: 44px; color: #fff; margin-bottom: 14px; text-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.pw_unlock_price { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; color: #ffd700; margin: 14px 0 4px; }
.pw_unlock_balance { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }

/* Comments */
.pw_comments_section { border-top: 1px solid rgba(255,255,255,0.06); }
.pw_comments_head { padding: 12px 16px 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); }
.pw_comments_head i { margin-right: 4px; }
.pw_comments_list { max-height: 220px; overflow-y: auto; padding: 0 16px; scrollbar-width: thin; }
.pw_comment { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.pw_comment_av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.pw_comment_body { flex: 1; min-width: 0; }
.pw_comment_name { font-size: 12px; font-weight: 600; margin-right: 6px; }
.pw_comment_text { font-size: 13px; color: rgba(255,255,255,0.7); word-break: break-word; }
.pw_comment_time { font-size: 10px; color: rgba(255,255,255,0.25); display: block; margin-top: 2px; }
.pw_comment_del { cursor: pointer; color: rgba(255,255,255,0.15); padding: 2px 4px; font-size: 11px; flex-shrink: 0; transition: color 0.15s; }
.pw_comment_del:hover { color: #ef4444; }
.pw_comment_empty { padding: 16px 0; text-align: center; color: rgba(255,255,255,0.2); font-size: 13px; }
.pw_comment_form { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; }
.pw_comment_input { flex: 1; padding: 8px 12px; font-size: 13px; border-radius: 20px; }

/* Topbar */

/* Rooms panel (left sidebar) */
.pw_rooms_panel { width: 190px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); overflow: hidden; }
.pw_rooms_head { padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--pw-accent, #f97316); border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; letter-spacing: 0.5px; }
.pw_rooms_list { flex: 1; overflow-y: auto; scrollbar-width: thin; padding: 6px 0; }
.pw_rooms_loading { padding: 16px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }
.pw_room_item { display: flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 13px; color: rgba(255,255,255,0.6); cursor: pointer; transition: background 0.15s, color 0.15s; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw_room_item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.9); }
.pw_room_item.pw_room_active { color: var(--pw-accent, #f97316); background: rgba(249,115,22,0.1); font-weight: 600; }
.pw_room_hash { color: var(--pw-accent, #f97316); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.pw_room_del { margin-left: auto; flex-shrink: 0; color: rgba(255,255,255,0.25); font-size: 11px; padding: 2px 4px; border-radius: 3px; transition: color 0.15s, background 0.15s; }
.pw_room_del:hover { color: #ef4444; background: rgba(239,68,68,0.15); }
.pw_rooms_add { padding: 10px 14px; font-size: 12px; color: rgba(255,255,255,0.4); cursor: pointer; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.pw_rooms_add:hover { color: var(--pw-accent, #f97316); }
/* room tag on cards */
.pw_room_tag { color: var(--pw-accent, #f97316) !important; cursor: pointer; font-size: 11px !important; }
.pw_room_tag:hover { text-decoration: underline; }
/* owner locked badge */
.pw_owner_locked_badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 600; padding: 5px 10px; display: flex; align-items: center; gap: 5px; z-index: 3; pointer-events: none; }
.pw_owner_locked_badge .pw_gold_sm { opacity: 0.9; }

/* Hide CodyChat footer when PicWall is open */
#wrap_footer.pw_footer_hidden { display: none !important; }

/* Mobile footer bar - desktop hidden */
.pw_mobile_footer { display: none; }

/* Mobile drawers */
.pw_drawer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--pw-bg, #0e1117); border-top: 1px solid rgba(255,255,255,0.1); border-radius: 16px 16px 0 0; max-height: 70vh; max-height: 70dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.pw_drawer_head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; font-size: 14px; font-weight: 700; color: var(--pw-accent, #f97316); flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pw_drawer_close { color: rgba(255,255,255,0.4); cursor: pointer; font-size: 16px; padding: 4px 6px; }
.pw_drawer_close:hover { color: rgba(255,255,255,0.8); }
.pw_drawer_body { flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; }
.pw_drawer_overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 199; background: rgba(0,0,0,0.4); }

/* responsive: hide panels, show mobile footer */
@media (max-width: 800px) {
    .pw_rooms_panel { display: none; }
    .pw_right { display: none; }
    .pw_mobile_footer { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--pw-bg, #0e1117); border-top: 1px solid rgba(255,255,255,0.1); height: 56px; align-items: stretch; padding-bottom: env(safe-area-inset-bottom); }
    .pw_mfoot_btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,0.45); font-size: 11px; cursor: pointer; transition: color 0.15s; }
    .pw_mfoot_btn i { font-size: 18px; }
    .pw_mfoot_btn:hover, .pw_mfoot_btn.pw_mfoot_active { color: var(--pw-accent, #f97316); }
    .pw_mfoot_all_active { color: var(--pw-accent, #f97316) !important; }
    .pw_mfoot_all_active i { animation: pw_pulse 1.5s infinite; }
    .pw_grid_scroll { padding-bottom: 70px; } /* prevent content hidden behind footer */
}
@media (max-width: 640px) {
    .pw_grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
    .pw_toolbar { padding: 6px 10px; flex-wrap: wrap; }
    .pw_filter { padding: 5px 10px; font-size: 0; }
    .pw_filter i { font-size: 14px; }
    .pw_btn_upload { padding: 6px 12px; font-size: 12px; }
    .pw_card_title { font-size: 11px; }
    .pw_view_box { width: 96%; border-radius: 10px; }
    .pw_modal_box { width: 95%; }
    .pw_card_timer { font-size: 10px; padding: 2px 6px; }
}

/* Light theme */
body.light .pw_wrap, .theme_lite .pw_wrap { --pw-bg: #f3f4f6; }
body.light .pw_drawer, .theme_lite .pw_drawer { background: #fff; border-top-color: #e5e7eb; }
body.light .pw_mobile_footer, .theme_lite .pw_mobile_footer { background: #fff; border-top-color: #e5e7eb; }
body.light .pw_mfoot_btn, .theme_lite .pw_mfoot_btn { color: #9ca3af; }
body.light .pw_rooms_panel, .theme_lite .pw_rooms_panel { background: rgba(0,0,0,0.02); border-right-color: #e5e7eb; }
body.light .pw_room_item { color: #6b7280; }
body.light .pw_room_item:hover { background: rgba(0,0,0,0.04); color: #111827; }
body.light .pw_room_item.pw_room_active { background: rgba(249,115,22,0.08); }
body.light .pw_rooms_add { color: #9ca3af; border-top-color: #e5e7eb; }
body.light .pw_card, .theme_lite .pw_card { background: #fff; border-color: #e5e7eb; }
body.light .pw_toolbar, .theme_lite .pw_toolbar { background: #fff; border-bottom-color: #e5e7eb; }
body.light .pw_right, .theme_lite .pw_right { background: #fff; border-left-color: #e5e7eb; }
body.light .pw_filter, .theme_lite .pw_filter { color: #6b7280; }
body.light .pw_filter_active, .theme_lite .pw_filter_active { background: #eef2ff; color: #4f46e5; }
body.light .pw_filter:hover, .theme_lite .pw_filter:hover { color: #111; background: #f3f4f6; }
body.light .pw_modal_head, body.light .pw_view_title, .theme_lite .pw_modal_head, .theme_lite .pw_view_title { color: #111; }
body.light .pw_card_date, body.light .pw_stat, .theme_lite .pw_card_date, .theme_lite .pw_stat { color: #9ca3af; }
body.light .pw_modal_box, body.light .pw_view_box, .theme_lite .pw_modal_box, .theme_lite .pw_view_box { background: #fff; border-color: #e5e7eb; }
body.light .pw_input, .theme_lite .pw_input { background: #f9fafb; border-color: #d1d5db; color: #111; }
body.light .pw_empty, body.light .pw_spinner, .theme_lite .pw_empty, .theme_lite .pw_spinner { color: #9ca3af; }
body.light .pw_comment_text, .theme_lite .pw_comment_text { color: #374151; }
body.light .pw_feed_text, .theme_lite .pw_feed_text { color: #6b7280; }
body.light .pw_right_head, .theme_lite .pw_right_head { color: #374151; border-bottom-color: #e5e7eb; }
body.light .pw_feed_item, .theme_lite .pw_feed_item { border-bottom-color: #f3f4f6; }
body.light .pw_feed_item:hover, .theme_lite .pw_feed_item:hover { background: #f9fafb; }
body.light .pw_btn_back, .theme_lite .pw_btn_back { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
body.light .pw_btn_back:hover, .theme_lite .pw_btn_back:hover { background: linear-gradient(135deg, #4ade80, #22c55e); }
body.light .pw_card_timer, .theme_lite .pw_card_timer { background: #f3f4f6; color: #6b7280; }
body.light .pw_extend_row, .theme_lite .pw_extend_row { color: #374151; border-bottom-color: #f3f4f6; }
body.light .pw_extend_row:hover, .theme_lite .pw_extend_row:hover { background: #f9fafb; }
body.light .pw_stats_row, .theme_lite .pw_stats_row { border-bottom-color: #f3f4f6; }
body.light .pw_checkbox_row, .theme_lite .pw_checkbox_row { color: #6b7280; }

/* Topbar pill */
.pw_feed_more { text-align: center; padding: 8px; font-size: 12px; color: rgba(255,255,255,0.4); cursor: pointer; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; transition: color 0.15s; }
.pw_feed_more:hover { color: #fff; }
.pw_view_username { font-size: 13px; font-weight: 600; cursor: pointer; }
.pw_view_username:hover { text-decoration: underline; opacity: 0.85; }
.pw_pill_wrap { position: relative; display: inline-flex; }
.pw_pill_dot { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; background: #ef4444; border-radius: 50%; border: 2px solid #1a1a2e; display: none; animation: pwDotPulse 1.5s ease-in-out infinite; }
@keyframes pwDotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
.pw_topbar_pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 18px; border-radius: 20px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(249,115,22,0.4); transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.pw_topbar_pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.5); }

/* Hide pill text on mobile, icon only */
@media (max-width: 600px) {
    .pw_pill_text { display: none; }
    .pw_topbar_pill { padding: 6px 12px; }
}

/* Toolbar notification buttons */
.pw_notif_btn { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); cursor: pointer; transition: background 0.15s, color 0.15s; flex-shrink: 0; }
.pw_notif_btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pw_notif_btn i { font-size: 15px; }
.pw_notif_dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 2px solid var(--pw-bg, #0e1117); animation: pw_pulse 1.5s infinite; }
@keyframes pw_pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
body.light .pw_notif_btn, .theme_lite .pw_notif_btn { background: rgba(0,0,0,0.05); color: #6b7280; }
body.light .pw_notif_btn:hover, .theme_lite .pw_notif_btn:hover { background: rgba(0,0,0,0.1); color: #111; }

/* Chat messages dot - blue to distinguish from red notif dot */
.pw_notif_dot_chat { background: #3b82f6; }

/* Pin button on card */
.pw_card_pin { margin-left: 2px; color: rgba(255,255,255,0.25); cursor: pointer; padding: 3px 5px; border-radius: 4px; font-size: 12px; transition: color 0.15s, background 0.15s; }
.pw_card_pin:hover { color: #f59e0b; background: rgba(245,158,11,0.12); }
.pw_card_pin.pw_pin_active { color: #f59e0b; }
/* Pin badge on image */
.pw_pin_badge { position: absolute; top: 8px; right: 8px; z-index: 4; background: #f59e0b; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
/* Pinned card highlight */
.pw_card_pinned { border-color: rgba(245,158,11,0.4) !important; box-shadow: 0 0 0 1px rgba(245,158,11,0.2); }

/* Vote row */
.pw_vote_row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 10px 7px; border-top: 1px solid rgba(255,255,255,0.06); }
.pw_vote_btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border: none; border-radius: 20px; padding: 4px 12px; cursor: pointer; transition: background 0.15s, transform 0.1s, color 0.15s; user-select: none; }
.pw_vote_up   { background: rgba(34,197,94,0.1);  color: rgba(255,255,255,0.5); }
.pw_vote_down { background: rgba(239,68,68,0.1);  color: rgba(255,255,255,0.5); }
.pw_vote_up:hover   { background: rgba(34,197,94,0.22);  color: #22c55e; transform: translateY(-1px); }
.pw_vote_down:hover { background: rgba(239,68,68,0.22);  color: #ef4444; transform: translateY(-1px); }
.pw_vote_active_up   { background: rgba(34,197,94,0.25) !important; color: #22c55e !important; }
.pw_vote_active_down { background: rgba(239,68,68,0.25) !important; color: #ef4444 !important; }
.pw_vote_score { font-size: 13px; font-weight: 700; min-width: 24px; text-align: center; color: rgba(255,255,255,0.4); }
/* light theme */
body.light .pw_vote_row, .theme_lite .pw_vote_row { border-top-color: #e5e7eb; }
body.light .pw_vote_up,   .theme_lite .pw_vote_up   { background: rgba(34,197,94,0.1);  color: #9ca3af; }
body.light .pw_vote_down, .theme_lite .pw_vote_down { background: rgba(239,68,68,0.1);  color: #9ca3af; }

/* Locked vote buttons */
.pw_vote_locked { opacity: 0.45; cursor: pointer; }
.pw_vote_locked:hover { opacity: 0.75; transform: none !important; }
/* Inline unlock confirmation — two line layout */
.pw_vote_row:has(.pw_vote_unlock_msg) { flex-direction: column; align-items: center; gap: 6px; padding: 7px 10px 8px; }
.pw_vote_unlock_msg { font-size: 11px; color: rgba(255,255,255,0.65); display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; }
.pw_vote_confirm_btns { display: flex; gap: 6px; }
.pw_vote_confirm_yes { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border: none; border-radius: 14px; padding: 4px 12px; font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: opacity 0.15s; }
.pw_vote_confirm_yes:hover { opacity: 0.85; }
.pw_vote_confirm_no { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); border: none; border-radius: 14px; padding: 4px 12px; font-size: 11px; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.pw_vote_confirm_no:hover { background: rgba(255,255,255,0.14); }
/* light theme */
body.light .pw_vote_unlock_msg, .theme_lite .pw_vote_unlock_msg { color: #6b7280; }
body.light .pw_vote_confirm_no, .theme_lite .pw_vote_confirm_no { background: rgba(0,0,0,0.06); color: #9ca3af; }

/* Modal vote row */
.pw_view_votes { display: flex; align-items: center; gap: 10px; padding: 10px 16px 4px; flex-wrap: wrap; }
.pw_unlock_score { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
/* responsive: stack below actions on narrow screens */
@media (max-width: 600px) {
    .pw_view_actions_wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
    .pw_view_votes { padding-top: 4px; }
}
/* light theme */
body.light .pw_unlock_score, .theme_lite .pw_unlock_score { color: #9ca3af; }

/* Free / Paid toggle */
.pw_free_paid_toggle { display: flex; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px; }
.pw_fp_btn { flex: 1; padding: 8px 0; font-size: 13px; font-weight: 600; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.15s, color 0.15s; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4); }
.pw_fp_free.pw_fp_active  { background: rgba(34,197,94,0.18); color: #22c55e; }
.pw_fp_paid.pw_fp_active  { background: rgba(249,115,22,0.18); color: #f97316; }
.pw_fp_btn:hover:not(.pw_fp_active) { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
/* light theme */
body.light .pw_free_paid_toggle, .theme_lite .pw_free_paid_toggle { border-color: #e5e7eb; }
body.light .pw_fp_btn, .theme_lite .pw_fp_btn { background: #f9fafb; color: #9ca3af; }
body.light .pw_fp_free.pw_fp_active, .theme_lite .pw_fp_free.pw_fp_active { background: rgba(34,197,94,0.1); }
body.light .pw_fp_paid.pw_fp_active, .theme_lite .pw_fp_paid.pw_fp_active { background: rgba(249,115,22,0.1); }

/* Yes/No extend toggle */
.pw_extend_toggle_row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 6px; }
.pw_extend_label { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
.pw_yes_no_toggle { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.pw_yn_btn { padding: 5px 14px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.35); transition: background 0.15s, color 0.15s; }
.pw_yn_yes.pw_yn_active { background: rgba(34,197,94,0.18); color: #22c55e; }
.pw_yn_no.pw_yn_active  { background: rgba(239,68,68,0.18);  color: #ef4444; }
.pw_yn_btn:hover:not(.pw_yn_active) { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
/* light theme */
body.light .pw_extend_label, .theme_lite .pw_extend_label { color: #6b7280; }
body.light .pw_yes_no_toggle, .theme_lite .pw_yes_no_toggle { border-color: #e5e7eb; }
body.light .pw_yn_btn, .theme_lite .pw_yn_btn { background: #f9fafb; color: #9ca3af; }

/* ── Tag hide-filter: # button state ── */
.pw_btn_tagfilter_active { color: var(--pw-accent, #f97316) !important; background: rgba(249,115,22,0.12) !important; }
.pw_notif_dot_filter { background: var(--pw-accent, #f97316); }

/* ── Hide-filter section in left panel ── */
.pw_hide_section { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; }
.pw_hide_head { display: flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 12px; color: rgba(255,255,255,0.35); cursor: pointer; transition: color 0.15s; user-select: none; }
.pw_hide_head:hover { color: rgba(255,255,255,0.6); }
.pw_hide_head i:first-child { font-size: 11px; }
.pw_hide_chevron { margin-left: auto; font-size: 10px; transition: transform 0.2s; }
.pw_hide_chevron_open { transform: rotate(180deg); }
.pw_hide_list { padding: 2px 0 6px; }
.pw_hide_row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 12px; color: rgba(255,255,255,0.55); cursor: pointer; transition: background 0.15s; }
.pw_hide_row:hover { background: rgba(255,255,255,0.04); }
.pw_hide_row input[type="checkbox"] { accent-color: var(--pw-accent, #f97316); cursor: pointer; width: 13px; height: 13px; flex-shrink: 0; }
.pw_hide_empty { padding: 10px 14px; font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── Tag filter bottom sheet (mobile) ── */
.pw_hide_sheet_hint { padding: 10px 16px 6px; font-size: 12px; color: rgba(255,255,255,0.35); }
.pw_hide_row_sheet { padding: 10px 16px; font-size: 14px; }
.pw_hide_badge { margin-left: auto; font-size: 10px; background: rgba(239,68,68,0.18); color: #f87171; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.pw_hide_clear_row { padding: 10px 16px 4px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; }
.pw_hide_clear_btn { font-size: 13px; color: var(--pw-accent, #f97316); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pw_hide_clear_btn:hover { text-decoration: underline; }

/* Light theme */
body.light .pw_hide_head, .theme_lite .pw_hide_head { color: #9ca3af; }
body.light .pw_hide_head:hover, .theme_lite .pw_hide_head:hover { color: #374151; }
body.light .pw_hide_row, .theme_lite .pw_hide_row { color: #6b7280; }
body.light .pw_hide_row:hover, .theme_lite .pw_hide_row:hover { background: rgba(0,0,0,0.03); }
body.light .pw_hide_section, .theme_lite .pw_hide_section { border-top-color: #e5e7eb; }
body.light .pw_hide_sheet_hint, .theme_lite .pw_hide_sheet_hint { color: #9ca3af; }

/* ── Group unlock ── */
.pw_btn_group_unlock { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; width: 100%; justify-content: center; padding: 12px 28px; font-size: 15px; border-radius: 10px; margin-top: 10px; }
.pw_btn_group_unlock:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
.pw_btn_gu_disabled { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.3) !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; padding: 12px 28px; font-size: 15px; border-radius: 10px; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.pw_gu_view_hint { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Group free badge on card */
.pw_group_free_badge { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(90deg, rgba(124,58,237,0.85), rgba(109,40,217,0.85)); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; display: flex; align-items: center; gap: 5px; z-index: 3; pointer-events: none; }

/* Group unlock section in upload modal */
.pw_gu_tier_row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pw_mult_toggle .pw_yn_btn { min-width: 44px; text-align: center; font-size: 13px; }
.pw_mult_toggle .pw_yn_btn.pw_yn_active { background: rgba(34,197,94,0.18); color: #22c55e; }
.pw_hour_row { display: flex; align-items: center; gap: 8px; }
.pw_hour_toggle { flex: 1; }
.pw_hour_toggle .pw_yn_btn { flex: 1; text-align: center; font-size: 12px; padding: 5px 2px; min-width: 0; }
.pw_hour_toggle .pw_yn_btn.pw_yn_active { background: rgba(34,197,94,0.18); color: #22c55e; }
.pw_tag_hint { color: rgba(255,255,255,0.35); margin-top: 2px; margin-bottom: 0; line-height: 1.6; }
body.light .pw_tag_hint, .theme_lite .pw_tag_hint { color: #9ca3af; }
.pw_gu_hint { font-size: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(124,58,237,0.12); color: #c4b5fd; line-height: 1.6; }
.pw_gu_hint strong { color: #fff; }
.pw_gu_hint em { font-style: normal; color: rgba(255,255,255,0.7); }

/* Light theme */
body.light .pw_gu_hint, .theme_lite .pw_gu_hint { background: rgba(124,58,237,0.07); color: #6d28d9; }
body.light .pw_gu_hint strong, .theme_lite .pw_gu_hint strong { color: #4c1d95; }
body.light .pw_gu_view_hint, .theme_lite .pw_gu_view_hint { color: #9ca3af; }

/* ── Vote row: owner view (display only, slightly dimmed) ── */
.pw_vote_own { opacity: 0.5; cursor: default; pointer-events: none; }

/* ── Username default color — only when no CodyChat color class present ── */
/* Color is set via pw_name_default class added in JS only when user_color = 'user' */
.pw_name_default { color: #fff !important; }
body.light .pw_name_default, .theme_lite .pw_name_default { color: #111 !important; }

/* ── Group unlock badge in stats list ── */
.pw_group_unlock_badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #c4b5fd; background: rgba(124,58,237,0.18); border-radius: 10px; padding: 2px 8px; margin-top: 2px; }
.pw_group_unlock_badge i { font-size: 10px; }

/* ── Extend time badge in stats list ── */
.pw_extend_time_badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #fbbf24; background: rgba(245,158,11,0.18); border-radius: 10px; padding: 2px 8px; margin-top: 2px; }
.pw_extend_time_badge i { font-size: 10px; }

/* ── Timer + extend badge on card ── */
.pw_timer_extend_badge { margin-left: 5px; font-size: 10px; font-weight: 800; background: rgba(245,158,11,0.85); color: #fff; border-radius: 50%; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; transition: background 0.15s; }
.pw_card_timer:hover .pw_timer_extend_badge { background: #f59e0b; }

/* ── Gold display clickable ── */
.pw_gold_display { cursor: pointer; border-radius: 8px; padding: 3px 7px; transition: background 0.15s; }
.pw_gold_display:hover { background: rgba(255,255,255,0.08); }

/* Gold blink animation (low gold warning) */
@keyframes pw_gold_pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.18); }
}
.pw_gold_blink { animation: pw_gold_pulse 0.8s ease-in-out infinite; }

/* Gold modal body */
.pw_gold_modal_body { text-align: center; padding: 24px 20px 20px; }
.pw_gold_modal_icon img { width: 52px; height: 52px; margin-bottom: 14px; animation: pw_pulse 2s infinite; }
.pw_gold_modal_msg { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; }
.pw_gold_modal_msg strong { color: #fff; font-size: 15px; display: block; margin-bottom: 4px; }
.pw_btn_gold_buy { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; width: 100%; justify-content: center; padding: 12px; font-size: 15px; border-radius: 10px; margin-bottom: 12px; }
.pw_btn_gold_buy:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.pw_gold_modal_hint { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.6; margin: 0; }

/* Light theme */
body.light .pw_gold_modal_msg, .theme_lite .pw_gold_modal_msg { color: #374151; }
body.light .pw_gold_modal_msg strong, .theme_lite .pw_gold_modal_msg strong { color: #111; }
body.light .pw_gold_modal_hint, .theme_lite .pw_gold_modal_hint { color: #9ca3af; }

/* ── Share button on card ── */
.pw_share_btn { margin-left: auto; color: rgba(255,255,255,0.35); }
.pw_share_btn:hover { color: #6366f1; background: rgba(99,102,241,0.12); }
.pw_share_done { color: #6366f1 !important; }

/* ── Share confirm modal ── */
.pw_share_modal_body { text-align: center; padding: 20px 20px 20px; }
.pw_share_modal_icon { font-size: 36px; color: #6366f1; margin-bottom: 14px; }
.pw_share_modal_msg { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 18px; }
.pw_share_modal_msg strong { color: #fff; }
.pw_btn_share_confirm { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; width: 100%; justify-content: center; padding: 11px; font-size: 14px; border-radius: 10px; margin-bottom: 10px; }
.pw_btn_share_confirm:hover { background: linear-gradient(135deg, #818cf8, #a78bfa); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.3); }
.pw_share_balance_hint { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.5; }
.pw_share_balance_hint strong { color: rgba(255,255,255,0.6); }

/* ── Chat card (rendered inside boom_chat messages) ── */
.pw_chat_card { display: flex; align-items: center; gap: 10px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); border-radius: 10px; padding: 8px 10px; margin-top: 4px; transition: background 0.15s; max-width: 320px; }
.pw_chat_card:hover { background: rgba(99,102,241,0.18); }
.pw_chat_thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pw_chat_card_info { flex: 1; min-width: 0; }
.pw_chat_card_title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw_chat_card_meta { font-size: 11px; opacity: 0.55; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.pw_share_price_badge { color: #fbbf24; font-weight: 600; }
.pw_share_free_badge { color: #22c55e; font-weight: 600; }

/* light theme */
body.light .pw_share_modal_msg, .theme_lite .pw_share_modal_msg { color: #374151; }
body.light .pw_share_modal_msg strong, .theme_lite .pw_share_modal_msg strong { color: #111; }
body.light .pw_share_balance_hint, .theme_lite .pw_share_balance_hint { color: #9ca3af; }
body.light .pw_chat_card, .theme_lite .pw_chat_card { background: rgba(99,102,241,0.07); border-color: rgba(99,102,241,0.2); }

/* ── Post-unlock rate overlay ── */
.pw_reveal_wrap { display: flex; flex-direction: column; }
.pw_reveal_img_wrap { position: relative; overflow: hidden; background: #000; border-radius: 14px 14px 0 0; }
.pw_reveal_img { width: 100%; display: block; max-height: 55vh; object-fit: contain; border-radius: 14px 14px 0 0; }

.pw_rate_overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: auto;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 20px;
    opacity: 0; transition: opacity 0.35s ease;
    border-radius: 0;
}
.pw_rate_overlay.pw_rate_overlay_in  { opacity: 1; }
.pw_rate_overlay.pw_rate_overlay_out { opacity: 0; pointer-events: none; }

.pw_rate_inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 18px 20px 4px; text-align: center;
    animation: pw_rate_pop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
    width: 100%;
}
@keyframes pw_rate_pop {
    from { transform: scale(0.82); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.pw_rate_title {
    font-size: 18px; font-weight: 800; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}
.pw_rate_title i { color: #fbbf24; margin-right: 6px; }

.pw_rate_subtitle {
    font-size: 12px; color: rgba(255,255,255,0.8);
    margin-top: -6px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.pw_rate_buttons { display: flex; gap: 16px; margin-top: 4px; }

.pw_rate_btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 28px; border-radius: 14px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    min-width: 110px;
}
.pw_rate_btn i { font-size: 28px; }
.pw_rate_btn span { font-size: 13px; font-weight: 700; }

.pw_rate_up   { background: rgba(34,197,94,0.75); color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.4); backdrop-filter: blur(6px); border: 1px solid rgba(34,197,94,0.6); }
.pw_rate_down { background: rgba(239,68,68,0.75); color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.4); backdrop-filter: blur(6px); border: 1px solid rgba(239,68,68,0.6); }
.pw_rate_up:hover   { background: rgba(34,197,94,0.92); }
.pw_rate_down:hover { background: rgba(239,68,68,0.92); }

.pw_rate_btn:hover   { transform: translateY(-3px) scale(1.04); }
.pw_rate_btn:active  { transform: scale(0.97); }
.pw_rate_btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.pw_rate_voted { transform: scale(1.08) !important; box-shadow: 0 6px 24px rgba(255,255,255,0.2) !important; }

.pw_rate_skip {
    font-size: 12px; color: rgba(255,255,255,0.6); cursor: pointer;
    padding: 4px 10px; border-radius: 20px; transition: color 0.15s;
    display: flex; align-items: center; gap: 5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.pw_rate_skip:hover { color: #fff; }

.pw_rate_thankyou {
    font-size: 18px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 8px;
    animation: pw_rate_pop 0.3s ease both;
}
.pw_rate_thankyou i { color: #f43f5e; }

@media (max-width: 480px) {
    .pw_rate_btn { padding: 14px 18px; min-width: 90px; }
    .pw_rate_btn i { font-size: 22px; }
    .pw_rate_title { font-size: 17px; }
}

/* ── Deleted / unavailable pic modal state ── */
.pw_deleted_wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 30px; text-align: center; gap: 14px; min-height: 260px; }
.pw_deleted_icon { font-size: 52px; color: rgba(255,255,255,0.15); line-height: 1; }
.pw_deleted_title { font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.75); }
.pw_deleted_msg { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 280px; }
body.light .pw_deleted_title, .theme_lite .pw_deleted_title { color: #374151; }
body.light .pw_deleted_msg,  .theme_lite .pw_deleted_msg  { color: #9ca3af; }
body.light .pw_deleted_icon, .theme_lite .pw_deleted_icon { color: #d1d5db; }

/* ── Share warning hint in upload modal ── */
.pw_hint_share_warn { background: rgba(249,115,22,0.1); color: #fb923c; }
body.light .pw_hint_share_warn, .theme_lite .pw_hint_share_warn { background: rgba(249,115,22,0.08); color: #ea580c; }

/* ── Owner locked badge — clickable for preview ── */
.pw_owner_locked_clickable { cursor: pointer; transition: background 0.2s; pointer-events: all; }
.pw_owner_locked_clickable:hover { background: rgba(99,102,241,0.55) !important; }
.pw_preview_hint { margin-left: 8px; font-size: 10px; opacity: 0.8; white-space: nowrap; color: #fbbf24; animation: pw_preview_blink 1.4s ease-in-out infinite; }
.pw_owner_locked_clickable:hover .pw_preview_hint { opacity: 1; animation: none; color: #fff; }
@keyframes pw_preview_blink { 0%,100% { opacity: 0.8; color: #fbbf24; } 50% { opacity: 0.35; color: #f97316; } }

/* ── Active preview badge ── */
.pw_preview_active_badge { background: linear-gradient(90deg, rgba(34,197,94,0.75), rgba(16,163,74,0.75)) !important; backdrop-filter: blur(4px); animation: pw_pulse 2s infinite; }

/* ── Preview modal intro text ── */
.pw_preview_modal_intro { padding: 12px 16px 8px; font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.pw_preview_modal_intro i { color: #22c55e; }

/* ── Free tag in preview tier rows ── */
.pw_preview_free_tag { font-size: 11px; font-weight: 700; color: #22c55e; background: rgba(34,197,94,0.15); border-radius: 10px; padding: 2px 10px; }

/* ── Two-line owner locked badge (clickable only) ── */
.pw_owner_locked_clickable { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
.pw_locked_line1 { display: flex; align-items: center; gap: 5px; }
.pw_locked_line2 { display: flex; align-items: center; }

/* ── Viewer-side preview badge (teal — signals normally paid content) ── */
.pw_viewer_preview_badge { background: linear-gradient(90deg, rgba(6,182,212,0.75), rgba(14,165,233,0.75)) !important; backdrop-filter: blur(4px); color: #fff !important; animation: pw_pulse 2s infinite; pointer-events: none; }

/* ── Two-row time grid in upload modal ── */
.pw_hour_grid { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pw_hour_grid .pw_hour_toggle { width: 100%; }
.pw_hour_grid .pw_yn_btn { flex: 1; }

/* ── Auto-preview info hint ── */
.pw_hint_preview_info { background: rgba(6,182,212,0.1); color: #22d3ee; }
body.light .pw_hint_preview_info, .theme_lite .pw_hint_preview_info { background: rgba(6,182,212,0.08); color: #0891b2; }

/* ── FAQ button ── */
.pw_btn_faq { font-size: 14px; font-weight: 700; }

/* ── FAQ modal ── */
.pw_faq_box { max-width: 540px; max-height: 80vh; display: flex; flex-direction: column; }
.pw_faq_body { overflow-y: auto; padding: 8px 0 12px; }

/* Section (category) */
.pw_faq_section { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pw_faq_section:last-child { border-bottom: none; }
.pw_faq_cat { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; cursor: pointer; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.75); user-select: none; transition: background 0.15s; gap: 8px; }
.pw_faq_cat:hover { background: rgba(255,255,255,0.04); }
.pw_faq_chev { font-size: 11px; opacity: 0.5; transition: transform 0.2s; flex-shrink: 0; }
.pw_faq_chev.pw_faq_chev_open { transform: rotate(180deg); opacity: 1; }
.pw_faq_items { display: none; }

/* Q&A rows */
.pw_faq_item { border-top: 1px solid rgba(255,255,255,0.04); }
.pw_faq_q { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 18px 10px 28px; cursor: pointer; font-size: 12.5px; color: rgba(255,255,255,0.6); transition: color 0.15s, background 0.15s; gap: 10px; user-select: none; }
.pw_faq_q:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.03); }
.pw_faq_q.pw_faq_q_open { color: #a78bfa; }
.pw_faq_chev_item { font-size: 10px; opacity: 0.4; transition: transform 0.2s; flex-shrink: 0; margin-top: 2px; }
.pw_faq_chev_item.pw_faq_chev_item_open { transform: rotate(90deg); opacity: 1; color: #a78bfa; }
.pw_faq_a { display: none; padding: 0 18px 12px 28px; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.pw_faq_a i { color: rgba(255,255,255,0.7); }
.pw_faq_a strong { color: rgba(255,255,255,0.8); }

/* Light theme */
body.light .pw_faq_cat, .theme_lite .pw_faq_cat { color: #374151; }
body.light .pw_faq_cat:hover, .theme_lite .pw_faq_cat:hover { background: #f9fafb; }
body.light .pw_faq_q, .theme_lite .pw_faq_q { color: #6b7280; }
body.light .pw_faq_q:hover, .theme_lite .pw_faq_q:hover { color: #111; background: #f9fafb; }
body.light .pw_faq_q.pw_faq_q_open, .theme_lite .pw_faq_q.pw_faq_q_open { color: #7c3aed; }
body.light .pw_faq_a, .theme_lite .pw_faq_a { color: #6b7280; }
body.light .pw_faq_section, .theme_lite .pw_faq_section { border-color: #e5e7eb; }
body.light .pw_faq_item, .theme_lite .pw_faq_item { border-color: #f3f4f6; }
