/* 기본 CSS 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Noto Sans KR', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0 20px;
    box-sizing: border-box;
    position: relative;
    margin-top: 0;

    /* 배경 이미지 설정 (0720.png 사용) */
    background-image: url('/static/images/0720.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* 텍스트 스타일 */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

p {
    font-size: 18px;
    margin: 20px 0;
    color: #666;
}

.icon-test {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.icon-test i {
    font-size: 32px;
    color: #007bff;
    margin-right: 8px;
}

.icon-test i:hover {
    color: #0056b3;
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.loading-test {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* 히어로 콘텐츠 */
.hero-content {
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 햄버거 메뉴 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #667eea;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* 모바일 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 20px;
}

/* 모바일 메뉴가 활성화될 때 네비게이션 브랜드 완전 숨김 */
.mobile-menu.active ~ .main-nav .nav-brand,
.mobile-menu-overlay.active ~ .main-nav .nav-brand {
    display: none !important;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-items a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-menu-items a:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.mobile-menu-items a.admin-link {
    background: #dc3545;
    color: white;
}

.mobile-menu-items a.admin-link:hover {
    background: #c82333;
}

.mobile-user-info {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.mobile-user-info .organization-name {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.mobile-user-info .member-type {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.nav-brand h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-brand .nav-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #667eea;
    color: white;
}

.admin-panel-link {
    background: #dc3545 !important;
    color: white !important;
}

.admin-panel-link:hover {
    background: #c82333 !important;
}

.user-info {
    color: #28a745;
    font-weight: 600;
    margin-right: 1rem;
}

/* 활동단체명 이탤릭 스타일 */
.organization-name {
    font-style: italic;
    color: #000000;
    font-weight: normal;
}

/* 서비스 섹션 */
.services-section {
    margin: 2rem 0 3rem 0;
    padding: 0 2rem;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.service-card {
    background: white;
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    text-align: center;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
    border-radius: 25px;
}

.video-card {
    position: relative;
    overflow: hidden;
    background: white; /* 다른 카드와 동일한 배경색 */
}

.video-card .card-background-video {
    transition: opacity 0.3s ease;
    opacity: 0; /* 비디오 배경을 숨김 */
}

.video-card:hover .card-background-video {
    opacity: 0; /* 호버 시에도 비디오 배경 숨김 */
}

/* 비디오 섹션 스타일 */
.video-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.video-section h3 {
    color: #28a745;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.video-section h3 i {
    margin-right: 0.5rem;
    color: #dc3545;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #000;
    min-height: 200px;
}

.video-container video:focus {
    outline: 3px solid #28a745;
}

/* 비디오 로딩 상태 스타일 */
.video-container video[poster] {
    object-fit: cover;
}

/* 비디오가 로딩되지 않을 때의 폴백 스타일 */
.video-container video::-webkit-media-controls-start-playbook-button {
    display: none !important;
    -webkit-appearance: none;
}

/* 소개 비디오 섹션 */
.intro-video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 0;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.intro-video-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.intro-video-section .video-container {
    text-align: center;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 800px;
}

.intro-video-section video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    min-height: 300px;
    background: #000;
}

/* 추천 링크 섹션 스타일 */
.referral-link-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.referral-link-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.referral-link-section p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 1;
    color: white;
    font-weight: 500;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link-container input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.service-card .card-icon,
.service-card h3 {
    position: relative;
    z-index: 2;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: #667eea;
    border-radius: 0 0 23px 23px;
}

.service-card:nth-child(1)::after {
    background: #667eea; /* 착한 소비자연합 - 블루 */
}

.service-card:nth-child(2)::after {
    background: #28a745; /* 리셋 청춘클럽 - 그린 */
}

.service-card:nth-child(3)::after {
    background: #ffd700; /* 5+5+5 운동 - 골드 */
}

.service-card:nth-child(4)::after {
    background: #e67e22; /* 자료실 - 오렌지 */
}

.service-card:nth-child(5)::after {
    background: #dc3545; /* 정회원 수익분배 - 레드 */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #d0d0d0;
}

.service-card.premium-only {
    background: #f5f5dc;
    border: 2px solid #e0e0e0;
}

.service-card.premium-special {
    background: #f5f5dc;
    border: 2px solid #e0e0e0;
}

.card-icon {
    text-align: center;
    margin-bottom: 1rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 3rem;
    color: #333;
}

.card-logo {
    max-width: 140px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-card h3 {
    text-align: center;
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    width: 100%;
    margin-top: auto;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-link {
    display: block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.premium-notice {
    text-align: center;
}

.premium-notice p {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 로그인 페이지 전체 디자인 시스템 현대화 */

/* 로그인 페이지 전용 body 스타일 */
body.login-page {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 로그인 박스 컨테이너 */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* 제목 스타일 */
.login-container h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 에러 메시지 */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fcc;
}

/* 아이디/비밀번호 입력창 그룹 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.input-group label i {
    margin-right: 8px;
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 일반 로그인 버튼 */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #667eea;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #5a6fd8;
}

/* 로그인 옵션 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-me input[type="checkbox"] {
    width: auto;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 소셜 로그인 버튼 컨테이너 */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-login-buttons button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.social-login-buttons button:hover {
    opacity: 0.8;
}

/* 각 소셜 버튼 브랜드 색상 및 아이콘 */
.btn-kakao {
    background-color: #FEE500;
    color: #191919;
    border: none;
}

.btn-naver {
    background-color: #03C75A;
    color: white;
    border: none;
}

.btn-google {
    background-color: #FFFFFF;
    color: #757575;
    border: 1px solid #ddd;
}

/* 회원가입 링크 */
.signup-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.signup-link p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* 메인으로 돌아가기 링크 */
.back-to-home {
    text-align: center;
    margin-top: 15px;
}

.back-to-home a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-home a:hover {
    color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .login-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* 회원가입 페이지 전용 body 스타일 */
body.signup-page {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 회원가입 박스 컨테이너 */
.signup-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    box-sizing: border-box;
}

/* 제목 스타일 */
.signup-container h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* 섹션 제목 스타일 */
.signup-container section h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 회원 등급 안내 섹션 */
.membership-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.membership-info h3 {
    margin-top: 0;
    color: #34495E;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.membership-info h4 {
    color: #34495E;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.membership-info .price-info {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.membership-info .price-info p {
    margin-bottom: 8px;
    color: #555;
}

/* 회원 등급 체계 리스트 스타일 */
.membership-info ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.membership-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
}

.membership-info li i {
    color: #27ae60;
    margin-right: 10px;
    font-size: 1rem;
}

/* 개인정보 입력 폼 */
.personal-info-form .input-group {
    margin-bottom: 20px;
}

.personal-info-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.personal-info-form label i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.personal-info-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-size: 14px;
}

.personal-info-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 회원가입 버튼 */
.btn-signup {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #667eea;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signup:hover {
    background-color: #5a6fd8;
}

/* 로그인 링크 */
.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.login-link p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 메인으로 돌아가기 링크 */
.back-to-home {
    text-align: center;
    margin-top: 15px;
}

.back-to-home a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-home a:hover {
    color: #667eea;
}

/* 회원가입 페이지 반응형 디자인 */
@media (max-width: 768px) {
    .signup-container {
        padding: 30px 20px;
        margin: 20px auto;
        max-width: 95%;
    }

    .signup-container h1 {
        font-size: 1.5rem;
    }

    .membership-info {
        padding: 20px;
    }

    .membership-info ul {
        margin-top: 15px;
    }

    .membership-info li {
        font-size: 0.95rem;
    }
}

/* 뒤로가기 버튼 스타일 */
.back-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    z-index: 100;
}

@media (max-width: 768px) {
    .back-button {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
        z-index: 1000;
    }

    .section-header {
        padding-top: 50px;
        position: relative;
    }

    .section-header h2 {
        margin-top: 0;
        padding-right: 100px;
    }
}

.back-button:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-button i {
    margin-right: 5px;
}

.section-header {
    position: relative;
}

/* 특징 섹션 */
.features-section {
    margin: 4rem 0;
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 20px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 2.5rem;
    color: #667eea;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}



/* Font Awesome 아이콘 스타일 */
.card-icon i {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

/* 착한 소비자연합 페이지 스타일 */
.union-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.union-services .service-card {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

/* 착한 소비자연합 페이지 카드 파스텔톤 배경색 */
.union-services .service-card:nth-child(1) {
    background-color: #E6E6FA; /* 은은한 라벤더색 - 회원 가입 */
}

.union-services .service-card:nth-child(2) {
    background-color: #FFDAB9; /* 부드러운 피치색 - 회원의 규칙 */
}

.union-services .service-card:nth-child(3) {
    background-color: #ADD8E6; /* 산뜻한 베이비 블루색 - 정회원혜택 */
}

.union-services .service-card:nth-child(4) {
    background-color: #FFFACD; /* 따뜻한 연한 노란색 - 인증서 */
}

@media (max-width: 768px) {
    .union-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .union-services .service-card {
        height: 150px;
        padding: 1rem;
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .union-services .service-card .card-icon {
        height: 70px;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .union-services .service-card .card-icon i {
        font-size: 2.2rem;
        color: #333;
    }

    .union-services .service-card .card-logo {
        max-width: 90px;
        max-height: 60px;
        display: block;
        margin: 0 auto;
    }

    .union-services .service-card h3 {
        font-size: 1.1rem;
        margin: 0;
        text-align: center;
        line-height: 1.3;
        font-weight: 600;
    }

    .cards-grid .service-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .cards-grid .service-card .card-icon {
        height: 70px;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .cards-grid .service-card .card-icon i {
        font-size: 2.2rem;
        color: #333;
    }

    .cards-grid .service-card .card-logo {
        max-width: 90px;
        max-height: 60px;
        display: block;
        margin: 0 auto;
    }

    .cards-grid .service-card h3 {
        margin: 0;
        font-size: 1.2rem;
        line-height: 1.3;
        text-align: center;
        font-weight: 600;
    }

    .services-section {
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 푸터 */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 마이페이지 전체 레이아웃 컨테이너 */
.mypage-container {
    display: flex;
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.asset-button-container {
    margin-left: auto;
}

.asset-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.asset-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #333;
}

.asset-button i {
    font-size: 0.9rem;
}

/* 왼쪽 사이드바 메뉴 */
.sidebar {
    flex: 0 0 250px;
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar li a:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.sidebar li a.active {
    background-color: #667eea;
    color: white;
}

.sidebar li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 오른쪽 메인 컨텐츠 영역 */
.content-area {
    flex-grow: 1;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.content-area h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-area h1 i {
    color: #667eea;
}

.content-area > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.content-area h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-area h2 i {
    color: #667eea;
}

/* 정보 섹션 스타일 */
.info-section {
    margin-bottom: 30px;
}

/* 정보 표시 항목 스타일 */
.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

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

.info-item i {
    color: #667eea;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-item .label {
    font-weight: 600;
    color: #555;
    width: 120px;
    flex-shrink: 0;
}

.info-item .value {
    color: #333;
    flex-grow: 1;
}

/* 액션 버튼들 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-buttons .btn-primary {
    background-color: #667eea;
    color: white;
    border: 2px solid #667eea;
}

.action-buttons .btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-2px);
}

.action-buttons .btn-secondary {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.action-buttons .btn-secondary:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 페이지 헤더 레이아웃 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-title {
    flex-grow: 1;
}

.page-title h1 {
    margin-bottom: 10px;
}

.page-title p {
    margin-bottom: 0;
}

/* 외부 링크 버튼 스타일 */
.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8, #6a4c93);
}

.btn-external i {
    font-size: 13px;
}

/* 승급 현황 진행률 바 스타일 */
.progress-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

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

.progress-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-left: 10px;
}

.progress-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.progress-status.success {
    background: #d4edda;
    color: #155724;
}

.progress-status.pending {
    background: #fff3cd;
    color: #856404;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex-grow: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
    position: relative;
    min-width: 2px;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #28a745, #20c997);
    animation: progress-complete 1s ease-in-out;
}

.progress-text {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 진행률 바 완료 애니메이션 */
@keyframes progress-complete {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
    100% {
        transform: scaleY(1);
    }
}

/* 진행률 바 아이콘 스타일 */
.progress-header i {
    color: #667eea;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* 마이페이지 반응형 디자인 */
@media (max-width: 992px) {
    .mypage-container {
        flex-direction: column;
        padding: 20px;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar li {
        margin-bottom: 0;
    }

    .content-area {
        padding: 30px 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-item .label {
        width: auto;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn-external {
        align-self: flex-end;
        font-size: 13px;
        padding: 10px 18px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar-container {
        gap: 10px;
    }

    .progress-text {
        font-size: 0.8rem;
    }
}

/* ===== 관리자 페이지 현대적 디자인 ===== */

/* 관리자 페이지 컨테이너 */
.admin-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    box-sizing: border-box;
}

/* 페이지 헤더 */
.admin-container .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #f8f9fa;
    gap: 30px;
}

.admin-container .page-title h1 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-container .page-title h1 i {
    color: #667eea;
    font-size: 2rem;
}

.admin-container .page-title p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

/* 통계 요약 카드 */
.stats-summary {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

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

/* 검색 및 필터 영역 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.action-bar h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-bar h2 i {
    color: #667eea;
}

.search-filter {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input, .filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-input {
    width: 250px;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 테이블 컨테이너 */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* 회원 목록 테이블 */
.member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* 테이블 헤더 */
.member-table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.member-table thead th i {
    margin-right: 5px;
    opacity: 0.9;
}

/* 테이블 본문 */
.member-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #333;
    vertical-align: middle;
    font-size: 0.9rem;
}

.member-table tbody tr {
    transition: all 0.2s ease;
}

.member-table tbody tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
}

/* 회원 유형 배지 */
.membership-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.membership-badge.premium {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.membership-badge.basic {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

/* 사용자 정보 셀 */
.user-info-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-id {
    color: #666;
    font-size: 0.75rem;
    opacity: 0.8;
}

.no-data {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

/* 추천 수 배지 */
.count-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    min-width: 25px;
    text-align: center;
}

/* 상세보기 버튼 */
.btn-details {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-details:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4c93);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-details i {
    font-size: 0.75rem;
}

/* 회원 상세 정보 탭 스타일 */
.detail-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* 기본 정보 그리드 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.detail-item .value {
    color: #666;
}

/* 계보도 스타일 */
.genealogy-tree {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.tree-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.tree-level h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-node {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.tree-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tree-node.current {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tree-node.referrer {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.tree-node.referral {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.node-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.node-content i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.node-content span {
    font-weight: 600;
    font-size: 1rem;
}

.node-content small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.membership-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    margin-top: 5px;
}

.tree-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
}

/* 연결선 스타일 */
.referrer-level::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #ddd;
}

.current-level::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #ddd;
}

.no-referrals {
    text-align: center;
    color: #999;
    padding: 30px;
}

.no-referrals i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .tree-nodes {
        flex-direction: column;
        align-items: center;
    }

    .tree-node {
        min-width: 250px;
    }
}

/* 데이터 없음 상태 */
.no-members {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-members i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.no-members p {
    font-size: 1.1rem;
    margin: 0;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    opacity: 0.9;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.member-detail .detail-header h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-detail .detail-content p {
    margin: 10px 0;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.member-detail .detail-content i {
    color: #667eea;
    margin-top: 2px;
}

/* 관리자 페이지 반응형 디자인 */
@media (max-width: 1200px) {
    .admin-container {
        width: 95%;
        padding: 30px 25px;
    }

    .member-table {
        font-size: 0.85rem;
    }

    .member-table thead th,
    .member-table tbody td {
        padding: 12px 8px;
    }
}

@media (max-width: 992px) {
    .admin-container .page-header {
        flex-direction: column;
        gap: 20px;
    }

    .stats-summary {
        justify-content: center;
    }

    .action-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .search-filter {
        justify-content: center;
        flex-wrap: wrap;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        margin: 20px auto;
        padding: 20px 15px;
    }

    .admin-container .page-title h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .stat-card {
        padding: 20px;
        min-width: 120px;
    }

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

    /* 모바일에서 테이블 스크롤 */
    .table-container {
        overflow-x: auto;
    }

    .member-table {
        min-width: 800px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .service-card {
        height: 200px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* 모바일에서 햄버거 메뉴 표시 */
    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* 기존 네비게이션 링크 숨김 */
    .nav-links {
        display: none;
    }

    .main-nav {
        padding: 1rem;
        justify-content: flex-end;
        align-items: center;
    }

    /* 모바일에서 네비게이션 브랜드 숨김 */
    .nav-brand {
        display: none !important;
    }

    /* 모바일에서 히어로 섹션 상단 이동 */
    .hero {
        padding-top: 80px;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        min-height: 60vh;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 0.3rem;
        text-align: center;
        width: 100%;
    }

    .hero p {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }

    .hero-buttons {
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem auto 0;
        padding: 0 1rem;
    }

    .service-card {
        height: 180px;
        padding: 1rem;
    }

    .service-card .card-icon {
        height: 70px;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card .card-icon i {
        font-size: 2.2rem;
        color: #333;
    }

    .service-card .card-logo {
        max-width: 90px;
        max-height: 70px;
        display: block;
        margin: 0 auto;
    }

    .service-card h3 {
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.3;
        text-align: center;
        font-weight: 600;
    }

    .services-section {
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =================================== */
/* 마이페이지 & 관리자 페이지 공용 스타일 */
/* =================================== */

.content-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #f4f7f6;
    border-radius: 8px;
}

.content-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

.table-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow-x: auto; /* 화면이 작을 때 가로 스크롤 생성 */
}

.table-container h2 {
    margin-top: 0;
    font-size: 22px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 15px;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
}

.data-table tr:hover {
    background-color: #f1f3f5;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 16px;
}

/* =================================== */
/* 수당/포인트 적립 내역 현대적 디자인 */
/* =================================== */

.earnings-section {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.earnings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.earnings-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.earnings-header h3 i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.earnings-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.earnings-notice i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.earnings-summary {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    min-width: 110px;
}

.summary-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 500;
}

.summary-amount {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.summary-amount.recruitment {
    color: #a8e6cf;
}

.summary-amount.management {
    color: #ffd93d;
}

.commission-type-section {
    padding: 30px;
    border-bottom: 1px solid #f0f2f5;
}

.commission-type-section:last-child {
    border-bottom: none;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
}

.recruitment-header {
    border-bottom-color: #28a745;
}

.management-header {
    border-bottom-color: #ffc107;
}

.type-header i {
    font-size: 1.3rem;
    padding: 12px;
    border-radius: 50%;
    color: white;
}

.recruitment-header i {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.management-header i {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.type-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.type-count {
    background: #f8f9fa;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #e9ecef;
}

.commission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.commission-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.commission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recruitment-card {
    border-color: rgba(40, 167, 69, 0.2);
}

.recruitment-card:hover {
    border-color: #28a745;
}

.management-card {
    border-color: rgba(255, 193, 7, 0.2);
}

.management-card:hover {
    border-color: #ffc107;
}

.card-header {
    padding: 20px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f2f5;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.recruitment-card .card-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.management-card .card-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.card-amount {
    text-align: right;
}

.amount-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    display: block;
    line-height: 1;
}

.amount-unit {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-left: 2px;
}

.card-body {
    padding: 20px;
}

.card-description {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-date i {
    color: #999;
    font-size: 0.8rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.6;
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 애니메이션 효과 */
.commission-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.commission-card:nth-child(1) { animation-delay: 0.1s; }
.commission-card:nth-child(2) { animation-delay: 0.2s; }
.commission-card:nth-child(3) { animation-delay: 0.3s; }
.commission-card:nth-child(4) { animation-delay: 0.4s; }

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .earnings-header {
        padding: 20px;
        gap: 20px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .earnings-summary {
        justify-content: center;
        gap: 10px;
    }

    .summary-item {
        min-width: 100px;
        padding: 10px 15px;
    }

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

    .summary-amount {
        font-size: 1.1rem;
    }

    .asset-button {
        justify-content: center;
        width: 100%;
    }

    .commission-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .earnings-header h3 {
        font-size: 1.3rem;
    }

    .commission-cards {
        grid-template-columns: 1fr;
    }

    .commission-card {
        border-radius: 8px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .card-amount {
        text-align: center;
    }
}

/* 데스크톱에서는 카드형 숨김 */
@media (min-width: 769px) {
    .commission-cards-mobile {
        display: none;
    }

    .commission-table-mobile {
        display: table;
    }
}


/* =================================== */
/* 마이페이지 전용 스타일 */
/* =================================== */

.mypage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 반응형 그리드 */
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-card p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.info-card .label {
    font-weight: 500;
    color: #555;
    display: inline-block;
    width: 110px;
}
/* 이미지들을 담고 있는 컨테이너를 기준으로 삼습니다 */
.card-content {
  position: relative; /* 이 요소가 자식 요소 위치의 기준점이 됩니다! */
  width: 100%;
  height: 200px; /* 카드의 이미지 영역 높이를 적절히 조절하세요 */
}

/* 메인 코끼리 이미지 스타일 */
.main-image {
  width: 100px; /* 코끼리 이미지 크기 조절 */
  height: auto;
  /* 코끼리를 중앙에 놓기 위한 코드 (선택사항) */
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 바닥에 위치할 판다 이미지 그룹의 컨테이너 */
.sub-image-container {
  position: absolute;   /* 부모(.card-content)를 기준으로 위치를 절대적으로 지정합니다 */
  bottom: 10px;         /* 부모의 바닥에서 10px 위에 위치 */
  left: 50%;            /* 부모의 왼쪽에서 50% 지점에 위치 */
  transform: translateX(-50%); /* 컨테이너 자체 너비의 50%만큼 왼쪽으로 이동하여 완벽한 중앙 정렬 */
  display: flex;        /* 판다 이미지들을 가로로 나란히 정렬 */
  gap: 5px;             /* 판다 이미지 사이의 간격 */
}

/* 작은 판다 이미지 각각의 스타일 */
.sub-image {
  width: 25px;  /* 판다 이미지 크기 조절 */
  height: auto;
}