/* 공공알림 통합 프리미엄 디자인 시스템 (UTF-8) */

@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #0052A3;
    --primary-blue-light: #E6F0FF;
    --accent-orange: #FF6B00;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 알림 센터 디자인 */
.notifications-container {
    max-width: 800px;
    margin: 48px auto;
}

.notification-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.notification-item:hover {
    border-color: var(--primary-blue);
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.notification-item.unread {
    border-left: 4px solid var(--primary-blue);
    background: var(--primary-blue-light);
}

.notification-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: #94A3B8;
}

.unread-badge {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px dashed var(--gray-300);
    color: var(--text-secondary);
}

.empty-state p,
.error-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-hint {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.7;
}

.btn-retry {
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ========== 헤더 ========== */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 40px;
}

/* 로고 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-blue);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* 네비게이션 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-group {
    position: relative;
}

.nav-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-trigger svg {
    opacity: 0.5;
    transition: opacity 0.15s;
}

.nav-trigger:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

.nav-trigger:hover svg {
    opacity: 0.8;
}

.nav-trigger.active {
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.nav-trigger.active svg {
    opacity: 1;
    stroke: var(--primary-blue);
}

.nav-trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.4;
    margin-left: 2px;
    transition: transform 0.2s;
}

.nav-group:hover .nav-trigger::after {
    transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: white;
    min-width: 220px;
    border-radius: 14px;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.nav-group:hover .dropdown-menu,
.nav-group.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
    transform: translateY(6px);
}

.nav-group:hover .dropdown-menu-right,
.nav-group.active .dropdown-menu-right {
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 1.15rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-label {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}

.dropdown-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 1px;
    line-height: 1.3;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item:hover .dropdown-label {
    color: var(--primary-blue);
}

.dropdown-item.active {
    background: var(--primary-blue-light);
}

.dropdown-item.active .dropdown-label {
    color: var(--primary-blue);
    font-weight: 700;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 8px;
}

.dropdown-item-danger .dropdown-label {
    color: #EF4444;
}

.dropdown-item-danger:hover {
    background: #FEF2F2;
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-header-secondary {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
}

.btn-header-secondary:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

.btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0, 102, 204, 0.25);
}

.btn-header-primary:hover {
    background: var(--primary-blue-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

/* 유저 메뉴 */
.user-trigger {
    gap: 8px !important;
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.nav-username {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-trigger::after {
    display: none;
}

/* 모바일 메뉴 토글 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s;
    line-height: 0;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

/* 배지 */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: auto;
}

/* 데스크톱: 모바일 전용 요소 숨김 */
.mobile-user-section,
.drawer-header,
.mobile-backdrop {
    display: none;
}

/* 데스크톱: drawer-body는 투명 래퍼 (flex 레이아웃 유지) */
.drawer-body {
    display: contents;
}

/* ========== 모바일 헤더 (슬라이드 드로어) ========== */
@media (max-width: 992px) {
    /* 모바일: backdrop-filter 제거 (fixed 자식의 containing block 문제 방지) */
    .main-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: white;
    }

    .header-inner {
        gap: 0;
    }

    /* 백드롭 오버레이 */
    .mobile-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

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

    /* 슬라이드 드로어 패널 */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 85%;
        max-width: 360px;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow: hidden;
        z-index: 1001;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* 드로어 헤더 */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-200);
        flex-shrink: 0;
    }

    .drawer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-secondary);
        padding: 8px;
        border-radius: 8px;
        transition: background 0.15s;
    }

    .drawer-close:hover {
        background: var(--gray-100);
    }

    /* 드로어 본문 */
    .drawer-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 12px 16px;
        gap: 2px;
        overflow-y: auto;
    }

    /* 햄버거 버튼 */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-actions {
        order: 2;
        margin-right: 4px;
        flex-shrink: 1;
    }

    .header-actions .user-menu {
        width: auto;
    }

    .header-actions .user-trigger {
        width: auto;
        padding: 6px;
    }

    .logo-area {
        order: 1;
        flex: 1;
    }

    /* 드로어 내 네비게이션 그룹 */
    .nav-menu .nav-group {
        width: 100%;
    }

    .nav-menu .nav-group > .nav-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .nav-menu .nav-group > .nav-trigger::after {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .nav-menu .nav-group.active > .nav-trigger::after {
        transform: rotate(180deg);
    }

    .nav-menu .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 12px;
        display: none;
        min-width: 100%;
        background: transparent;
        border-left: 2px solid var(--gray-200);
        margin-left: 20px;
        margin-bottom: 8px;
    }

    .nav-menu .nav-group.active .dropdown-menu {
        display: block;
    }

    .nav-menu .dropdown-item {
        padding: 12px 14px;
    }

    .dropdown-menu-right {
        left: 0;
        right: auto;
    }

    .btn-header-secondary {
        display: none;
    }

    /* 모바일: 헤더 내 사용자 메뉴 드롭다운 숨기고, 아바타만 표시 */
    .user-menu .dropdown-menu {
        display: none !important;
    }

    .nav-username {
        display: none;
    }

    .user-trigger::after {
        display: none !important;
    }

    /* 모바일 전용 사용자 섹션 (드로어 하단) */
    .mobile-user-section {
        display: block;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid var(--gray-200);
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: var(--gray-100);
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .mobile-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gray-200);
        flex-shrink: 0;
    }

    .mobile-user-detail {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-user-name {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    .mobile-user-email {
        font-size: 0.8rem;
        color: var(--text-secondary);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-user-links {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-user-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 10px;
        transition: background 0.15s;
    }

    .mobile-user-link:active {
        background: var(--gray-100);
    }

    .mobile-user-link svg {
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .mobile-user-link-danger {
        color: #EF4444;
    }

    .mobile-user-link-danger svg {
        color: #EF4444;
    }

    /* 모바일 로그인/회원가입 버튼 */
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-auth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.15s;
    }

    .mobile-auth-login {
        background: var(--primary-blue);
        color: white;
    }

    .mobile-auth-login:active {
        background: var(--primary-blue-dark);
    }

    .mobile-auth-signup {
        background: var(--gray-100);
        color: var(--text-primary);
    }

    .mobile-auth-signup:active {
        background: var(--gray-200);
    }

    /* 모바일: 비로그인 시 헤더 로그인 버튼 숨김 */
    .btn-header-primary {
        display: none;
    }
}

/* 버튼 */
.btn-login {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, #0047AB 0%, #0066CC 100%);
    color: white;
    padding: 80px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Hero Section Tablet */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 48px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 48px 0 64px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        letter-spacing: -0.8px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
        margin-top: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Hero Section Small Phone */
@media (max-width: 380px) {
    .hero-section {
        padding: 40px 0 56px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.7rem;
    }
}

/* 검색 섹션 */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.2s;
    outline: none;
}

#search-input:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.btn-search {
    padding: 0 45px;
    border-radius: 12px;
    font-size: 1rem;
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.filter-item select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    font-weight: 600;
    outline: none;
}

.sort-wrapper {
    margin-left: auto;
}

.sort-wrapper select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    font-weight: 700;
    outline: none;
}

/* Search Section Mobile */
@media (max-width: 768px) {
    .search-section {
        margin-top: -30px;
        padding: 0 12px;
    }

    .search-card {
        padding: 16px;
        border-radius: 14px;
    }

    .search-input-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    #search-input {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn-search {
        width: 100%;
        padding: 13px 0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        padding-top: 14px;
    }

    .filter-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .filter-label {
        font-size: 0.8rem;
    }

    .filter-item select {
        width: 100%;
        max-width: none;
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .sort-wrapper {
        margin-left: 0 !important;
        margin-top: 4px;
    }

    .sort-wrapper select {
        width: 100%;
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Search Section - Small phones */
@media (max-width: 380px) {
    .search-section {
        padding: 0 8px;
    }

    .search-card {
        padding: 14px;
    }

    #search-input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* 탭 메뉴 스타일 */
.tabs {
    margin-top: 48px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .tabs {
        margin-top: 24px;
        padding-bottom: 10px;
        gap: 4px;
        margin-bottom: 8px;
        /* 스크롤 유도: 양쪽 끝 패딩 + 우측 페이드 */
        padding-left: 4px;
        padding-right: 20px;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }

    .tab-item {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

.tab-item {
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.05rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    user-select: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.tab-item:hover {
    color: var(--primary-blue);
}

.tab-item.active {
    font-weight: 800;
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-item[data-filter="emergency"] {
    color: #e74c3c;
}

.tab-item[data-filter="emergency"].active {
    border-bottom-color: #e74c3c;
}

.tab-item[data-filter="rebid"] {
    color: #f39c12;
}

.tab-item[data-filter="rebid"].active {
    border-bottom-color: #f39c12;
}

/* 공고 리스트 아이템 디자인 */
.notices-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

.notice-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.notice-item.is-tracked {
    border: 2px solid #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF 6%);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), var(--shadow-sm);
}

.notice-item.is-tracked:hover {
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), var(--shadow-lg);
}

.notice-tracking-badge {
    background: #F59E0B;
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-track-active {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #F59E0B !important;
}

.btn-track-active:hover {
    background: #FDE68A !important;
    border-color: #D97706 !important;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-badge {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.notice-region {
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.notice-dday {
    margin-left: auto;
    background: #FEF2F2;
    color: #EF4444;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #FEE2E2;
}

.notice-dday.warning {
    background: #FFFBEB;
    color: #D97706;
    border-color: #FEF3C7;
}

.notice-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: keep-all;
}

.notice-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-blue {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.badge-orange {
    background: #FFF4E6;
    color: var(--accent-orange);
}

/* 프리미엄 푸터 디자인 시스템 */
.main-footer {
    background: #0F172A;
    /* 더 깊은 다크 컬러 */
    color: #94A3B8;
    padding: 80px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #64748B;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #475569;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-weight: 600;
    color: white;
    width: 70px;
    font-size: 0.85rem;
}

.contact-value {
    color: #94A3B8;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-business-info {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.8;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .main-footer {
        padding: 48px 0 32px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links-grid {
        gap: 32px;
        width: 100%;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-description {
        font-size: 0.88rem;
    }

    .footer-section h4 {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .footer-list {
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 32px;
        padding-top: 24px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 28px;
    }
}

.notice-footer {
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.btn-detail {
    text-decoration: none;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.notice-actions {
    display: flex;
    gap: 10px;
    margin-right: 12px;
}

.btn-track {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FEF3C7;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-track:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-track:active {
    transform: translateY(0);
}

.btn-detail:hover {
    background: var(--primary-blue);
    color: white;
}

/* D-Day 강조 색상 */
.notice-dday.urgent {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FEE2E2;
}

/* 공고 카드 모바일 최적화 */
@media (max-width: 768px) {
    .notices-list {
        gap: 14px;
        margin-top: 20px !important;
    }

    .notice-item {
        padding: 16px;
        border-radius: 14px;
        gap: 12px;
    }

    .notice-item:hover {
        transform: none;
    }

    .notice-header {
        gap: 6px;
    }

    .notice-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .notice-region {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .notice-tracking-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .notice-dday {
        margin-left: 0;
        order: -1;
        align-self: flex-start;
    }

    .notice-title {
        font-size: 1rem;
        line-height: 1.45;
    }

    .notice-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 12px;
    }

    .meta-label {
        font-size: 0.7rem;
    }

    .meta-value {
        font-size: 0.85rem;
    }

    .notice-footer {
        padding-top: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .notice-footer-extended {
        padding-top: 12px;
        gap: 10px;
    }

    .notice-footer-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .notice-actions {
        margin-right: 0;
        width: 100%;
    }

    .btn-detail,
    .btn-track {
        padding: 10px 14px;
        font-size: 0.82rem;
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .doc-group {
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px;
    }

    .doc-group-divider {
        display: none;
    }

    .doc-group-links {
        width: 100%;
    }

    .btn-doc {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* 공고 카드 - 소형 폰 */
@media (max-width: 380px) {
    .notice-item {
        padding: 14px;
    }

    .notice-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .notice-title {
        font-size: 0.95rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .pagination {
        gap: 8px;
        margin: 32px 0;
        padding: 0 12px;
    }

    .pagination button {
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
        min-width: auto;
        border-radius: 10px !important;
        flex: 1;
    }

    .pagination div {
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .pagination {
        gap: 6px;
    }

    .pagination button {
        padding: 9px 10px !important;
        font-size: 0.78rem !important;
    }

    .pagination div {
        padding: 9px 8px !important;
        font-size: 0.78rem !important;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.notice-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ═══════════════════════════════════════════════════════════
   공통 컴포넌트 스타일 (모든 공개 페이지 공유)
   ═══════════════════════════════════════════════════════════ */

/* 로딩 상태 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 빈 결과 상태 */
.no-results {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 2px dashed var(--gray-200);
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-results-icon {
    font-size: 3.5rem;
    background: var(--gray-100);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.no-results-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.no-results-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.6;
    margin: 0;
}

.btn-reset-search {
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-reset-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-blue-dark);
}

/* 빈 결과 모바일 */
@media (max-width: 768px) {
    .no-results {
        padding: 48px 16px;
        margin: 20px 0;
        border-radius: 14px;
    }

    .no-results-icon {
        font-size: 2.5rem;
        width: 72px;
        height: 72px;
    }

    .no-results-title {
        font-size: 1.1rem;
    }

    .no-results-desc {
        font-size: 0.9rem;
    }

    .empty-state,
    .error-state {
        padding: 40px 16px;
    }
}

/* 데이터 없음 */
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    background: white;
    border-radius: 16px;
    border: 1px dashed var(--gray-300);
    font-size: 1rem;
    font-weight: 500;
}

/* 문서 링크 그룹 (사전규격/발주계획) */
.doc-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    width: 100%;
}

.doc-group-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.doc-group-label strong {
    color: var(--text-primary);
    font-family: monospace;
}

.doc-group-divider {
    width: 1px;
    height: 16px;
    background: var(--gray-300);
}

.doc-group-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* 문서 다운로드 버튼 */
.btn-doc {
    background: #10B981;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-doc:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* notice-footer 확장 (세로 레이아웃) */
.notice-footer-extended {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.notice-footer-actions {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
}

/* 메타 하단 정보 */
.notice-meta-bottom {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* 발주계획 보라 테마 */
.doc-group-purple {
    background: #fdf4ff;
    border-color: #f5d0fe;
}

.doc-group-purple .doc-group-label {
    color: #a21caf;
}

.doc-group-purple .doc-group-label strong {
    color: #701a75;
}

/* 완료 배지 */
.badge-complete {
    background: #F0FDF4;
    color: #16A34A;
    border-color: #DCFCE7;
}

/* 프로필 페이지 스타일 */
.profile-container {
    max-width: 700px;
    margin: 48px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
    padding-bottom: 24px;
    border-bottom: none;
}

/* 프로필 탭 네비게이션 */
.profile-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--gray-100, #f3f4f6);
    border-radius: 14px;
    margin-bottom: 32px;
}

.profile-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab-btn:hover {
    color: var(--text-primary, #111);
    background: rgba(255, 255, 255, 0.5);
}

.profile-tab-btn.active {
    background: var(--primary-blue, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 탭 콘텐츠 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue-light);
    object-fit: cover;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 폼 스타일 */
.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
    background: white;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--primary-blue-light);
}

.keyword-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--gray-100);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.keyword-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.keyword-input-wrapper input:focus {
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 48px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 1px dashed var(--gray-300);
}

.keyword-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.keyword-tag:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.btn-delete-kw {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.btn-delete-kw:hover {
    color: #EF4444;
}

.empty-keywords {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.telegram-guide {
    background: var(--primary-blue-light);
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
}

.telegram-guide p {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    line-height: 1.5;
}

.telegram-guide code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 800;
}

.btn-save {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.btn-save:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add {
    margin-top: 0 !important;
    width: auto !important;
    padding: 10px 24px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
}

.status-message {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.status-success {
    color: #10B981;
}

.status-error {
    color: #EF4444;
}

/* 구독 관리 */
.subscription-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
}

.sub-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sub-plan-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.sub-plan-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sub-plan-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
}

.sub-plan-badge.free {
    background: #F1F5F9;
    color: var(--text-secondary);
}

.sub-plan-badge.active,
.sub-plan-badge.basic {
    background: #EFF6FF;
    color: var(--primary-blue);
}

.sub-plan-badge.pro {
    background: #F5F3FF;
    color: #7C3AED;
}

.sub-details {
    border-top: 1px solid #E2E8F0;
    padding-top: 16px;
    margin-bottom: 16px;
}

.sub-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.sub-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.sub-actions {
    display: flex;
    gap: 10px;
}

.btn-sub-upgrade {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-sub-upgrade:hover {
    background: var(--primary-blue-dark);
}

.btn-sub-cancel {
    padding: 12px 20px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-sub-cancel:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* 결제 내역 */
.payment-history {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
}

.payment-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    background: white;
}

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

.payment-item:hover {
    background: #F8FAFC;
}

.pay-info .pay-date {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pay-info .pay-desc {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2px;
}

.pay-right {
    text-align: right;
}

.pay-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.pay-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    margin-top: 4px;
    display: inline-block;
}

.pay-status.completed {
    background: #DCFCE7;
    color: #16A34A;
}

.pay-status.refunded,
.pay-status.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.pay-status.success {
    background: #DCFCE7;
    color: #16A34A;
}

.pay-status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.pay-status.failed {
    background: #FEE2E2;
    color: #DC2626;
}

.payment-item-info {
    flex: 1;
}

.payment-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-item-date {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.payment-item-right {
    text-align: right;
}

.payment-item-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

/* 히어로 축소 변형 */
.hero-section-compact {
    padding: 40px 0 60px;
}

/* 지역 필터 select 공통 옵션 (Jinja2 매크로용) */
@media (max-width: 768px) {
    .profile-container {
        margin: 16px auto;
        padding: 20px;
        border-radius: 14px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 0;
        padding-bottom: 16px;
    }

    .profile-tabs {
        gap: 4px;
        padding: 4px;
        margin-bottom: 24px;
    }

    .profile-tab-btn {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-info h2 {
        font-size: 1.2rem;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .keyword-input-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .keyword-input-wrapper input {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .btn-add {
        width: 100% !important;
        padding: 12px !important;
    }

    .keyword-list {
        gap: 8px;
        padding: 10px;
    }

    .btn-save {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* 프로필 버튼 그룹 모바일 스택 */
    .profile-btn-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .profile-btn-group .btn-save {
        flex: none !important;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .profile-container {
        margin: 10px auto;
        padding: 16px;
    }
}

/* 페이지네이션 버튼 스타일 보강 */
.btn-pagination-prev {
    background: white !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--gray-300) !important;
}

.pagination-current {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}