@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

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

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background-color: #EFEFEF;
    color: #191919;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   메인 앱 컨테이너 (모바일 퍼스트 반응형 레이아웃)
   ========================================================================== */
.catalk-app {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 481px) {
    body {
        padding: 10px 0;
    }
    .catalk-app {
        min-height: calc(100vh - 20px);
        border-radius: 20px;
        overflow: hidden;
    }
}

/* ==========================================================================
   헤더 (Header)
   ========================================================================== */
.catalk-header {
    background: #FFFFFF;
    border-bottom: 1px solid #ECECEC;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 게스트(비로그인) 헤더 */
.guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: #371D1E;
}
.brand-logo svg {
    width: 28px;
    height: 28px;
    fill: #86D43A; filter: drop-shadow(0 2px 6px rgba(134, 212, 58, 0.35));
}
.guest-auth-btns {
    display: flex;
    gap: 8px;
}
.btn-login {
    background-color: #86D43A;
    color: #122802;
    box-shadow: 0 4px 12px rgba(134, 212, 58, 0.32);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.btn-login:hover {
    background-color: #72BD2E;
    box-shadow: 0 6px 16px rgba(114, 189, 46, 0.42);
}
.btn-register {
    background-color: #F1F1F3;
    color: #555555;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.btn-register:hover {
    background-color: #e5e5e7;
}

/* 로그인 회원 프로필 헤더 */
.member-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: #FFFFFF;
    transition: background 0.15s ease;
}
.member-header-card:hover, .member-header-card:active {
    background: #F9F9FA;
}
.member-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.btn-header-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #F4F4F5;
    color: #191919;
    border-radius: 50%;
    border: 1px solid #ECECEC;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-header-home:hover {
    background: #F3FBEB;
    color: #2D6308;
    border-color: #BCEB98;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.4);
}
.btn-header-home:active {
    transform: scale(0.95);
}
.member-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 40%;
    object-fit: cover;
    border: 1px solid #ECECEC;
}
.member-text-wrap {
    flex: 1;
    min-width: 0;
}
.member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.member-nick {
    font-weight: 700;
    font-size: 16px;
    color: #191919;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-point-pill {
    background-color: #F3FBEB;
    color: #2D6308;
    border: 1px solid #BCEB98;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.member-status-msg {
    font-size: 13px;
    color: #777777;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-action-icon {
    display: flex;
    align-items: center;
    color: #A0A0A0;
    padding-left: 8px;
}

/* ==========================================================================
   본문 (Body)
   ========================================================================== */
.catalk-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px; /* 테일 높이 여백 */
    background: #FFFFFF;
}

/* 탭 컨텐츠 영역 */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* 검색 바 */
.search-box-wrap {
    padding: 12px 16px 8px;
    background: #FFFFFF;
}
.search-input-inner {
    display: flex;
    align-items: center;
    background: #F4F4F6;
    border-radius: 10px;
    padding: 8px 12px;
    gap: 8px;
}
.search-input-inner input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    color: #191919;
}
.search-input-inner svg {
    width: 18px;
    height: 18px;
    color: #8E8E93;
}

/* 섹션 타이틀 */
.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #8E8E93;
    padding: 10px 18px 4px;
    text-transform: uppercase;
}

/* 친구 리스트 */
.friend-list {
    list-style: none;
}
.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #F9F9FA;
}
.friend-item:hover, .friend-item:active {
    background-color: #F8F9FA;
}
.friend-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 38%;
    object-fit: cover;
    border: 1px solid #EFEFEF;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.friend-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.friend-meta {
    flex: 1;
    min-width: 0;
}
.friend-nick {
    font-weight: 600;
    font-size: 15px;
    color: #191919;
}
.friend-status {
    font-size: 12px;
    color: #777777;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-chat-start {
    background-color: #86D43A;
    color: #122802;
    box-shadow: 0 4px 12px rgba(134, 212, 58, 0.32);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.btn-chat-start:hover {
    opacity: 0.9;
}

/* 대화방 리스트 (Chatrooms Tab) */
.room-list {
    list-style: none;
}
.room-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #F3F3F5;
    transition: background-color 0.15s;
    position: relative;
}
.room-item:hover, .room-item:active {
    background-color: #F8F9FA;
}
.room-avatar {
    width: 48px;
    height: 48px;
    border-radius: 40%;
    object-fit: cover;
    border: 1px solid #EAEAEA;
    margin-right: 14px;
    flex-shrink: 0;
}
.room-content {
    flex: 1;
    min-width: 0;
}
.room-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.room-nick {
    font-weight: 700;
    font-size: 15px;
    color: #191919;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.room-time {
    font-size: 11px;
    color: #8E8E93;
    flex-shrink: 0;
    margin-left: 8px;
}
.room-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.room-last-msg {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.room-unread-badge {
    background-color: #FF3B30;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 대화방 비어있을 때 */
.empty-box {
    text-align: center;
    padding: 60px 20px;
    color: #8E8E93;
}
.empty-box svg {
    width: 48px;
    height: 48px;
    stroke: #C7C7CC;
    margin-bottom: 12px;
}
.empty-box p {
    font-size: 14px;
    margin-bottom: 14px;
}

/* 설정 탭 (Settings Tab) */
.settings-wrap {
    padding: 16px;
}
.setting-card {
    background: #F9F9FA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #ECECEC;
}
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F2;
}
.setting-row:last-child {
    border-bottom: none;
}
.setting-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}
.setting-val {
    font-size: 13px;
    color: #666666;
}
.btn-point-history {
    background: #86D43A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-point-history:hover {
    background: #E5CE00;
}
.setting-row-point-charge {
    background: linear-gradient(135deg, #FFFDF0 0%, #FFF9E6 100%);
    margin: 6px -10px;
    padding: 12px 10px !important;
    border-radius: 10px;
    border: 1px solid #86D43A !important;
}
.point-charge-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.point-charge-sub {
    font-size: 11.5px;
    color: #795700;
    line-height: 1.3;
}
.btn-point-charge {
    background: #86D43A;
    color: #371D1E !important;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(254, 229, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.btn-point-charge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(254, 229, 0, 0.6);
    background: #FFDE00;
}
.btn-point-charge:active {
    transform: translateY(0) scale(0.98);
}
.btn-profile-charge {
    display: inline-block;
    background: #86D43A;
    color: #371D1E !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
    text-decoration: none;
    vertical-align: middle;
}
.btn-profile-charge:hover {
    background: #E5CE00;
}
.btn-logout {
    display: block;
    width: 100%;
    text-align: center;
    background: #F1F1F3;
    color: #FF3B30;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   테일 하단 탭 바 (Tail Navigation)
   ========================================================================== */
.catalk-tail {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    height: 60px;
    background-color: #F7F7F8;
    border-top: 1px solid #E5E5E7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

@media (min-width: 481px) {
    .catalk-tail {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

.tail-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8E8E93;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tail-tab-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.tail-tab-btn.active {
    color: #191919;
    font-weight: 700;
}
.tail-tab-btn.active svg {
    stroke: #371D1E;
    fill: #86D43A; filter: drop-shadow(0 2px 6px rgba(134, 212, 58, 0.35));
}
.tail-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background-color: #FF3B30;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* ==========================================================================
   1:1 대화창 (Chat Room) 스타일
   ========================================================================== */
.chat-container {
    background-color: #BACEE0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 481px) {
    .catalk-app.chat-container {
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
    }
}
.chat-header {
    background-color: #BACEE0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-chat-back {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #191919;
}
.chat-title-wrap h2 {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
}
.chat-title-wrap p {
    font-size: 11px;
    color: #555555;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-point-badge {
    background: #FFF6CC;
    border: 1px solid #FFD93D;
    color: #795700;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
}

/* 메시지 스트림 */
.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-date-divider {
    text-align: center;
    margin: 8px 0;
}
.chat-date-pill {
    background-color: rgba(0, 0, 0, 0.15);
    color: #FFFFFF;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* 시스템 안내 (포인트 차감 알림 등) */
.chat-system-msg {
    text-align: center;
    margin: 6px 0;
}
.system-msg-pill {
    background-color: rgba(254, 229, 0, 0.85);
    border: 1px solid rgba(220, 190, 0, 0.9);
    color: #371D1E;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 메시지 그룹 */
.msg-group {
    display: flex;
    gap: 8px;
    max-width: 82%;
}
/* 상대방 메시지 */
.msg-group.opponent {
    align-self: flex-start;
}
.msg-opponent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 38%;
    object-fit: cover;
    flex-shrink: 0;
}
.msg-opponent-content {
    display: flex;
    flex-direction: column;
}
.msg-sender-name {
    font-size: 12px;
    color: #555555;
    margin-bottom: 3px;
    margin-left: 2px;
}
.msg-bubble-wrap {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.bubble-opponent {
    background-color: #FFFFFF;
    color: #191919;
    padding: 8px 12px;
    border-radius: 14px;
    border-top-left-radius: 2px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.msg-time {
    font-size: 10px;
    color: #555555;
    white-space: nowrap;
}

/* 내 메시지 */
.msg-group.me {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.bubble-me {
    background-color: #86D43A;
    color: #122802;
    box-shadow: 0 2px 8px rgba(134, 212, 58, 0.25);
    padding: 8px 12px;
    border-radius: 14px;
    border-top-right-radius: 2px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.msg-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.msg-unread-1 {
    font-size: 10px;
    font-weight: 700;
    color: #86D43A;
}

/* 채팅 입력창 (Bottom Input) */
.chat-input-bar {
    background-color: #FFFFFF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #ECECEC;
    flex-shrink: 0;
}
.chat-input-bar textarea {
    flex: 1;
    border: 1px solid #E5E5E7;
    background-color: #F8F8FA;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 90px;
    height: 38px;
    line-height: 20px;
    outline: none;
}
.chat-input-bar textarea:focus {
    border-color: #86D43A;
    box-shadow: 0 0 0 3px rgba(134, 212, 58, 0.2);
    background-color: #FFFFFF;
}
.btn-msg-send {
    background-color: #86D43A;
    color: #122802;
    box-shadow: 0 4px 12px rgba(134, 212, 58, 0.32);
    border: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.btn-msg-send:hover {
    opacity: 0.9;
}
.btn-msg-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* AI 친구 생각 중 / 타이핑 인디케이터 */
.ai-typing-group {
    margin-bottom: 8px;
    animation: fadeInTyping 0.2s ease-out;
}
@keyframes fadeInTyping {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.bubble-opponent.bubble-ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #FFFFFF;
    border-radius: 14px;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    min-height: 36px;
}

.bubble-ai-typing .typing-dot {
    width: 6.5px;
    height: 6.5px;
    background-color: #BDBDBD;
    border-radius: 50%;
    display: inline-block;
    animation: aiTypingBounce 1.4s infinite ease-in-out both;
}

.bubble-ai-typing .typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.bubble-ai-typing .typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.bubble-ai-typing .typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes aiTypingBounce {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.45;
        background-color: #BDBDBD;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
        background-color: #8B5CF6;
    }
}

.ai-thinking-label {
    font-size: 11px;
    color: #8E8E93;
    font-style: italic;
    animation: aiLabelPulse 1.8s infinite ease-in-out;
    margin-left: 2px;
}

@keyframes aiLabelPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* 낙관적 업데이트 임시 메시지 버블 */
.temp-user-msg {
    opacity: 0.92;
    animation: fadeInMsg 0.15s ease-out;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 0.92; transform: translateY(0); }
}

/* ==========================================================================
   프로필 및 게시물(스토리) 등록 페이지 (profile.php)
   ========================================================================== */
.profile-page-wrap {
    background-color: #F6F6F7;
    min-height: 100vh;
}
.profile-top-header {
    background: #FFFFFF;
    border-bottom: 1px solid #ECECEC;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.profile-top-header h1 {
    font-size: 17px;
    font-weight: 700;
    color: #191919;
}

.profile-card-section {
    background: #FFFFFF;
    margin: 12px 14px;
    border-radius: 16px;
    padding: 20px 16px;
    border: 1px solid #ECECEC;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-avatar-uploader {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    cursor: pointer;
}
.profile-avatar-uploader img {
    width: 100%;
    height: 100%;
    border-radius: 40%;
    object-fit: cover;
    border: 2px solid #86D43A;
}
.avatar-badge-cam {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #371D1E;
    color: #FFFFFF;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}
.avatar-badge-cam svg {
    width: 14px;
    height: 14px;
}
.profile-user-nick {
    font-size: 18px;
    font-weight: 800;
    color: #191919;
}
.profile-friend-status {
    font-size: 14px;
    color: #555555;
    margin-top: 6px;
    line-height: 1.4;
    word-break: break-word;
    max-width: 320px;
}
.btn-chat-start-big {
    background-color: #86D43A;
    color: #122802;
    box-shadow: 0 4px 12px rgba(134, 212, 58, 0.32);
    font-weight: 800;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    max-width: 260px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-chat-start-big:hover {
    background-color: #72BD2E;
    box-shadow: 0 6px 16px rgba(114, 189, 46, 0.42);
}
.btn-chat-start-big:active {
    transform: scale(0.98);
}
.profile-user-points {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #795700;
    background: #FFF6CC;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 상태 메시지 폼 */
.status-msg-form {
    width: 100%;
    margin-top: 16px;
    display: flex;
    gap: 8px;
}
.status-msg-form input {
    flex: 1;
    border: 1px solid #DDD;
    background: #F9F9FA;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}
.status-msg-form input:focus {
    border-color: #86D43A;
    background: #FFFFFF;
}
.btn-save-status {
    background: #86D43A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* 게시물 작성 박스 */
.post-write-card {
    background: #FFFFFF;
    margin: 14px;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #ECECEC;
}
.post-write-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}
.post-write-card textarea {
    width: 100%;
    height: 70px;
    border: 1px solid #E5E5E7;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    margin-bottom: 10px;
}
.post-write-card textarea:focus {
    border-color: #86D43A;
}
.post-write-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.file-attach-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    background: #F4F4F6;
    padding: 6px 12px;
    border-radius: 8px;
}
.file-attach-label svg {
    width: 16px;
    height: 16px;
}
.btn-submit-post {
    background: #86D43A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* 타임라인 피드 리스트 */
.timeline-section {
    padding: 0 14px 20px;
}
.timeline-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #ECECEC;
}
.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.timeline-time {
    font-size: 12px;
    color: #8E8E93;
}
.btn-delete-post {
    background: transparent;
    border: none;
    color: #FF3B30;
    font-size: 12px;
    cursor: pointer;
}
.timeline-content {
    font-size: 14px;
    color: #191919;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-wrap;
}
.timeline-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.timeline-img:hover {
    opacity: 0.95;
}

/* ==========================================================================
   게시물 댓글 영역 (Post Comments)
   ========================================================================== */
.comments-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comments-count-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}
.comments-count-label strong {
    color: #86D43A;
    font-weight: 700;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
    transition: background 0.15s ease;
}
.comment-item:hover {
    background: #F1F5F9;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.comment-avatar:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.comment-nick {
    font-size: 12.5px;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}
.comment-nick:hover {
    color: #86D43A;
    text-decoration: underline;
}
.comment-time {
    font-size: 11px;
    color: #94A3B8;
}
.btn-delete-comment {
    margin-left: auto;
    background: transparent;
    border: none;
    padding: 2px 6px;
    font-size: 11px;
    color: #94A3B8;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}
.btn-delete-comment:hover {
    color: #EF4444;
    background: #FEE2E2;
}
.comment-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    margin-top: 4px;
    word-break: break-word;
    white-space: pre-wrap;
}
.comment-write-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.comment-input {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
    color: #1E293B;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.comment-input:focus {
    border-color: #86D43A;
    box-shadow: 0 0 0 3px rgba(134, 212, 58, 0.18);
}
.comment-input::placeholder {
    color: #94A3B8;
    font-size: 12.5px;
}
.btn-submit-comment {
    background: #86D43A;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(134, 212, 58, 0.28);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-submit-comment:hover {
    background: #76C32D;
    box-shadow: 0 3px 8px rgba(118, 195, 45, 0.35);
}
.btn-submit-comment:active {
    transform: scale(0.97);
}
.btn-submit-comment:disabled {
    background: #CBD5E1;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   사진 확대 뷰어 모달 (Photo Lightbox Modal)
   ========================================================================== */
.friend-avatar-clickable {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.friend-avatar-clickable:hover {
    transform: scale(1.06);
}
.friend-avatar-clickable:active {
    transform: scale(0.97);
}
.avatar-badge-zoom {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #86D43A;
    color: #FFFFFF;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.avatar-badge-zoom svg {
    width: 14px;
    height: 14px;
    stroke: #371D1E;
}

.catalk-photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.catalk-photo-modal.show {
    display: flex;
    opacity: 1;
}
.photo-modal-header {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}
.photo-modal-title {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.btn-close-modal {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.35);
}
.photo-modal-body {
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-modal-body img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.catalk-photo-modal.show .photo-modal-body img {
    transform: scale(1);
}

/* ==========================================================================
   파일 및 사진 전송 (+) 버튼 및 메시지 버블 스타일
   ========================================================================== */
.btn-chat-attach {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}
.btn-chat-attach:hover {
    background-color: #ECECEC;
    color: #111111;
}
.btn-chat-attach:active {
    transform: scale(0.92);
}

/* 첨부파일 선택 후 전송 전 미리보기 바 */
.chat-attach-preview {
    display: none;
    align-items: center;
    justify-content: space-between;
    background-color: #F8F9FA;
    border-top: 1px solid #EBEBEB;
    padding: 8px 14px;
    font-size: 13px;
    color: #333333;
    flex-shrink: 0;
}
.chat-attach-preview.show {
    display: flex;
}
.chat-attach-preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.chat-attach-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #E2E2E2;
    flex-shrink: 0;
}
.chat-attach-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #FFF3CD;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.chat-attach-name {
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #222222;
}
.chat-attach-size {
    font-size: 11px;
    color: #888888;
    margin-top: 1px;
}
.btn-remove-attach {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}
.btn-remove-attach:hover {
    background: #E5E5E5;
    color: #222222;
}

/* 채팅창 사진 버블 */
.bubble-attach-photo {
    max-width: 240px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: transform 0.15s ease;
}
.bubble-attach-photo:hover {
    transform: scale(1.02);
}
.bubble-attach-photo img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* 채팅창 파일 버블 (카카오톡 스타일 파일 다운로드 카드) */
.bubble-attach-file {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E5E7;
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 4px;
    max-width: 260px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.bubble-attach-file:hover {
    background: #FAFAFC;
    border-color: #D0D0D4;
}
.bubble-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #F0F4F8;
    color: #1A73E8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bubble-file-info {
    flex: 1;
    min-width: 0;
}
.bubble-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bubble-file-meta {
    font-size: 11px;
    color: #8E8E93;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bubble-file-expire {
    color: #FF9500;
}
.bubble-file-action {
    flex-shrink: 0;
    color: #1A73E8;
    display: flex;
    align-items: center;
}

/* 3일 만료 안내 스타일 */
.bubble-attach-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F4F4F5;
    border: 1px solid #E4E4E7;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 4px;
    font-size: 12px;
    color: #71717A;
}

/* ==========================================================================
   AI 친구 기능 스타일 (버튼, 뱃지, 모달)
   ========================================================================== */
.shortcut-btn-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.btn-shortcut-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-shortcut-item.btn-bookmark {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #B45309;
}
.btn-shortcut-item.btn-bookmark:hover {
    background: #FEF3C7;
    transform: translateY(-1px);
}
.btn-shortcut-item.btn-homescreen {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}
.btn-shortcut-item.btn-homescreen:hover {
    background: #DBEAFE;
    transform: translateY(-1px);
}
.btn-shortcut-item:active {
    transform: scale(0.97);
}

/* 홈화면/즐겨찾기 추가 안내 모달 */
.shortcut-modal-card {
    max-width: 380px;
    width: 90%;
    border-radius: 20px;
    padding: 22px 20px;
}
.shortcut-guide-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 16px 14px;
    margin-top: 10px;
}
.sg-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.sg-badge.ios {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
}
.sg-badge.android {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}
.sg-badge.bookmark {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}
.sg-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.sg-step:last-child {
    margin-bottom: 0;
}
.sg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: #371D1E;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}
.sg-num.text-tag {
    border-radius: 6px;
    padding: 0 6px;
    width: auto;
    min-width: unset;
    font-size: 10.5px;
}
.sg-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
}
.sg-text strong {
    color: #111827;
}

.search-box-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.search-box-row .search-input-inner {
    flex: 1;
}
.btn-add-ai-friend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7C3AED, #6366F1);
    color: #FFFFFF;
    border: none;
    border-radius: 18px;
    padding: 0 14px;
    height: 38px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
    transition: transform 0.15s, opacity 0.15s;
}
.btn-add-ai-friend:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.btn-add-ai-friend:active {
    transform: scale(0.96);
}

.ai-friend-item {
    background-color: #FAF5FF !important;
    border-left: 3px solid #8B5CF6;
}
.friend-avatar-wrap {
    position: relative;
    display: inline-block;
}
.badge-ai-pill {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    border: 1.5px solid #FFFFFF;
}
.badge-ai-text {
    display: inline-block;
    background: #EDE9FE;
    color: #6D28D9;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}
.badge-ai-pill-header {
    background: #EDE9FE;
    color: #6D28D9;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}
.btn-ai-chat-start {
    background: linear-gradient(135deg, #7C3AED, #6366F1) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}
.btn-ai-chat-start:hover {
    opacity: 0.9;
}
.btn-ai-delete {
    background-color: #FFF1F2 !important;
    color: #E11D48 !important;
    border: 1.5px solid #FECDD3 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 11px 20px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
    width: 100% !important;
    max-width: 260px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08) !important;
}
.btn-ai-delete:hover {
    background-color: #FFE4E6 !important;
    color: #BE123C !important;
    border-color: #FDA4AF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.15) !important;
}
.btn-ai-delete:active {
    transform: translateY(0) scale(0.98);
}
.btn-header-delete-ai {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.btn-header-delete-ai:hover {
    background-color: #FEE2E2;
}

.btn-header-edit-ai {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.btn-header-edit-ai:hover {
    background-color: #F3E8FF;
}

/* AI 프로필 카드 하단 버튼 그룹 */
.ai-profile-action-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
}

.btn-ai-edit-profile {
    flex: 1.2;
    background-color: #FAF5FF !important;
    color: #7C3AED !important;
    border: 1.5px solid #DDD6FE !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.08) !important;
    white-space: nowrap;
}

.btn-ai-edit-profile:hover {
    background-color: #F3E8FF !important;
    color: #6D28D9 !important;
    border-color: #C4B5FD !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.15) !important;
}

.btn-ai-edit-profile:active {
    transform: translateY(0) scale(0.98);
}

.ai-profile-action-btns .btn-ai-delete {
    flex: 1;
    margin-top: 0 !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    white-space: nowrap;
}
.badge-ai-mode {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1px solid #D8B4FE !important;
}

/* AI 캐릭터 생성 모달 */
.catalk-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}
.catalk-modal-backdrop.show {
    display: flex;
}
.catalk-modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
}
.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #191919;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group-ai {
    margin-bottom: 16px;
}
.form-group-ai label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
}
.form-group-ai input,
.form-group-ai textarea {
    width: 100%;
    border: 1px solid #E2E2E6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: #FAFAFC;
    transition: border-color 0.2s;
}
.form-group-ai input:focus,
.form-group-ai textarea:focus {
    border-color: #7C3AED;
    background: #FFFFFF;
}
.form-group-ai textarea {
    resize: vertical;
}
.form-hint-ai {
    font-size: 12px;
    color: #777777;
    margin-top: 4px;
    line-height: 1.4;
}
.btn-create-ai-submit {
    width: 100%;
    background: linear-gradient(135deg, #7C3AED, #6366F1);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}
.btn-create-ai-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}
.btn-create-ai-submit:active {
    transform: scale(0.98);
}

/* ==========================================================================
   쇼핑몰 서브페이지 헤더 및 모바일 최적화
   ========================================================================== */
.catalk-subpage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 14px;
    background: #FFFFFF;
    border-bottom: 1px solid #ECECEC;
    position: sticky;
    top: 0;
    z-index: 90;
}
.catalk-subpage-header .btn-back,
.catalk-subpage-header .btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #191919;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.catalk-subpage-header .btn-back:hover,
.catalk-subpage-header .btn-home:hover {
    background: #F4F4F6;
}
.catalk-subpage-header .btn-back:active,
.catalk-subpage-header .btn-home:active {
    background: #EAEAEA;
}
.catalk-subpage-header .subpage-title {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.catalk-shop-body {
    padding: 14px 14px 80px !important;
    background: #FFFFFF;
    min-height: calc(100vh - 120px);
}

.catalk-shop-body #sit {
    padding-bottom: 145px !important;
}

/* ==========================================================================
   대화방 롱프레스 시각적 피드백 및 대화방 나가기 액션 시트
   ========================================================================== */
.room-item {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.room-item.room-item-pressing {
    background-color: #EFEFEF !important;
    transform: scale(0.985);
}

.catalk-leave-sheet {
    padding: 20px 20px 16px !important;
    border-radius: 20px !important;
}

.leave-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F0F2;
    margin-bottom: 14px;
}

.leave-target-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leave-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #ECECEC;
}

.leave-text-wrap {
    display: flex;
    flex-direction: column;
}

.leave-nick {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
}

.leave-sub {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 2px;
}

.leave-sheet-content {
    margin-bottom: 14px;
}

.btn-action-leave {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #FFE5E5;
    background: #FFF5F5;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.btn-action-leave:hover {
    background: #FFEAEA;
}

.btn-action-leave:active {
    transform: scale(0.98);
}

.action-leave-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFE5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-leave-text {
    display: flex;
    flex-direction: column;
}

.action-leave-title {
    font-size: 15px;
    font-weight: 700;
    color: #FF3B30;
}

.action-leave-desc {
    font-size: 12px;
    color: #888888;
    margin-top: 3px;
    line-height: 1.4;
}

.leave-sheet-footer {
    display: flex;
    gap: 8px;
}

.btn-action-cancel {
    width: 100%;
    height: 44px;
    background: #F2F2F7;
    color: #191919;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-action-cancel:hover {
    background: #E5E5EA;
}

.btn-chat-header-leave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: background-color 0.15s ease;
}

.btn-chat-header-leave:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #FF3B30;
}






/* ==========================================================================
   내 추천 친구들 목록 모달 및 버튼 스타일
   ========================================================================== */
.btn-referral-friends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: #F8F9FA;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.btn-referral-friends:hover {
    background: #F3FBEB;
    border-color: #86D43A;
}

.rf-btn-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-btn-icon {
    font-size: 16px;
}

.rf-btn-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #371D1E;
}

.rf-btn-badge {
    font-size: 11px;
    font-weight: 700;
    color: #795700;
    background: #86D43A;
    padding: 2px 7px;
    border-radius: 10px;
}

.rf-btn-right {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8E8E93;
    font-size: 12px;
    font-weight: 600;
}

/* 내 친구들 모달 */
.catalk-friends-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friends-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.friends-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 100vh;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

/* 1. 모달 헤더 */
.friends-modal-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: #FFFFFF;
    border-bottom: 1px solid #ECECEC;
    flex-shrink: 0;
}

.btn-friends-modal-back,
.btn-friends-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #191919;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-friends-modal-back:hover,
.btn-friends-modal-close:hover {
    background-color: #F2F2F4;
}

.friends-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #191919;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.friends-header-cnt {
    font-size: 13px;
    color: #795700;
    font-weight: 700;
    background: #FFF29A;
    padding: 2px 7px;
    border-radius: 10px;
}

/* 2. 요약 카드 */
.friends-summary-card {
    margin: 12px 14px 8px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid #EFEFEF;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.summary-stat-item {
    text-align: center;
    flex: 1;
}

.summary-stat-divider {
    width: 1px;
    height: 28px;
    background: #EAEAEA;
}

.stat-num {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #191919;
    line-height: 1.2;
}

.stat-num.stat-direct {
    color: #D97706;
}

.stat-num.stat-indirect {
    color: #0284C7;
}

.stat-tit {
    font-size: 11px;
    color: #8E8E93;
    font-weight: 600;
    margin-top: 3px;
    display: block;
}

/* 3. 레벨별 필터 탭 (가로 스크롤) */
.friends-level-tabs-wrap {
    padding: 6px 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    scrollbar-width: none;
}

.friends-level-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.friends-level-tabs {
    display: inline-flex;
    gap: 6px;
}

.rf-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: #666666;
    border: 1px solid #E5E5E7;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rf-tab-btn:hover {
    background: #F4F4F5;
}

.rf-tab-btn.active {
    background: #371D1E;
    color: #FFFFFF;
    border-color: #371D1E;
    font-weight: 800;
}

.tab-badge {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 8px;
    background: #F2F2F4;
    color: #666;
}

.rf-tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* 4. 검색창 */
.friends-search-bar {
    padding: 6px 14px 10px;
    flex-shrink: 0;
}

.friends-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E5E7;
    border-radius: 10px;
    padding: 0 12px;
    height: 38px;
}

.friends-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #191919;
    background: transparent;
}

.btn-clear-search {
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
}

/* 5. 친구 리스트 영역 (40명씩 스크롤) */
.friends-list-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 20px;
}

.friends-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid #EFEFEF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rf-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rf-item-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
}

.rf-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ECECEC;
}

.rf-corner-lv {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #371D1E;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #FFFFFF;
}

.rf-item-info {
    flex: 1;
    min-width: 0;
}

.rf-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.rf-nick {
    font-size: 14.5px;
    font-weight: 800;
    color: #191919;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-nick:hover {
    color: #007AFF;
}

.rf-lv-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-lv1 { background: #F3FBEB; color: #2D6308; border: 1px solid #BCEB98; }
.badge-lv2 { background: #EFF6FF; color: #2563EB; border: 1px solid #DBEAFE; }
.badge-lv3 { background: #FAF5FF; color: #7C3AED; border: 1px solid #F3E8FF; }
.badge-lv4 { background: #ECFDF5; color: #059669; border: 1px solid #D1FAE5; }
.badge-lv5 { background: #FFFBEB; color: #D97706; border: 1px solid #FEF3C7; }
.badge-lv-multi { background: #FFF1F2; color: #E11D48; border: 1px solid #FFE4E6; }

.rf-item-sub {
    font-size: 11.5px;
    color: #8E8E93;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rf-parent-info {
    color: #666666;
}

.rf-date-sep {
    color: #CCCCCC;
}

.rf-item-actions {
    flex-shrink: 0;
}

.btn-rf-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: #86D43A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-rf-chat:hover {
    background: #FDD800;
    transform: scale(1.03);
}

/* 로딩 & 알림 */
.rf-loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    color: #8E8E93;
    font-size: 12.5px;
    font-weight: 600;
}

.rf-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #E5E5E7;
    border-top-color: #371D1E;
    border-radius: 50%;
    animation: rfSpin 0.7s linear infinite;
}

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

.rf-nomore-notice {
    text-align: center;
    padding: 16px 0;
    color: #AEAEB2;
    font-size: 12px;
    font-weight: 600;
}

.rf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.rf-empty-state .empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFFFFF;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rf-empty-state .empty-title {
    font-size: 15px;
    font-weight: 800;
    color: #191919;
    margin-bottom: 6px;
}

.rf-empty-state .empty-desc {
    font-size: 12.5px;
    color: #8E8E93;
    margin-bottom: 16px;
}

.btn-empty-copy {
    padding: 9px 18px;
    border-radius: 12px;
    background: #86D43A;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(254, 229, 0, 0.35);
}


/* ==========================================================================
   Catalk 대화창 포인트 선물하기 버튼, 모달 및 선물 버블 카드 스타일
   ========================================================================== */
.btn-chat-gift {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: #E11D48;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-chat-gift:hover {
    background-color: #FFE4E6;
    color: #BE123C;
}

.btn-chat-gift:active {
    transform: scale(0.92);
}

/* 선물하기 모달 */
.catalk-gift-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.gift-modal-dialog {
    width: 100%;
    max-width: 380px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: giftModalPop 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes giftModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.gift-modal-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F0F0F0;
    background: #FFFFFF;
}

.gift-header-title {
    font-size: 16px;
    font-weight: 800;
    color: #191919;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-close-gift {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-close-gift:hover {
    background: #F2F2F4;
}

.gift-modal-body {
    padding: 16px;
}

.gift-receiver-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF9F9;
    border: 1px solid #FFE4E6;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.gift-receiver-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #FFFFFF;
}

.gift-receiver-nick {
    font-size: 14px;
    font-weight: 800;
    color: #9F1239;
}

.gift-receiver-sub {
    font-size: 11.5px;
    color: #BE123C;
    margin-top: 1px;
}

.gift-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8F9FA;
    border: 1px solid #ECECEC;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.balance-label {
    font-size: 12px;
    color: #666666;
    font-weight: 600;
}

.balance-value {
    font-size: 15px;
    font-weight: 900;
    color: #371D1E;
}

.balance-value small {
    font-size: 11px;
    color: #795700;
}

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

.gift-input-label {
    font-size: 12px;
    font-weight: 700;
    color: #333333;
}

.gift-input-label small {
    font-size: 11px;
    color: #8E8E93;
    font-weight: normal;
}

.gift-amount-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #E5E5E7;
    border-radius: 12px;
    padding: 0 14px;
    height: 46px;
    transition: border-color 0.15s ease;
}

.gift-amount-box:focus-within {
    border-color: #E11D48;
}

.gift-amount-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 800;
    color: #191919;
    background: transparent;
}

.gift-amount-unit {
    font-size: 15px;
    font-weight: 800;
    color: #795700;
}

.gift-notice-text {
    font-size: 11.5px;
    color: #E11D48;
    margin-top: 2px;
    font-weight: 600;
}

.gift-presets-row {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.btn-gift-preset {
    flex: 1;
    height: 32px;
    background: #F4F4F5;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #52525B;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-gift-preset:hover {
    background: #FFE4E6;
    color: #BE123C;
    border-color: #FECDD3;
}

.btn-gift-preset.preset-max {
    background: #F3FBEB;
    color: #795700;
    border-color: #BCEB98;
}

.gift-memo-input {
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #E5E5E7;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12.5px;
    color: #191919;
    box-sizing: border-box;
    outline: none;
}

.gift-memo-input:focus {
    border-color: #E11D48;
}

.gift-modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #F0F0F0;
    background: #FFFFFF;
}

.btn-gift-cancel {
    flex: 1;
    height: 44px;
    border: 1px solid #E5E5E7;
    background: #FFFFFF;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #666666;
    cursor: pointer;
}

.btn-gift-submit {
    flex: 2;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    transition: transform 0.1s, opacity 0.2s;
}

.btn-gift-submit:active {
    transform: scale(0.98);
}

.btn-gift-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 대화창 내부 선물 카드 버블 스타일 */
.bubble-gift-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    min-width: 200px;
    box-sizing: border-box;
}

.bubble-gift-card.gift-me {
    background: linear-gradient(135deg, #F3FBEB 0%, #DEF5C8 100%);
    border: 1.5px solid #BCEB98;
    color: #142E03;
}

.bubble-gift-card.gift-opponent {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    border: 1.5px solid #FECDD3;
    color: #881337;
}

.gift-card-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.gift-card-body {
    flex: 1;
}

.gift-card-title {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}

.gift-card-amount {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 2px 0;
}

.gift-card-amount small {
    font-size: 13px;
    font-weight: 800;
}

.gift-card-memo {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    word-break: break-word;
}

/* ==========================================================================
   친구 관리 (숨김/차단 롱프레스 액션 시트 & 설정 모달)
   ========================================================================== */

/* 설정 탭 카드 타이틀 */
.setting-card-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #8E8E93;
    border-bottom: 1px solid #F2F2F4;
    letter-spacing: -0.2px;
}

.setting-row-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    transition: background-color 0.15s ease;
}

.setting-row-action:active {
    background-color: #F8F9FA;
}

.setting-action-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.setting-action-title {
    font-size: 14px;
    font-weight: 700;
    color: #191919;
}

.setting-action-sub {
    font-size: 11.5px;
    color: #8E8E93;
    margin-top: 1px;
}

.setting-action-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-badge-pill {
    padding: 2px 8px;
    background: #EBF3FF;
    color: #007AFF;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 12px;
}

.setting-badge-pill.badge-danger {
    background: #FFF1F2;
    color: #E11D48;
}

/* 롱프레스 액션 시트 */
.catalk-action-sheet {
    max-width: 360px;
    border-radius: 20px;
    overflow: hidden;
    animation: actionSheetUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes actionSheetUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.friend-action-options {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-friend-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #F8F9FA;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease;
}

.btn-friend-action-row:hover {
    background: #F1F3F5;
    transform: translateY(-1px);
}

.btn-friend-action-row:active {
    transform: scale(0.98);
}

.friend-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-action-icon.icon-hide {
    background: #EBF3FF;
    color: #007AFF;
}

.friend-action-icon.icon-block {
    background: #FFF1F2;
    color: #E11D48;
}

.friend-action-texts {
    flex: 1;
}

.action-row-title {
    font-size: 14px;
    font-weight: 800;
    color: #191919;
}

.btn-action-block .action-row-title {
    color: #E11D48;
}

.action-row-desc {
    font-size: 11.5px;
    color: #8E8E93;
    margin-top: 2px;
    line-height: 1.35;
}

/* 숨김/차단 안내 배너 */
.relation-notice-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0F7FF;
    border-bottom: 1px solid #DCEBFF;
    padding: 10px 16px;
    font-size: 12px;
    color: #0062D2;
    line-height: 1.4;
}

.relation-notice-banner.banner-danger {
    background: #FFF1F2;
    border-bottom: 1px solid #FECDD3;
    color: #9F1239;
}

.relation-notice-banner .notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* 숨김/차단 친구 리스트 */
.relation-friend-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: background 0.15s ease;
}

.relation-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.relation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #EAEAEA;
    flex-shrink: 0;
}

.relation-meta {
    flex: 1;
    min-width: 0;
}

.relation-nick {
    font-size: 14px;
    font-weight: 700;
    color: #191919;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relation-sub {
    font-size: 11.5px;
    color: #8E8E93;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 해제 버튼 */
.btn-relation-action {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-unhide-friend {
    background: #EBF3FF;
    border-color: #CCE0FF;
    color: #0066E6;
}

.btn-unhide-friend:hover {
    background: #0066E6;
    color: #FFFFFF;
}

.btn-unblock-friend {
    background: #FFF1F2;
    border-color: #FECDD3;
    color: #E11D48;
}

.btn-unblock-friend:hover {
    background: #E11D48;
    color: #FFFFFF;
}

/* 토스트 팝업 */
.catalk-toast-pill {
    position: fixed;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 32, 0.92);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.catalk-toast-pill.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   포인트 탭 및 TNK 오퍼월 스타일 (Tab Points & TNK Offerwall)
   ========================================================================== */
.points-wrap {
    padding: 16px;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 1. 포인트 현황 카드 */
.point-summary-card {
    background: linear-gradient(135deg, #FFFDF0 0%, #FFF8DE 100%);
    border: 1px solid #FFE7A3;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
    position: relative;
}

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

.psc-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.psc-badge {
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.psc-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #5C3E00;
}

.btn-refresh-point {
    background: #FFFFFF;
    border: 1px solid #E5D5A5;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #795700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-refresh-point svg {
    width: 16px;
    height: 16px;
}

.btn-refresh-point:hover {
    background: #FFF2C7;
    color: #4A3300;
    transform: rotate(45deg);
}

.btn-refresh-point.rotating svg {
    animation: pscSpin 0.8s linear infinite;
}

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

.psc-main-balance {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}

.psc-val {
    font-size: 32px;
    font-weight: 900;
    color: #2D1A00;
    letter-spacing: -0.5px;
    line-height: 1;
}

.psc-unit {
    font-size: 18px;
    font-weight: 800;
    color: #926A04;
}

.psc-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.psc-sub-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.psc-sub-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #785A14;
}

.psc-sub-val {
    font-size: 14px;
    font-weight: 800;
    color: #372402;
}

.psc-actions {
    display: flex;
    justify-content: flex-end;
}

.psc-btn-link {
    font-size: 12px;
    font-weight: 700;
    color: #785A14;
    text-decoration: underline;
    transition: color 0.15s;
}

.psc-btn-link:hover {
    color: #372402;
}

/* 게스트 안내 */
.guest-point-notice-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.gpn-icon {
    font-size: 18px;
    line-height: 1.2;
}

.gpn-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.guest-btn-row {
    display: flex;
    gap: 8px;
}

.btn-guest-login, .btn-guest-reg {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-guest-login {
    background: #371D1E;
    color: #FFFFFF;
}

.btn-guest-login:hover {
    background: #241314;
}

.btn-guest-reg {
    background: #FEE500;
    color: #191919;
}

.btn-guest-reg:hover {
    background: #F5DC00;
}

/* 2. TNK 무료 충전소 카드 */
.tnk-offerwall-card {
    background: #FFFFFF;
    border: 1px solid #E9D5FF;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.06);
    position: relative;
    overflow: hidden;
}

.toc-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.toc-badge-hot {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.toc-badge-verified {
    background: #ECFDF5;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.toc-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.toc-icon-circle svg {
    width: 24px;
    height: 24px;
}

.toc-title-area {
    flex: 1;
}

.toc-title {
    font-size: 16px;
    font-weight: 800;
    color: #191919;
    margin-bottom: 3px;
}

.toc-sub {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
}

.toc-charge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.btn-charge-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 10px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap;
}

.btn-charge-box.active {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.btn-charge-box.active:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.35);
    color: #FFFFFF;
}

.btn-charge-box.ready {
    background: #FAF5FF;
    color: #7E22CE;
    border: 1px dashed #C084FC;
}

.btn-charge-box.ready:hover {
    background: #F3E8FF;
    border-color: #A855F7;
    color: #6B21A8;
}

.charge-badge-ready {
    font-size: 10.5px;
    font-weight: 700;
    background: #E9D5FF;
    color: #7E22CE;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 2px;
}

.charge-ext-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.toc-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-open-tnk {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-open-tnk svg {
    width: 18px;
    height: 18px;
}

.btn-open-tnk:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.35);
}

.btn-open-tnk:active {
    transform: scale(0.99);
}

.btn-open-tnk-newtab {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: #FAF5FF;
    border: 1px solid #D8B4FE;
    color: #7E22CE;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-open-tnk-newtab svg {
    width: 14px;
    height: 14px;
}

.btn-open-tnk-newtab:hover {
    background: #F3E8FF;
    color: #6B21A8;
}

.toc-guide-text {
    font-size: 11.5px;
    color: #9CA3AF;
    line-height: 1.5;
    margin: 0;
}

.guest-lock-box {
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.guest-lock-box p {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 12px;
}

.btn-lock-login {
    display: inline-block;
    padding: 9px 18px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-lock-login:hover {
    background: #6D28D9;
}

/* 3. 최근 오퍼월 미션 적립 내역 카드 */
.tnk-history-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.thc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 10px;
}

.thc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1F2937;
}

.thc-title svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
}

.thc-count {
    font-size: 11px;
    font-weight: 700;
    color: #4B5563;
    background: #F3F4F6;
    padding: 2px 7px;
    border-radius: 10px;
}

.thc-list {
    display: flex;
    flex-direction: column;
}

.thc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F9FAFB;
}

.thc-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.thc-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thc-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
}

.thc-item-date {
    font-size: 11px;
    color: #9CA3AF;
}

.thc-item-point {
    font-size: 13.5px;
    font-weight: 800;
    color: #059669;
}

.thc-empty {
    padding: 24px 10px;
    text-align: center;
}

.thc-empty p {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0;
}

/* 4. 쇼핑몰 유료 충전소 안내 배너 */
.shop-charge-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scc-icon {
    font-size: 20px;
    line-height: 1;
}

.scc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scc-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
}

.scc-sub {
    font-size: 11px;
    color: #9CA3AF;
}

.btn-scc-charge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #371D1E;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-scc-charge svg {
    width: 12px;
    height: 12px;
}

.btn-scc-charge:hover {
    background: #241314;
}

/* 5. TNK 모달 인앱 뷰어 (TNK In-App Viewer Modal) */
.tnk-modal-backdrop {
    z-index: 99999;
}

.tnk-modal-card {
    max-width: 480px;
    width: 100%;
    height: 88vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.tnk-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
    background: #FFFFFF;
    flex-shrink: 0;
}

.tnk-modal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-tnk-head-action {
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.btn-tnk-head-action svg {
    width: 16px;
    height: 16px;
}

.btn-tnk-head-action:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.tnk-iframe-wrap {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    overflow: hidden;
    position: relative;
}

.tnk-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   쇼핑몰 테일 푸터 (Shopping Mall Tail / Footer for Points & Settings Tab)
   ========================================================================== */
.catalk-shop-footer {
    display: block !important;
    background: #F8FAFC !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 24px 16px 36px !important;
    margin: 24px 0 0 !important;
    width: 100% !important;
    font-size: 12px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

.catalk-shop-footer.has-tail-nav {
    padding-bottom: 40px !important;
}

/* 1. CS 고객센터 카드 */
.catalk-shop-footer .footer-cs-card {
    background: #FFFFFF !important;
    border: 1px solid #EAEFF5 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.catalk-shop-footer .cs-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
}

.catalk-shop-footer .cs-card-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.catalk-shop-footer .cs-phone {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #1E293B !important;
    margin-bottom: 4px !important;
    display: block !important;
    text-decoration: none !important;
    letter-spacing: -0.3px !important;
}

.catalk-shop-footer .cs-hours {
    font-size: 11px !important;
    color: #94A3B8 !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

.catalk-shop-footer .cs-btn-chat {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: 38px !important;
    background: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    box-sizing: border-box !important;
}

.catalk-shop-footer .cs-btn-chat:hover {
    background: #E2E8F0 !important;
}

.catalk-shop-footer .cs-btn-chat:active {
    background: #CBD5E1 !important;
    transform: scale(0.99) !important;
}

/* 2. 정책 / 약관 링크 바 */
.catalk-shop-footer .footer-policy-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px 10px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.catalk-shop-footer .footer-policy-link {
    font-size: 11.5px !important;
    color: #64748B !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.catalk-shop-footer .footer-policy-link:hover {
    color: #1E293B !important;
}

.catalk-shop-footer .footer-policy-link.is-bold {
    font-weight: 800 !important;
    color: #1E293B !important;
}

.catalk-shop-footer .footer-policy-divider {
    color: #CBD5E1 !important;
    font-size: 10px !important;
    user-select: none !important;
}

/* 3. 사업자 정보 아코디언 */
.catalk-shop-footer .footer-biz-wrap {
    margin-bottom: 14px !important;
}

.catalk-shop-footer .footer-biz-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 6px 0 !important;
    background: none !important;
    border: none !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    text-align: left !important;
}

.catalk-shop-footer .footer-biz-toggle .toggle-icon {
    font-size: 10px !important;
    transition: transform 0.2s ease !important;
    color: #94A3B8 !important;
}

.catalk-shop-footer .footer-biz-toggle.active .toggle-icon {
    transform: rotate(180deg) !important;
}

.catalk-shop-footer .footer-biz-content {
    font-size: 11px !important;
    color: #94A3B8 !important;
    line-height: 1.65 !important;
    padding-top: 6px !important;
    display: none;
}

.catalk-shop-footer .footer-biz-content p {
    margin: 0 0 3px !important;
}

.catalk-shop-footer .footer-biz-content strong {
    color: #64748B !important;
    font-weight: 600 !important;
}

.catalk-shop-footer .biz-info-btn {
    display: inline-block !important;
    font-size: 10.5px !important;
    color: #3B82F6 !important;
    text-decoration: none !important;
    margin-left: 4px !important;
    font-weight: 600 !important;
}

.catalk-shop-footer .biz-info-btn:hover {
    text-decoration: underline !important;
}

/* 4. 에스크로 구매안전 배지 */
.catalk-shop-footer .footer-escrow-badge {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    font-size: 10.5px !important;
    color: #64748B !important;
    line-height: 1.45 !important;
}

.catalk-shop-footer .footer-escrow-badge svg {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    color: #3B82F6 !important;
}

/* 5. 저작권 */
.catalk-shop-footer .footer-copyright {
    font-size: 10.5px !important;
    color: #94A3B8 !important;
    text-align: center !important;
    margin-top: 10px !important;
    line-height: 1.5 !important;
}

.catalk-shop-footer .footer-copyright p {
    margin: 0 0 2px !important;
}

/* ==========================================================================
   스레드(Threads) 피드 스타일 (Threads-Style Social Feed on Main Screen)
   ========================================================================== */

/* 1. 상단 뷰 전환 탭 (스레드 피드 vs 친구 목록) */
.threads-top-subnav {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.threads-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 10px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.threads-nav-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.threads-nav-btn:hover {
    color: #475569;
}

.threads-nav-btn.active {
    color: #0F172A;
    border-bottom-color: #0F172A;
    font-weight: 800;
}

/* 2. 스레드 새 글 작성 바 (Quick Compose) */
.threads-compose-bar {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 14px;
    margin: 12px 14px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.threads-compose-bar:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.threads-compose-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
    flex-shrink: 0;
}

.threads-compose-placeholder {
    flex: 1;
    font-size: 13.5px;
    color: #94A3B8;
    user-select: none;
}

.btn-threads-quick-post {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-threads-quick-post:hover {
    background: #1E293B;
}

/* 3. AI 친구 및 활성 친구 스토리 캐러셀 바 */
.threads-stories-wrapper {
    padding: 2px 14px 10px;
    margin-bottom: 4px;
}

.threads-stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

.threads-stories-title {
    font-size: 12px;
    font-weight: 700;
    color: #7C3AED;
    display: flex;
    align-items: center;
    gap: 5px;
}

.threads-stories-list {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.threads-stories-list::-webkit-scrollbar {
    display: none;
}

.thread-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    width: 62px;
    text-align: center;
}

.thread-story-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
    position: relative;
}

.thread-story-ring:hover {
    transform: scale(1.06);
}

.thread-story-ring.ring-add {
    background: #F1F5F9;
    border: 2px dashed #94A3B8;
    padding: 0;
}

.thread-story-ring.ring-add svg {
    color: #64748B;
}

.thread-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.thread-story-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    border: 1.5px solid #FFFFFF;
    line-height: 1;
}

.thread-story-name {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. 스레드 피드 리스트 (Thread Stream) */
.threads-feed-container {
    padding: 0 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-item-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
}

.thread-item-card:hover {
    border-color: #CBD5E1;
}

/* 좌측 아바타 + 커넥터 라인 */
.thread-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
}

.thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
    cursor: pointer;
    transition: opacity 0.15s;
}

.thread-avatar:hover {
    opacity: 0.85;
}

.thread-tree-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: #E2E8F0;
    margin-top: 8px;
    border-radius: 1px;
}

/* 우측 본문 & 액션 */
.thread-right-col {
    flex: 1;
    min-width: 0;
}

.thread-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.thread-author-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.thread-author-nick {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    transition: color 0.15s;
}

.thread-author-nick:hover {
    color: #2563EB;
}

.badge-thread-ai {
    background: #F3E8FF;
    color: #7E22CE;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.thread-dot {
    color: #94A3B8;
    font-size: 12px;
}

.thread-time {
    font-size: 12px;
    color: #94A3B8;
}

.btn-thread-delete {
    background: none;
    border: none;
    padding: 4px;
    color: #94A3B8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-thread-delete:hover {
    background: #FEE2E2;
    color: #EF4444;
}

/* 피드 카드 더보기(점 3개) 및 드롭다운 메뉴 */
.thread-more-wrap {
    position: relative;
    display: inline-block;
}

.btn-thread-more {
    background: none;
    border: none;
    padding: 3px 4px;
    color: #94A3B8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-thread-more:hover {
    background: #F1F5F9;
    color: #334155;
}

.feed-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    min-width: 125px;
    z-index: 100;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: catalkMenuFadeIn 0.15s ease-out;
}

@keyframes catalkMenuFadeIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feed-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: #334155;
    white-space: nowrap;
}

.feed-menu-btn svg {
    flex-shrink: 0;
}

.feed-menu-btn.menu-block:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.feed-menu-btn.menu-report:hover {
    background: #FFF7ED;
    color: #EA580C;
}

.report-reason-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.15s;
}

.report-reason-item:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.report-reason-item input[type="radio"] {
    accent-color: #EF4444;
    cursor: pointer;
}

/* 게시물 본문 */
.thread-text {
    font-size: 14px;
    color: #1E293B;
    line-height: 1.58;
    margin: 0 0 10px 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.thread-img-wrap {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
}

.thread-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.15s;
}

.thread-img:hover {
    opacity: 0.95;
}

/* 4-1. 액션 버튼 바 */
.thread-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
}

.btn-thread-action {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748B;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.15s;
}

.btn-thread-action:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.btn-thread-action svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    transition: transform 0.15s, fill 0.15s, stroke 0.15s;
}

/* 좋아요 활성 상태 */
.btn-thread-action.btn-like.active {
    color: #EF4444;
}

.btn-thread-action.btn-like.active svg {
    fill: #EF4444;
    stroke: #EF4444;
    animation: threadHeartBeat 0.35s ease-in-out;
}

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

/* 1:1 대화 버튼 */
.btn-thread-action.btn-chat {
    color: #2563EB;
}

.btn-thread-action.btn-chat:hover {
    background: #EFF6FF;
    color: #1D4ED8;
}

/* 4-2. 답글 아코디언 및 댓글 섹션 */
.thread-replies-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.thread-replies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.thread-reply-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.thread-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
    flex-shrink: 0;
    cursor: pointer;
}

.thread-reply-bubble {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    padding: 8px 12px;
}

.thread-reply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.thread-reply-nick {
    font-size: 12.5px;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
}

.thread-reply-time {
    font-size: 11px;
    color: #94A3B8;
}

.btn-thread-del-reply {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 11px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.btn-thread-del-reply:hover {
    color: #EF4444;
}

.thread-reply-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 답글 작성 인라인 폼 */
.thread-reply-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-reply-input {
    flex: 1;
    height: 36px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 0 14px;
    font-size: 13px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.15s;
}

.thread-reply-input:focus {
    border-color: #94A3B8;
    background: #FFFFFF;
}

.btn-thread-reply-send {
    height: 36px;
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-thread-reply-send:hover {
    background: #1E293B;
}

/* 빈 상태 카드 */
.threads-empty-card {
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 18px;
    padding: 36px 20px;
    text-align: center;
}

.threads-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.threads-empty-title {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
}

.threads-empty-sub {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-threads-empty-post {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    transition: all 0.15s;
}

.btn-threads-empty-post:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

/* 5. 새 스레드 작성 모달 */
.thread-compose-modal-card {
    max-width: 480px;
    width: 100%;
}

.thread-modal-write-wrap {
    display: flex;
    gap: 12px;
    padding: 14px 0 10px;
}

.thread-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
    flex-shrink: 0;
}

.thread-modal-textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.55;
    color: #0F172A;
    background: transparent;
    min-height: 120px;
}

.thread-modal-textarea::placeholder {
    color: #94A3B8;
}

.thread-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.thread-char-hint {
    font-size: 12px;
    color: #94A3B8;
}

.btn-thread-modal-cancel {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-thread-modal-cancel:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.btn-thread-modal-submit {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-thread-modal-submit:hover {
    opacity: 0.9;
}

.btn-thread-modal-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalk-shop-footer .footer-copyright .disclaimer-text {
    font-size: 9.5px !important;
    color: #A0AEC0 !important;
}
