/* =========================================
   1. 기본 설정 (Variables & Reset)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* 💜 기존 퍼플 테마 */
    --custom-purple: #5b21b6;       /* Violet-800 */
    --custom-purple-hover: #4c1d95; /* Violet-900 */
    --custom-purple-light: #a78bfa; /* 비활성화용 */
    
    /* 🥇 신규 골드 테마 (프리미엄) */
    --custom-gold: #E5C359;
    --custom-gold-dark: #B8860B;
    --custom-gold-bright: #DAA520;
}

/* rem 기준을 약간 축소 → Bootstrap·전역 rem 스타일 모두 함께 작아짐 */
html {
    font-size: 93.75%; /* 16px → 15px */
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
}

/* =========================================
   2. 유틸리티 클래스 (Colors & Buttons)
   ========================================= */

/* 퍼플 텍스트 (중복 제거 및 통합) */
.text-custom-purple {
    color: var(--custom-purple) !important;
}

/* 배경 유틸리티 */
.bg-custom-purple-light {
    background-color: #f3e8ff !important;
}

.bg-purple-light {
    background-color: #f3e8ff; /* 연한 보라 배경 */
}

/* 퍼플 버튼 */
.btn-custom-purple {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: white;
    transition: all 0.2s ease-in-out;
}

.btn-custom-purple:hover {
    background-color: var(--custom-purple-hover);
    border-color: var(--custom-purple-hover);
    color: white;
}

.btn-custom-purple:disabled {
    background-color: var(--custom-purple-light);
    border-color: var(--custom-purple-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-outline-custom-purple {
    color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.btn-outline-custom-purple:hover {
    background-color: var(--custom-purple);
    color: white;
}

/* 라디오/체크박스 스타일 */
.btn-check:checked + .btn-outline-custom-purple,
.btn-check:checked + .btn-outline-secondary {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(91, 33, 182, 0.2);
}

.form-check-input:checked {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.form-control:focus {
    border-color: var(--custom-purple-light);
    box-shadow: 0 0 0 0.25rem rgba(91, 33, 182, 0.1);
}

/* =========================================
   3. 🥇 프리미엄 & 골드 테마 (신규 추가)
   ========================================= */

/* 골드 배경 그라데이션 */
.bg-premium-gold {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
    border: 2px solid var(--custom-gold);
}

/* 골드 텍스트 */
.text-gold-dark {
    color: var(--custom-gold-dark) !important;
}

.text-gold-bright {
    color: var(--custom-gold-bright) !important;
}

/* 골드 그림자 */
.gold-shadow {
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.15);
}

/* 혜택 리스트 아이템 (점선) */
.benefit-item {
    border-bottom: 1px dashed #eee;
}

.benefit-item:last-child {
    border-bottom: none;
}

/* 아이콘 박스 (서비스 소개 페이지용) */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* 호버 효과 및 트랜지션 (로드맵 등) */
.transition-base {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 반응형 테두리 (PC에서만 왼쪽 테두리) */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
    }
}

/* =========================================
   4. 검색 결과 및 메인 컴포넌트
   ========================================= */
/* 하이라이트 */
.bg-yellow-200 {
   /* background-color: #fef08a;*/
    font-weight: bold;
    color: #4f46e5;
}

/* 카드 호버 효과 */
.result-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-color: #a5b4fc !important;
}

/* 오늘의 말씀 스크롤바 */
.daily-text-scroll::-webkit-scrollbar {
    width: 6px;
}
.daily-text-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.daily-text-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.daily-text-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bg-gradient-daily {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 리스트 아이템 호버 */
.scrap-item-hover:hover {
    background-color: #f8f9fa;
}

.hover-danger:hover {
    color: #dc3545 !important;
    transform: scale(1.1);
    transition: all 0.2s;
}

/* =========================================
   5. 페이지네이션 (Pagination)
   ========================================= */
.pagination {
    gap: 5px;
}

.page-link {
    color: var(--custom-purple);
    border: 1px solid #dee2e6;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    color: #fff;
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
}

.page-item.active .page-link {
    background-color: var(--custom-purple);
    border-color: var(--custom-purple);
    color: #fff;
    box-shadow: 0 4px 6px rgba(111, 66, 193, 0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* =========================================
   6. Footer 및 기타
   ========================================= */
.bg-deep-dark-purple {
    background-color: #240046 !important;
    color: #ffffff;
}

.site-footer {
    position: relative;
    background: transparent;
    color: #6c757d;
}

.site-footer::before {
    content: "";
    display: block;
    width: 80%;
    max-width: 720px;
    height: 1px;
    margin: 0 auto 1.25rem;
    background: rgba(0, 0, 0, 0.12);
}

.footer-text-small {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.6;
    color: #6c757d;
}

.footer-link,
.footer-link-white {
    color: #495057;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-link:hover,
.footer-link-white:hover {
    opacity: 0.7;
    text-decoration: underline;
    color: #343a40;
}

.divider {
    opacity: 0.4;
    margin: 0 6px;
}

hr.border-white {
    border-color: #ffffff !important;
}

/* 상세 모달 본문 복사 방지 */
#modalBody {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

/* 잠금 배지 스타일 (비로그인/무료회원용) */
.locked-item .flex-grow-1 {
    filter: blur(1.0px);
    opacity: 0.8;
    pointer-events: none;
}

.locked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(111, 66, 193, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

/* 휴대폰: HolyText 탑바 고정 */
@media (max-width: 767.98px) {
    #nav-subscribe {
        margin-bottom: 15px;
    }

    .site-topbars {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: #fff;
    }

    .site-topbars .navbar {
        min-height: 56px;
    }

    body.has-mobile-bottom-nav {
        padding-top: var(--mobile-topbar-height);
        padding-bottom: calc(var(--mobile-bottom-nav-height) + 8px + env(safe-area-inset-bottom, 0px));
    }

    /* 메인 풋터 글씨 축소 */
    #siteHomeFooter,
    .site-footer,
    #siteHomeFooter .footer-text-small,
    .site-footer .footer-text-small {
        font-size: 0.7rem;
        line-height: 1.45;
    }

    #siteHomeFooter .footer-link,
    #siteHomeFooter .footer-link-white,
    .site-footer .footer-link,
    .site-footer .footer-link-white {
        font-size: inherit;
    }
}

/* Instagram-style mobile bottom navigation */
:root {
    --mobile-topbar-height: 56px;
    --mobile-bottom-nav-height: 56px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    width: 100%;
    min-height: var(--mobile-bottom-nav-height);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e8e4de;
    box-shadow: 0 -4px 18px rgba(31, 26, 23, 0.06);
}

.mobile-bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    padding: 2px 1px;
    text-decoration: none;
    color: #1f1a17;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
}

.mobile-bottom-nav__icon-wrap .nav-profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.desktop-side-nav__icon-wrap .nav-profile-avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.mobile-bottom-nav__icon-wrap.has-avatar,
.desktop-side-nav__icon-wrap.has-avatar {
    overflow: hidden;
    border-radius: 50%;
}

.mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mobile-bottom-nav__item i,
.mobile-bottom-nav__icon-wrap i {
    font-size: 1.35rem;
    line-height: 1;
    color: #8a8278;
    transition: color 0.15s ease;
}

.mobile-bottom-nav__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav__label {
        display: block;
        max-width: 100%;
        font-size: 0.58rem;
        line-height: 1.05;
        margin-top: 0;
    }

    .mobile-bottom-nav__item {
        gap: 1px;
        padding: 2px 0;
    }

    .mobile-bottom-nav__item i,
    .mobile-bottom-nav__icon-wrap i {
        font-size: 1.15rem;
    }

    .mobile-bottom-nav__icon-wrap {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav #mobile-profile-icon {
        font-size: 1.15rem !important;
    }
}

.mobile-bottom-nav__item.active i,
.mobile-bottom-nav__item.active .mobile-bottom-nav__icon-wrap i,
.mobile-bottom-nav__item:hover i,
.mobile-bottom-nav__item:hover .mobile-bottom-nav__icon-wrap i {
    color: #1f1a17;
}

.mobile-bottom-nav__item.active,
.mobile-bottom-nav__item:hover {
    color: #1f1a17;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }

    /* 태블릿·PC: 상단 탑바 제거, 좌측 아이콘 레일 */
    body.has-desktop-side-nav {
        padding-left: var(--desktop-side-nav-width, 72px);
    }

    body.has-desktop-side-nav .site-topbars {
        display: none !important;
    }
}

/* Instagram-style desktop left rail */
.desktop-side-nav {
    --desktop-side-nav-collapsed: 72px;
    --desktop-side-nav-expanded: 244px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1045;
    width: var(--desktop-side-nav-collapsed);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 10px 16px;
    background: #ffffff;
    border-right: 1px solid #e8e4de;
    overflow: visible;
    transition: width 0.2s ease;
}

.desktop-side-nav:hover,
.desktop-side-nav.is-expanded {
    width: var(--desktop-side-nav-expanded);
    box-shadow: 8px 0 28px rgba(31, 26, 23, 0.08);
}

.desktop-side-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #1f1a17;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
}

.desktop-side-nav__brand img {
    flex-shrink: 0;
    border-radius: 22%;
}

.home-search-stage {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 검색 전용: 뷰포트 안에서만 세로 중앙 — min-height 중복으로 스크롤 생기지 않게 */
body.home-mode-search {
    overflow: hidden;
}

body.home-mode-search #homeMain {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.home-mode-search #homeMain > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0 !important;
}

body.home-mode-search .home-search-stage:not(.is-compact) {
    min-height: 0;
    flex: 0 0 auto;
}

.home-search-panel {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .home-search-panel {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .home-search-panel {
        max-width: 960px;
    }
}

.home-search-input-group {
    height: 3.2rem;
}

.home-search-input {
    height: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 16px;
}

.home-search-stage__options {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    #searchForm {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    #searchForm {
        max-width: 480px;
    }
}

.home-search-stage.is-compact {
    min-height: 0;
    display: block;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.home-search-stage.is-compact .home-search-stage__heading {
    display: none;
}

.home-search-stage.is-compact .home-search-stage__options {
    margin-top: 0.5rem !important;
    font-size: 0.85rem;
}

.home-search-stage.is-compact .home-search-panel {
    text-align: left;
}

@media (max-width: 767.98px) {
    body.home-mode-search,
    body.home-mode-results {
        overflow-x: hidden;
    }

    #homeMain > .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-search-stage,
    .home-search-stage.is-compact {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-search-stage.is-compact .home-search-panel {
        padding-left: 0;
        padding-right: 0;
    }

    #resultToolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    #resultToolbar .btn-group {
        width: 100%;
        display: flex;
    }

    #resultToolbar .btn-group .btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.72rem;
        padding: 0.3rem 0.25rem;
        white-space: nowrap;
    }

    .result-card .card-meta {
        min-width: 0;
    }

    .result-card .card-meta-title {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}

#resultView {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.result-card {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.result-card .card-body {
    min-width: 0;
}

.result-card .card-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.result-card .card-title {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .home-search-stage {
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
    }

    body.home-mode-search .home-search-stage:not(.is-compact) {
        min-height: 0;
    }

    .home-search-stage.is-compact {
        min-height: 0;
        display: block;
    }
}

body.home-mode-search #siteHomeFooter,
body.home-mode-search #homeAiDisclosure,
body.home-mode-results #siteHomeFooter,
body.home-mode-results #homeAiDisclosure {
    display: none !important;
}

.desktop-side-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.desktop-side-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #1f1a17;
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.15s ease, color 0.15s ease;
}

.desktop-side-nav__item i,
.desktop-side-nav__icon-wrap i {
    width: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    color: #8a8278;
    transition: color 0.15s ease;
}

.desktop-side-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    #accountCommunityNicknameInput.account-nickname-input {
        max-width: 240px;
    }
}

.account-list-snippet {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#accountMyPostsList .list-group-item,
#accountMyCommentsList .list-group-item {
    min-width: 0;
    overflow: hidden;
}

.account-follow-list-dialog {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .account-follow-list-dialog {
        max-width: 560px;
        width: min(560px, calc(100vw - 2rem));
    }
}

#accountFollowListModal .modal-content {
    overflow: hidden;
}

.account-follow-list-body {
    max-height: min(70vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
}

#accountFollowList {
    overflow: hidden;
}

.account-follow-list-item {
    min-width: 0;
    overflow: hidden;
    gap: 0.75rem;
}

.account-follow-list-user {
    min-width: 0;
    overflow: hidden;
}

.account-follow-list-user-text {
    min-width: 0;
    overflow: hidden;
}

.account-follow-list-name,
.account-follow-list-bio {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.account-follow-list-bio {
    margin-top: 0.1rem;
}

.account-follow-list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
    font-weight: 700;
    font-size: 1rem;
}

.account-follow-list-follow {
    flex-shrink: 0;
    align-self: center;
    min-width: 5.75rem;
    white-space: nowrap;
}

.desktop-side-nav__item:hover,
.desktop-side-nav__item.active {
    background: #f4f1ec;
    color: #1f1a17;
}

.desktop-side-nav__item:hover i,
.desktop-side-nav__item.active i,
.desktop-side-nav__item:hover .desktop-side-nav__icon-wrap i,
.desktop-side-nav__item.active .desktop-side-nav__icon-wrap i {
    color: #1f1a17;
}

.desktop-side-nav__label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, max-width 0.2s ease, transform 0.15s ease;
}

.desktop-side-nav:hover .desktop-side-nav__label,
.desktop-side-nav.is-expanded .desktop-side-nav__label {
    opacity: 1;
    max-width: 160px;
    transform: translateX(0);
}

.site-logo,
.desktop-side-nav__logo {
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.mobile-lang-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #1f1a17;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.mobile-lang-btn__code {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.mobile-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid #e8e4de;
    border-radius: 14px;
    background: #fff;
    color: #1f1a17;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.mobile-lang-option.is-active {
    border-color: rgba(47, 86, 76, 0.35);
    background: rgba(47, 86, 76, 0.08);
    color: #2f564c;
}

.mobile-lang-option__code {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f1a17;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-lang-option.is-active .mobile-lang-option__code {
    background: #2f564c;
}

/* site-topbars 고정 스택 밖으로 뺀 뒤에도 클릭 보장 */
#mobileLangModal {
    z-index: 1060;
}

.site-topbars .navbar {
    min-height: 56px;
}

.desktop-lang {
    position: relative;
}

.desktop-lang__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1f1a17;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.desktop-lang__btn:hover {
    background: #f4f1ec;
}

.desktop-lang__code {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f1a17;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.desktop-lang__menu {
    position: absolute;
    left: calc(100% + 10px);
    bottom: 0;
    min-width: 168px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e8e4de;
    box-shadow: 0 12px 32px rgba(31, 26, 23, 0.14);
    z-index: 20;
}

.desktop-lang__menu[hidden] {
    display: none !important;
}

.desktop-lang__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f1a17;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.desktop-lang__option:hover {
    background: #f4f1ec;
}

.desktop-lang__option.is-active {
    background: rgba(47, 86, 76, 0.1);
    color: #2f564c;
}

.desktop-lang__option-code {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efeae3;
    font-size: 0.68rem;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .desktop-side-nav {
        display: none !important;
    }
}


.btn-benefit-fixed {
    /* 1. 가로 꽉 참 방지 (Bootstrap d-grid 무력화) */
    width: auto !important; 
    display: inline-block !important;

    /* 2. 적당한 크기 설정 (원하는 너비로 조절 가능) */
    min-width: 200px; /* 최소 200px은 확보 */
    max-width: 80%;   /* 모바일에서 너무 크지 않게 제한 */
    
    /* 3. 버튼 자체 디자인 다듬기 */
    padding: 0.8rem 1.5rem; /* 안쪽 여백을 줘서 통통하게 */
    margin: 0 auto;         /* 가운데 정렬 */
}

/* (선택 사항) d-grid 안에서 왼쪽으로 쏠린다면 부모 요소에 이 클래스 추가 필요 */
/* 하지만 버튼에 margin: 0 auto를 주었으므로 대부분 해결됩니다. */

/* 알림 배지 깜빡임 효과 */
#gnb-notification-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}


#gnb-profile-icon {
    font-size: 2rem !important;
}

.mobile-bottom-nav #mobile-profile-icon {
    font-size: 1.25rem !important;
}

/* CSS 파일에 추가 */
.animate-fade {
    transition: opacity 0.3s ease-in-out;
}

#modalLoadingArea p {
    font-size: 1rem;
    color: #6f42c1; /* 포인트 컬러 */
    min-height: 1.5rem;
}

/* 프리미엄 유저 전용 노란색 스타일 (심플 버전) */
.text-premium-gold {
    /* 1. 그라데이션 제거 및 단색 노란색 설정 */
    /* 원하는 노란색 톤에 따라 #FFD700(골드), #FFC107(앰버) 중 선택하세요. */
    color: #be9108 !important; 
    
    /* 2. 텍스트 채우기 효과 제거 */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    
    /* 3. 그림자 최소화 (가독성용) */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    
    transition: all 0.3s ease;
}

.text-premium-gold:hover {
    /* 마우스 올렸을 때만 살짝 밝아짐 */
    filter: brightness(1.1);
    cursor: pointer;
}