/*
* [모듈명]: 스켈레톤 UI 스타일
* [파일명]: skeleton.css
* [역할]: 데이터 로딩 전 피드 항목의 형태를 미리 보여줍니다.
*/
/* [수석 아키텍트]: 해싱 충돌 방지를 위해 @import 제거. index.html에서 직접 로드합니다. */


.skeleton-item {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
}

.skeleton-name {
    width: 80px;
    height: 14px;
    background: #1a1a1a;
}

.skeleton-title {
    width: 70%;
    height: 18px;
    background: #1a1a1a;
    margin-bottom: 10px;
}

.skeleton-content {
    width: 90%;
    height: 14px;
    background: #1a1a1a;
    margin-bottom: 5px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 5; /* 실제 이미지와 동일한 비율 적용 */
    background: #1a1a1a;
    border-radius: 12px;
    margin: 15px 0;
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

:root {
    /* [포인트 컬러]: 다크 테마에 맞춘 반전 색상 */
    --point-color: #FFFFFF;
    --bg-white: #000000;
    --bg-black: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --border-color: #222222;

    /* 안전 영역 처리 (사파리 등 모바일 대응) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    /* [수석 아키텍트]: contain으로 브라우저 바운스를 억제하되 PullToRefresh 커스텀 동작은 유지 */
    overscroll-behavior-y: contain; 
    width: 100%;
    min-height: 100.1dvh; /* [수석 아키텍트]: 미세한 스크롤 여유를 주어 Pull-to-Refresh 트리거 확률 향상 */

    /* [수석 아키텍트]: 네이티브 앱 감성을 위해 텍스트 선택 및 시스템 팝업 방지 */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* [수석 아키텍트]: 입력이 필요한 영역은 예외적으로 텍스트 선택 및 입력 허용 */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

/* [사파리 호환] 100dvh 대응 컨테이너 */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
}

.rotating {
    animation: rotate 1s linear infinite;
    display: inline-block;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* [수석 아키텍트]: 인라인 SVG 스피너 전용 애니메이션 */
.spinner-svg circle {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinner-dash {
    0% { stroke-dashoffset: 60; transform: rotate(0deg); }
    50% { stroke-dashoffset: 20; transform: rotate(180deg); }
    100% { stroke-dashoffset: 60; transform: rotate(360deg); }
}

/* [수석 아키텍트]: 상단 헤더 컨테이너 (로고 + 섹터 탭 및 일반 페이지용) */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85); /* 약간 더 불투명하게 조정 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000; /* 드로어 보다는 낮게, 메인보다는 높게 */
    padding-top: var(--safe-top);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* [수석 아키텍트]: 뒤로가기 버튼 표준화 스타일 */
.btn-back {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    margin-left: -10px; /* 클릭 영역 확보를 위한 마이너스 마진 */
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-back .material-icons {
    font-size: 18px; /* 통일된 아이콘 크기 */
    font-weight: 800;
}

/* 첫 줄: 로고 및 아이콘 */
.header-top {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-left,
.header-right {
    min-width: 80px;
    /* 양쪽 최소 여백 확보로 절대 중앙 정렬 유지 (텍스트 짤림 방지) */
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    text-align: center;
    flex: 1;
    /* 남은 공간을 로고가 차지하여 중앙 강제 위치 */
}

/* 상단 헤더: 로그인 텍스트 버튼 */
.btn-login-txt {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.btn-login-txt:active {
    color: var(--text-primary);
}

/* [수석 아키텍트]: 헤더 드로어 버튼 스타일 */
.btn-open-drawer {
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-left: -8px;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-open-drawer:active {
    opacity: 0.5;
}

.btn-open-drawer .material-icons {
    font-size: 24px;
}

/* 상단 헤더: 로그인 시 아바타 + 닉네임 */
.user-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 0; /* [수석 아키텍트]: 좌측 패딩 제거하여 16px 라인에 밀착 */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #111111;
    border: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; /* [수석 아키텍트]: 내부 이미지 절대 위치 기준 */
}

.header-avatar svg {
    width: 14px;
    height: 14px;
}

.header-nickname {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 헤더 우측 아이콘 버튼 */
.header-icon-btn {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: -8px; /* 패딩으로 인한 여백 조정 */
    transition: opacity 0.2s;
}

.header-icon-btn:active {
    opacity: 0.5;
}

.header-icon-btn .material-icons {
    font-size: 26px;
}

/* 두 번째 줄: 섹션 탭 (피드/시그널) */
.sector-nav {
    display: flex;
    height: 44px;
}

.sector-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.sector-tab.active {
    color: var(--text-primary);
}

/* 활성 탭 하단 인디케이터 (화이트 테마) */
.sector-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* 부모의 border-bottom을 살짝 덮어 자연스럽게 */
    left: 0;
    right: 0;
    height: 2px;
    background-color: #FFFFFF;
}

/* 메인 콘텐츠 영역 */
.main-content {
    flex: 1;
    /* app-header의 높이(50+44) + safe-top을 고려하여 패딩 설정 */
    padding-top: calc(94px + var(--safe-top));
    padding-bottom: calc(60px + var(--safe-bottom));
}

/* [수석 아키텍트]: 앱 환경 접속 시(isApp=true) 전역 UI 최적화 */
html.is-app:not(.show-nav) .app-navbar,
body.is-app:not(.show-nav) .app-navbar {
    display: none !important;
}

html.is-app:not(.show-nav) .main-content,
body.is-app:not(.show-nav) .main-content {
    padding-bottom: var(--safe-bottom) !important;
}

/* [수석 아키텍트]: 하단 네비게이션 바 (홈 바 대응 및 아이콘 정렬 최적화) */
.app-navbar {
    position: fixed;
    bottom: 0px; /* [강제]: 0px로 바닥 밀착 보정 */
    left: 0;
    right: 0;
    /* [중요]: 높이에 세이프 에어리어를 포함하되, 패딩으로 아이콘 위치를 조절합니다. */
    height: calc(60px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center; /* [수정]: flex-start에서 center로 변경하여 아이콘 정렬 개선 */
    padding-top: 0; /* 기존 8px 제거 */
    border-top: 1px solid var(--border-color);
    z-index: 11000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative; /* 배지 위치 기준 */
}

.nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: #FFFFFF;
}

.nav-item.active .material-icons {
    color: #FFFFFF;
}

/* 하단 네비게이션 배지 (블루 포인트) */
.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 14px);
    background-color: #007AFF; /* 레드에서 블루로 변경 */
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #000000;
    z-index: 10;
    pointer-events: none;
}

/* [NEW] 하단 네비게이션 알림 점 (블루 포인트) */
.nav-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 12px);
    width: 8px;
    height: 8px;
    background-color: #007AFF;
    border-radius: 50%;
    border: 1.5px solid #000000;
    z-index: 11;
    display: none; /* JS에서 제어 */
    pointer-events: none;
}

/* [NEW] 피드용 크레딧 배지 (정사각형/직사각형 스타일) */
.feed-credit-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.feed-credit-badge:active {
    background-color: #222222;
    transform: scale(0.95);
}

.feed-credit-badge .lightning {
    font-size: 10px;
    color: #FFFFFF;
}

.feed-credit-badge .price {
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
}

/* [NEW] 피드용 입장자 카운터 배지 (스택 아바타) */
.feed-entry-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 20px; /* pill 스타일 */
    padding: 4px 10px 4px 12px;
    height: 28px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.stack-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #000;
}

.entry-count {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

.feed-credit-badge.busy {
    border-color: #FFD700;
}

.feed-credit-badge.busy .price {
    color: #FFD700;
}

/* 유틸리티 */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* [NEW] 전역 강조 태그 스타일 */
.talae-tag {
    color: #007AFF !important;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.talae-tag:active {
    opacity: 0.6;
}

/* [수석 아키텍트]: 링크가 없는 알림 항목 스타일 */
.resting-btn .lightning,
.resting-btn .bolt-p,
.resting-btn .material-icons {
    display: none !important;
}
.activity-item.no-link {
    cursor: default !important;
}
.activity-item.no-link:hover {
    background: transparent !important;
}
.activity-item.no-link:active {
    background: transparent !important;
}/* 
* [파일명]: home_v2.css
* [역할]: 타래(talae) 홈페이지 V2 전용 카드 스타일 (Gold Theme & Refined Layout)
*/

:root {
    --talae-gold: #D4AF37;
    --talae-gold-dark: #B8860B;
    --card-bg: #0A0A0A;
    --card-border: #1A1A1A;
}

.home-v2-page {
    background-color: #000;
}

.feed-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* [1] 프로필 카드 레이아웃 (Grid/Flex Mixed) */
.v2-profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px; /* [수석 아키텍트]: 12px 플랫 디자인 통일 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.card-main {
    display: grid;
    grid-template-columns: 100px 1fr; /* 좌(아바타), 우(정보/버튼 통합) */
    padding: 16px;
    gap: 12px;
    position: relative;
    align-items: start;
}

/* --- 좌측: 아바타 및 태그 --- */
.card-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100px; /* 고정폭 유지 */
}

.card-photo-wrapper {
    width: 100px;
    aspect-ratio: 100 / 120; /* [CLS 최적화]: 높이 120px 고정 대신 비율로 공간 선확보 */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #111;
    cursor: pointer;
}

.card-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-partner {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: -0.2px;
}

.card-tags {
    display: flex;
    flex-direction: row; /* 수평 정렬 */
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    gap: 4px;
    justify-content: flex-start;
    margin: 0;
}

.tag-item {
    font-size: 10px;
    font-weight: 700;
    color: #AAAAAA; /* 세련된 그레이 */
    background: #111111; /* 다크 무채색 배경 */
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* --- 중앙: 닉네임 및 자기소개 --- */
.card-center {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* 텍스트 생략 보장 */
}

.info-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.info-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.info-temp {
    font-size: 11px;
    font-weight: 700;
    color: #FF4D4D; /* 온도 느낌의 붉은 계열 */
    background: rgba(255, 77, 77, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.info-intro {
    font-size: 13px;
    color: #AAA; /* [접근성 보정]: #888 -> #AAA */
    line-height: 1.45;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0; /* 여백 완전 제거 */
    width: 100%;
}

/* --- 우측: 가격 및 버튼 --- */
.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
}

.info-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price-symbol {
    color: var(--talae-gold);
    font-size: 14px;
    font-weight: 700;
}

.price-value {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.btn-lounge-v2 {
    background: var(--talae-gold);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 4px; /* 알약에서 직사각형으로 변경 */
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center; /* 중앙 정렬 */
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    width: 100%; /* 여백 없이 길게 */
    margin-top: 12px;
}

/* --- 팔로우 (하트) 배지 --- */
.card-like-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.card-like-badge:active {
    transform: scale(0.8);
}

.heart-icon {
    font-size: 22px; /* [수석 아키텍트]: 숫자 제거로 인해 아이콘 크기를 약간 키워 시인성 확보 */
    color: rgba(255, 255, 255, 0.2); /* 평소엔 은은하게 표시 */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-icon.liked {
    color: #FF4D4D; /* 팔로우 시 강렬한 레드 */
    animation: heartBeat 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.4));
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.btn-lounge-v2:active {
    transform: scale(0.95);
    background: var(--talae-gold-dark);
}

/* [7] 에이전트 상태별 확장 스타일 */
.info-name-wrapper {
    position: relative;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
}

.status-dot.active { 
    background: #4CAF50; 
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: statusPulse 2s infinite;
}
.status-dot.busy { background: #FFD700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
.status-dot.rest { background: #FF5252; opacity: 0.8; }

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* 버튼 상태 분기 */
.btn-lounge-v2.status-rest {
    background: #1A1A1A !important;
    color: #555 !important;
    border: 1px solid #222;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-lounge-v2.status-busy {
    background: rgba(212, 175, 55, 0.05) !important;
    color: var(--talae-gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: none;
}

.btn-lounge-v2.status-busy .material-icons {
    color: var(--talae-gold);
}

/* [2] 하단 인터랙션 영역 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #151515;
    gap: 16px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.stat-label {
    color: #ffd74a; /* [접근성 보정]: 고대비 색상 적용 */
    font-weight: 900;
    font-size: 11px; /* 10px에서 11px로 상향 */
    letter-spacing: 0.5px;
}

.material-icons.gold {
    color: var(--talae-gold);
    font-size: 16px;
}

.stat-value {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.arrow-toggle {
    font-size: 16px;
    color: #444;
    transition: transform 0.3s;
}

.v2-profile-card.expanded .arrow-toggle {
    transform: rotate(180deg);
}

/* [3] 리뷰 확장 섹션 */
.review-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #080808;
}

.v2-profile-card.expanded .review-section {
    max-height: 600px;
    border-top: 1px solid #151515;
}

.review-list {
    padding: 8px 16px 16px;
}

.review-item {
    padding: 12px 0;
    border-bottom: 1px solid #111;
}

.review-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--talae-gold);
    margin-bottom: 4px;
    display: block;
}

.review-content {
    font-size: 13px;
    color: #AAA;
    line-height: 1.5;
}

.btn-view-more-reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    gap: 4px;
    cursor: pointer;
}

/* 스켈레톤 */
.skeleton-card {
    height: 152px; /* [CLS 최적화]: 실제 카드 최소 높이와 동기화 */
    background: #0A0A0A;
    border-radius: 12px; /* [수석 아키텍트]: 카드와 동일한 라운딩 */
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}
/* [4] 홈 화면 상단 검색바 통합 */
.home-search-container {
    padding: 0 16px 12px;
    background: #000;
    position: sticky;
    top: 50px;
    z-index: 100;
    margin-top: -1px; /* 헤더와의 미세 틈 방지 */
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: #111;
    border-radius: 12px;
    padding: 8px 14px;
    gap: 10px;
    border: 1px solid #1A1A1A;
    transition: all 0.2s;
}

.search-bar-wrapper:focus-within {
    border-color: var(--talae-gold);
    background: #151515;
}

.search-icon {
    color: #777; /* [접근성 보정]: #444에서 #777로 보강 */
    font-size: 18px;
}

#home-search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
    padding: 2px 0;
}

#home-search-input::placeholder {
    color: #777; /* [접근성 보정]: #444에서 #777로 보강 */
}

/* [5] 헤더 상단 크레딧 배지 스타일 */
.header-credit-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.header-credit-wrapper:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

/* [6] 메인 푸터 (사업자 정보 - 아코디언) */
.main-footer {
    padding: 30px 20px 100px;
    background-color: #000;
    color: #555;
    font-size: 11px;
    line-height: 1.8;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    cursor: pointer;
}

.footer-company {
    font-size: 16px;
    font-weight: 800;
    color: #AAA; /* [접근성 보정]: #888 -> #AAA */
    letter-spacing: -0.5px;
}

.footer-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.footer-toggle-btn .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* 접기/펴기 상태 제어 */
.footer-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.footer-body.expanded {
    max-height: 300px; /* 충분한 높이 */
    opacity: 1;
    margin-bottom: 20px;
}

.main-footer.collapsed .footer-toggle-btn .material-icons {
    transform: rotate(-180deg);
}

.footer-info-item {
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.footer-copyright {
    margin-top: 16px;
    color: #444;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    border-top: 1px solid #111;
    padding-top: 15px;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.footer-links a:active {
    color: var(--talae-gold);
}
/*
* [모듈명]: 상단 토스트 알림 스타일
* [파일명]: toast.css
* [역할]: 사용자 흐름을 방해하지 않는 상단 팝업 알림 스타일 정의
*/

#toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: env(safe-area-inset-top, 20px);
    pointer-events: none;
}

.toast {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
    border: 1px solid #333;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #000;
    border-color: #ff3b30;
    color: #ff3b30;
}
/* 새글 작성 모달 오버레이 */
.create-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* 하단에서 올라오는 애니메이션 적용을 위함 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.create-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 모달 본체 (Bottom Sheet 형태) */
.create-modal-content {
    background: #111111;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    min-height: 85dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.create-modal-overlay.open .create-modal-content {
    transform: translateY(0);
}

/* [수석 아키텍트]: 키보드가 올라왔을 때 상단 정렬로 강제 전환 */
.create-modal-overlay.open .create-modal-content.keyboard-up {
    justify-content: flex-start;
    min-height: 100dvh;
    border-radius: 0;
}

.create-modal-content.keyboard-up .create-body {
    padding-bottom: 80px; /* 푸터 높이만큼 여백 확보 */
}

/* 모달 헤더 */
.create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #222222;
}

.create-close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 0;
}

.create-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.create-submit-btn {
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 4px; /* 알약 모양 제거 */
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.create-submit-btn:active {
    transform: scale(0.95);
}

/* 작성 폼 영역 */
.create-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.create-input-title {
    width: 100%;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    padding: 8px 0;
}

.create-input-title::placeholder {
    color: #555555;
}

.create-input-content {
    width: 100%;
    flex: 1;
    background: transparent;
    border: none;
    color: #DDDDDD;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    resize: none;
    padding: 8px 0;
}

.create-input-content::placeholder {
    color: #444444;
}/*
* [모듈명]: 사이드 드로어 스타일
* [파일명]: drawer.css
* [역할]: 앱 좌측에서 슬라이드되는 메뉴의 애니메이션과 레이아웃을 정의합니다.
*/

:root {
	--drawer-width: 280px;
	--drawer-bg: #000000;
	--overlay-bg: rgba(0, 0, 0, 0.7);
	--menu-text: #FFFFFF;
	--menu-sub-text: #666666;
	--divider-color: #222222;
}

/* [수석 아키텍트]: 일시적 숨김 처리를 위한 클래스 */
.hidden-for-now {
	display: none !important;
}

/* 오버레이 (딤머) */
.drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--overlay-bg);
	backdrop-filter: blur(2px);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	will-change: opacity; /* 사파리 가속 유도 */
}

.drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 사이드 드로어 본체 */
.side-drawer {
	position: fixed;
	top: 0;
	left: calc(-1 * var(--drawer-width));
	width: var(--drawer-width);
	height: 100%;
	background: var(--drawer-bg);
	z-index: 1001;
	display: flex;
	flex-direction: column;
	padding: calc(20px + env(safe-area-inset-top)) 0 calc(80px + env(safe-area-inset-bottom)) 0; /* [수석 아키텍트]: 상단 노치 및 하단 내비바(80px) 영역 확보 */
	box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-right: 1px solid var(--divider-color);
	will-change: transform; /* 사파리 가속 유도 */
	transform: translateZ(0); /* 사파리 렌더링 깜빡임 방지 */
	
	/* [수석 아키텍트]: 스크롤 체이닝 방지 (메뉴 스크롤이 끝에 도달해도 배경으로 전달 안 함) */
	overscroll-behavior: contain;
}

.side-drawer.active {
	transform: translateX(var(--drawer-width));
}

/* 헤더: 프로필 요약 */
.drawer-header {
	padding: 0 20px 20px 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.user-profile-brief {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drawer-avatar {
	width: 48px;
	height: 48px;
	background: #1A1A1A;
	border-radius: 50%;
	overflow: hidden; /* [수석 아키텍트]: 이미지가 원형 밖으로 나가지 않도록 클리핑 */
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #333;
}

.drawer-avatar svg {
	width: 32px;
	height: 32px;
}

.user-info .nickname {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
}

.user-info .user-handle {
	font-size: 13px;
	color: var(--menu-sub-text);
	margin: 2px 0 0 0;
}

.btn-close-drawer {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
}

/* 사용자 통계 */
.drawer-stats {
	display: flex;
	gap: 16px;
	padding: 0 20px 20px 20px;
}

.stat-item {
	font-size: 14px;
	display: flex;
	gap: 4px;
}

.stat-item .count {
	font-weight: 800;
	color: #fff;
}

.stat-item .label {
	color: var(--menu-sub-text);
}

/* 메뉴 리스트 */
.drawer-menu {
	flex: 1;
	overflow-y: auto;
	padding: 10px 0 20px 0;
	-webkit-overflow-scrolling: touch; /* [수석 아키텍트]: iOS 부드러운 스크롤 */
	overscroll-behavior: contain; /* [수석 아키텍트]: 메뉴 내부 스크롤 격리 */
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	text-decoration: none;
	color: var(--menu-text);
	transition: background 0.2s;
}

.menu-item:active {
	background: #111;
}

.menu-item .material-icons {
	font-size: 24px;
}

.menu-item .text {
	font-size: 16px;
	font-weight: 700;
	flex: 1;
}

.badge {
	background: #00B0FF;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 2px; /* 아주 작은 뱃지는 모서리 곡률 2px로 적용 */
}

.balance-badge {
	font-size: 13px;
	font-weight: 800;
	color: #FFF;
	background: #1A1A1A;
	padding: 4px 10px;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
}

.menu-divider {
	height: 1px;
	background: var(--divider-color);
	margin: 10px 20px;
}

/* 시그널 탭 설정 섹션 */
.drawer-settings-section {
	padding: 10px 20px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 20px; /* 기존 16px에서 20px로 확장 */
	border-bottom: 1px solid var(--divider-color);
	margin-bottom: 10px;
}

.settings-title {
	font-size: 12px;
	font-weight: 800;
	color: var(--menu-sub-text);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.settings-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.settings-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--menu-text);
}

.settings-desc {
	font-size: 11px;
	color: var(--menu-sub-text);
	margin-top: 4px;
	line-height: 1.4;
}

/* 버튼 그룹 (On/Off) - 레퍼런스 이미지 기반 플랫 디자인 */
.settings-btn-group {
	display: flex;
	background: #151515;
	border: 1px solid #222;
	border-radius: 4px;
	padding: 2px;
	width: 100px; /* 고정폭으로 균형 유지 */
}

.settings-btn {
	flex: 1;
	padding: 5px 0;
	font-size: 11px;
	font-weight: 800;
	border: none;
	background: none;
	color: #444; /* 비활성 상태 텍스트 */
	cursor: pointer;
	border-radius: 2px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.settings-btn.active {
	background: #333; /* 활성 상태 배경 */
	color: #FFF; /* 활성 상태 텍스트 */
}

/* 수정 버튼 스타일 - 미니멀 블랙 */
.btn-edit-small {
	background: #1A1A1A;
	color: #FFF;
	border: 1px solid #333;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	margin-left: 10px;
	transition: background 0.2s;
}

.btn-edit-small:active {
	background: #222;
}

/* 바텀시트 시스템 */
.bottom-sheet-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.bottom-sheet-overlay.active {
	opacity: 1;
	visibility: visible;
}

.bottom-sheet {
	position: fixed;
	bottom: -100%;
	left: 0;
	width: 100%;
	background: #000;
	border-top: 1px solid #1A1A1A;
	border-radius: 16px 16px 0 0;
	z-index: 2001;
	padding: 20px;
	transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet.active {
	bottom: calc(60px + var(--safe-bottom));
}

.sheet-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.sheet-title {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.btn-close-sheet {
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
}

.sheet-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.input-label {
	font-size: 13px;
	font-weight: 700;
	color: #888;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	background: #111;
	border: 1px solid #222;
	border-radius: 12px;
	padding: 0 16px;
}

.input-field {
	width: 100%;
	height: 54px;
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	outline: none;
}

.input-suffix {
	color: #666;
	font-size: 14px;
	font-weight: 700;
	margin-left: 8px;
}

.btn-save-sheet {
	width: 100%;
	height: 56px;
	background: #fff;
	color: #000;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	margin-top: 10px;
	cursor: pointer;
}

.btn-save-sheet:active {
	transform: scale(0.98);
}

.logout {
	color: #FF4040;
}

/* 터치 제어: 배경 스크롤 방지 (HTML + Body 이중 레이어 잠금) */
html.drawer-open,
body.drawer-open {
	overflow: hidden !important;
	height: 100dvh;
	touch-action: none;
	-webkit-overflow-scrolling: none;
	overscroll-behavior: none;
}

/* 드로어 내부 요소는 터치 액션 허용 (스크롤 가능 영역) */
.side-drawer, .side-drawer * {
	touch-action: auto !important;
}/*
* [모듈명]: 스크롤 연동 UI 애니메이션 스타일
* [파일명]: scroll.css
* [역할]: 상단 헤더와 하단 네비게이션 바의 부드러운 내비게이션 숨김/노출 애니메이션을 정의합니다.
*/

/* 1. 상단 헤더 숨김 애니메이션 */
.app-header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.header-hidden {
    transform: translateY(-100%) !important;
}

/* 2. 하단 네비게이션 숨김 애니메이션 */
.app-navbar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.navbar-hidden {
    transform: translateY(100%) !important;
}

/* [사파리 대응]: 스크롤 시 레이아웃 흔들림 방지 */
body.scrolling {
    pointer-events: none; /* 스크롤 가속 중 클릭 미동작 (선택사항) */
}
/*
* [모듈명]: PWA 가이드 스타일
* [파일명]: pwa.css
* [역할]: iOS 및 안드로이드 사용자를 위한 홈 화면 추가 가이드 UI를 정의합니다.
* [디자인]: Black & White, 미니멀리즘 플랫 디자인
*/

.pwa-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* JS에서 제어 */
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pwa-guide-overlay.active {
    display: flex;
}

.pwa-guide-sheet {
    width: 100%;
    background: #111;
    border-top: 1px solid #333;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 20px 48px 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-guide-overlay.active .pwa-guide-sheet {
    transform: translateY(0);
}

.pwa-guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.pwa-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pwa-guide-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pwa-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    padding: 16px;
    border-radius: 12px;
}

.pwa-step.highlight {
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-step.highlight .pwa-step-icon {
    background: #eee;
    color: #000;
}

.pwa-step-icon {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pwa-step-text {
    flex: 1;
    font-size: 15px;
    color: #eee;
}

.pwa-step-text strong {
    color: #fff;
    font-weight: 600;
}

.btn-pwa-close {
    width: 100%;
    height: 54px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-pwa-close:active {
    opacity: 0.8;
}

/* 상단 설치 유도 버튼 스타일 */
.btn-install-pwa {
    background: none;
    border: none;
    color: #fff;
    padding: 8px;
    display: none; /* JS에서 설치 가능 여부에 따라 노출 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
}

.pwa-btn-txt {
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-install-pwa:active .pwa-btn-txt {
    background: #fff;
    color: #000;
}

/* 📱 [수석 아키텍트]: 상단 스마트 배너 전용 스타일 */
.pwa-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    color: #fff;
    display: none; /* JS에서 제어 */
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 10000;
    border-bottom: 1px solid #222;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pwa-top-banner.active {
    display: flex;
    transform: translateY(0);
}

.pwa-banner-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pwa-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-banner-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.pwa-banner-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.pwa-banner-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-banner-install {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-banner-close {
    background: none;
    border: none;
    color: #444;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-banner-close .material-icons {
    font-size: 18px;
}

/* [CLS 최적화]: 배너 노출 시 레이아웃이 밀리는 현상(CLS)을 방지하기 위해 body 패딩 주입을 제거합니다. */
/* body.pwa-banner-active {
    padding-top: 60px !important;
} */
/*
* [모듈명]: 바텀시트 전용 스타일
* [파일명]: bottomSheet.css
* [역할]: 하단에서 위로 올라오는 모바일 최적화 바텀시트의 애니메이션과 디자인을 정의합니다.
*/

:root {
    --bs-bg: #111111;
    --bs-handle: #333333;
    --bs-text: #FFFFFF;
    --bs-danger: #FF3B30;
    --bs-backdrop: rgba(0, 0, 0, 0.6);
}

.bs-module-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bs-backdrop);
    backdrop-filter: blur(8px); /* 더 프리미엄한 블러 */
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000; /* 압도적인 z-index */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: flex-end;
}

.bs-module-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.bs-module-sheet {
    width: 100%;
    background-color: var(--bs-bg);
    border-radius: 28px 28px 0 0;
    padding: 12px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 20px));
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
    z-index: 20001;
    will-change: transform;
}

.bs-module-backdrop.active .bs-module-sheet {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.bs-module-handle {
    width: 44px;
    height: 5px;
    background-color: var(--bs-handle);
    border-radius: 3px;
    margin: 4px auto 20px;
    opacity: 0.6;
}

.bs-module-content {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 박스 간격 간격 확보 */
}

.bs-module-item {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-text);
    text-align: left;
    background-color: #1a1a1a; /* 박스 배경색 추가 */
    border: 1px solid #222222; /* 미세한 테두리 */
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bs-module-item:active {
    background-color: #252525;
    transform: scale(0.98);
    border-color: #333333;
}

.bs-module-item.danger {
    color: var(--bs-danger);
    background-color: rgba(255, 59, 48, 0.05); /* 위험 항목 배경색 차별화 */
    border-color: rgba(255, 59, 48, 0.1);
}

.bs-module-item.danger:active {
    background-color: rgba(255, 59, 48, 0.1);
}

.bs-module-item .material-icons {
    font-size: 22px;
}
.post-more-btn {
    position: relative;
    z-index: 10; /* 부모인 .post-item(cursor: pointer)보다 위에 위치 */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: none !important;
    border: none !important;
    padding: 0 0 0 10px;
    cursor: pointer;
    color: #666666;
    transition: opacity 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.post-more-btn:active {
    opacity: 0.4;
    scale: 0.95; /* 살짝 눌리는 느낌 추가 */
}

.post-more-btn .material-icons {
    pointer-events: none; /* 클릭 이벤트가 버튼으로 전달되도록 보장 */
    font-size: 24px !important; /* 아이콘 크기도 살짝 키움 */
}
/*
* [모듈명]: 리프레시 UI 스타일
* [파일명]: refresh.css
* [역할]: Pull-to-Refresh 인디케이터의 Black & White 디자인을 정의합니다.
*/

:root {
    --ptr-bg: #000000;
    --ptr-color: #FFFFFF;
}

/* PullToRefresh 라이브러리 기본 클래스 튜닝 */
.ptr-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--ptr-color);
    text-align: center;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--ptr-bg);
    border-bottom: 1px solid #111;
    pointer-events: none;
    margin-top: calc(94px + var(--safe-top)); 
    z-index: 99999 !important; /* [수석 아키텍트]: 어떤 UI보다 최상단에 노출되도록 강제 */
}
/* 스피너가 헤더에 가려지지 않도록 패딩 추가 */
.ptr-loading .ptr-element {
    height: 60px !important;
}

/* 스피너 컨테이너 */
.ptr-icon {
    width: 24px !important; /* [수량]: 고정 사이즈 박제 */
    height: 24px !important;
    margin-top: 0 !important;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

/* [업데이트]: 하드웨어 가속 표준 스피너 (75% 정밀 아크) */
.spinner-svg {
    width: 24px !important;
    height: 24px !important;
    animation: ptr-rotate 0.7s linear infinite !important; /* 속도 소폭 상향 */
    transform: translateZ(0);
}

.spinner-circle {
    stroke: var(--ptr-color) !important;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 65, 20; /* 75% 정도 채워진 세련된 형태 */
    stroke-dashoffset: 0;
}

@keyframes ptr-rotate {
    100% { transform: rotate(360deg); }
}

/* 당기기 시작할 때 텍스트는 여전히 숨기되, 인디케이터 영역은 확보 (Zero-Bloat Vibe) */
.ptr-pull, .ptr-release, .ptr-refresh {
    display: none !important;
}

/* 로딩 중일 때 컨테이너 노출 보장 */
.ptr-refreshing .ptr-element {
    height: 60px !important;
    opacity: 1;
}

/* 로딩 중일 때 무한 회전 */
.ptr-loading .ptr-icon {
    animation: ptr-spin 0.8s linear infinite;
}

/* 당길 때 게이지가 차는 느낌 (임시 구현) */
.ptr-pull .spinner-circle {
    stroke-dashoffset: 40;
}

.ptr-release .spinner-circle {
    stroke-dashoffset: 0;
}

@keyframes ptr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 사파리 상단 여백 보정 (100dvh 대응) */
body {
    overscroll-behavior-y: contain; /* 바운스 효과 제어 */
}
/*
* [모듈명]: 환영 팝업 전용 스타일
* [파일명]: popup.css
* [역할]: 외부 유입자용 바텀시트 팝업의 프리미엄 Black & White 디자인을 정의합니다.
*/

#welcomePopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 30000;
    display: none; /* 기본 숨김 */
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#welcomePopup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#welcomePopup .welcome-sheet {
    width: 100%;
    background-color: #000000;
    border-top: 1px solid #1A1A1A;
    border-radius: 16px 16px 0 0; /* [수석 아키텍트]: 16px로 정밀 조정 */
    padding: 24px 20px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 20px));
    transform: translateY(0);
    animation: slideUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#welcomePopup .welcome-handle {
    width: 40px;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    margin: 0 auto 24px;
}

#welcomePopup .welcome-title {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

#welcomePopup .welcome-desc {
    color: #999999;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

#welcomePopup .welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#welcomePopup .btn-action-follow {
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    padding: 20px;
    border-radius: 12px; /* [수석 아키텍트]: 버튼 스타일 12px 통일 */
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#welcomePopup .btn-action-follow:active {
    transform: scale(0.96);
}

#welcomePopup .btn-explore {
    background-color: transparent;
    color: #666666;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
:root {
    --bs-bg: #000000;
    --bs-text: #ffffff;
    --bs-text-dim: #888888;
    --bs-border: #222222;
    --bs-point: #ffffff;
    --bs-point-text: #000000;
    --bs-handle: #333333;
}

/* 바텀시트 컨테이너 */
.fbs-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-end;
    touch-action: none; /* 배경 스크롤 및 스와이프 방지 */
}

.fbs-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 바텀시트 본체 */
.fbs-sheet {
    width: 100%;
    max-height: 50dvh; /* 최대 높이 절반 제한 */
    background: var(--bs-bg);
    border-top: 1px solid var(--bs-border);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    transform: translateZ(0); /* 하드웨어 가속 */
}

.fbs-backdrop.active .fbs-sheet {
    transform: translateY(0);
}

/* 핸들러 */
.fbs-handle {
    width: 40px;
    height: 4px;
    background: var(--bs-handle);
    border-radius: 2px;
    margin: 12px auto;
    flex-shrink: 0;
}

/* 콘텐츠 영역 */
.fbs-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px 20px;
    overscroll-behavior: contain;
}

/* 프로필 섹션 */
.fbs-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.fbs-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--bs-border);
}

.fbs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbs-nickname {
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-text);
}

/* Q&A 섹션 */
.fbs-qna-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.fbs-qna-item {
    background: #0a0a0a;
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    padding: 16px;
}

.fbs-qna-label {
    font-size: 11px;
    font-weight: 800;
    color: #FFD700; /* Private Interview 강조 */
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fbs-question {
    font-size: 14px;
    font-weight: 700;
    color: var(--bs-text);
    margin-bottom: 6px;
}

.fbs-answer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--bs-text-dim);
}

/* 입장 버튼 */
.fbs-action-btn {
    width: 100%;
    height: 56px;
    background: var(--bs-point);
    color: var(--bs-point-text);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: auto;
}

.fbs-action-btn:active {
    opacity: 0.8;
}

.fbs-action-btn .lightning {
    color: #FFD700;
}
/*
* [모듈명]: 전역 마이크로 인터랙션 (Micro-Interactions)
* [파일명]: vibe_interaction.css
* [역할]: 앱 전체의 아바타, 버튼, 링크 등에 일관된 클릭(Active) 피드백 어감을 부여합니다.
* [디자인 원칙]: Black & White 미니멀리즘을 유지하며, 1px의 오차 없이 Scale 및 Opacity 조정을 통해 터치감을 제공합니다.
*/

/* 1. 모든 아바타 공통 클릭 효과 */
.post-avatar:active,
.detail-avatar:active,
.activity-avatar:active,
.profile-avatar:active,
.pick-avatar:active,
.signal-image-wrapper:active,
.drawer-avatar:active,
.header-avatar:active,
.user-profile-wrapper:active {
    transform: scale(0.95) translateZ(0);
    opacity: 0.8;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s ease;
}

/* 2. 닉네임 및 텍스트 클릭 효과 */
.post-author-name:active,
.comment-author:active,
.signal-nickname:active,
.nickname:active,
.profile-link:active {
    opacity: 0.6;
    transition: opacity 0.1s ease;
}

/* 3. 사파리 터치 하이라이트 제거 및 모바일 최적화 */
.post-avatar,
.detail-avatar,
.activity-avatar,
.profile-avatar,
.pick-avatar,
.signal-image-wrapper,
.drawer-avatar,
.header-avatar,
.user-profile-wrapper,
.post-author-name,
.comment-author,
.signal-nickname,
.nickname,
.profile-link {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    will-change: transform, opacity;
}

/* [수석 아키텍트]: 통합 인증 마크 디자인 시스템 (v857: 골든 사이즈 최적화) */
.card-verified-badge, .premium-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.card-verified-badge .material-icons {
    font-size: 14px !important; /* [v858]: 12px에서 14px로 +2px 상향 */
    color: #D4AF37 !important;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
    margin-top: 1px;
    line-height: 1;
}

.premium-verified-badge .material-icons {
    font-size: 20px !important; /* [v858]: 18px에서 20px로 +2px 상향 */
    color: #D4AF37 !important;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
    line-height: 1;
}
