/**
 * APP2 메인 CSS
 * 
 * @package APP2
 * @author 코코 🐱
 * @since 2025-06-06
 */

/* APP2 전체 우클릭 방지 및 선택 제한 */
body.app2 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 트리 캔버스에서는 터치 콜아웃 허용 */
#treeCanvas {
    -webkit-touch-callout: default;
    touch-action: pan-x pan-y;
}

/* 모바일에서 이미지 길게 누르기 방지 */
body.app2 img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 버튼과 링크는 터치 가능하도록 */
body.app2 button,
body.app2 a,
body.app2 .clickable {
    pointer-events: auto;
}

/* 입력 필드와 텍스트 영역은 선택 가능하도록 */
body.app2 input,
body.app2 textarea,
body.app2 .selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* CSS 변수 정의 - 다크 테마 (기본값) */
:root, 
:root[data-theme="dark"] {
    /* 배경색 - 더 어둡고 고급스러운 색상 */
    --bg-primary: #050710;
    --bg-secondary: #0a0c18;
    --bg-tertiary: #0f1220;
    --bg-card: #0f1220;
    --bg-hover: rgba(255, 255, 255, 0.03);
    
    /* 텍스트 색상 */
    --text-primary: #f8f9fa;
    --text-secondary: #a8b2d1;
    --text-muted: #6c7293;
    
    /* 골드 색상 */
    --gold-primary: #ffd700;
    --gold-secondary: #ffb800;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    
    /* 강조 색상 */
    --accent-primary: #ffd700;
    --accent-secondary: #00d4ff;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;
    --accent-gold: #ffd700;
    
    /* 테두리 */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    
    /* 그라데이션 */
    --gradient-dark: linear-gradient(135deg, #050710 0%, #0a0c18 100%);
    --gradient-premium: linear-gradient(135deg, #ffd700 0%, #ffb800 50%, #ffd700 100%);
    --gradient-card: linear-gradient(135deg, #0f1220 0%, #0a0c18 100%);
    
    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* 라이트 테마 - 파스텔톤의 은은한 색상 */
:root[data-theme="light"] {
    /* 배경색 */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f3f0;
    --bg-tertiary: #ede9e4;
    --bg-card: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.01);
    
    /* 텍스트 색상 */
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    
    /* 테두리 */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.04);
    
    /* 그라데이션 */
    --gradient-dark: linear-gradient(135deg, #faf8f5 0%, #f5f3f0 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body {
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
}

/* 태블릿/PC에서 백그라운드 그라데이션 */
@media (min-width: 901px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, #111111 0%, #000000 100%);
        z-index: -1;
    }
}

/* 링크 스타일 */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* 관리자 대리 로그인 복귀 바 */
.admin-proxy-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 15px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.proxy-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.proxy-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.proxy-info i {
    font-size: 18px;
}

.proxy-info strong {
    font-weight: 700;
    text-decoration: underline;
}

.btn-return-admin {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-return-admin:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 대리 로그인 시 네비게이션 위치 조정 */
.admin-proxy-bar ~ .app-navbar {
    /* top: 50px; */
}

.admin-proxy-bar ~ .app-navbar ~ .app-content {
    /* padding-top: 110px; */
}

/* 언어 선택 메뉴 - 슬림하고 컴팩트하게 */
.language-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 90%;
    max-width: 320px;  /* 더 작게 */
    background: var(--bg-card);
    border-radius: 16px;  /* 더 작은 radius */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.language-menu.show {
    transform: translateX(-50%) translateY(0);
}

/* 배경 오버레이 추가 */
.language-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.language-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.language-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px 20px;  /* 더 작은 패딩 */
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-card));
}

.language-menu-header h5 {
    margin: 0;
    font-size: 16px;  /* 더 작게 */
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;  /* 더 작은 간격 */
}

.language-menu-header h5::before {
    content: '🌐';
    font-size: 18px;  /* 더 작게 */
}

.language-menu-header .btn-close {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;  /* 더 작게 */
    height: 32px; /* 더 작게 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;  /* 더 작게 */
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;  /* 더 빠르게 */
}

.language-menu-header .btn-close:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

.language-menu-body {
    padding: 12px 16px 16px 16px;  /* 상단 패딩 줄임 */
    background: var(--bg-card);
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2x2 고정 */
    grid-template-rows: repeat(2, 1fr);     /* 2x2 고정 */
    gap: 10px;  /* 더 작은 간격 */
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;  /* 더 작은 패딩 */
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 12px;  /* 더 작은 radius */
    cursor: pointer;
    transition: all 0.2s ease;  /* 더 빠른 전환 */
    position: relative;
    min-height: 80px;  /* 더 작은 높이 */
    text-align: center;
    gap: 6px;  /* 더 작은 간격 */
}

/* 호버 효과 제거 - 떨림 현상 해결 */

.language-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-item.active {
    background: var(--bg-secondary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.language-item .flag {
    width: 32px;  /* 더 작게 */
    height: 24px; /* 더 작게 */
    border-radius: 6px;  /* 더 작게 */
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);  /* 더 작은 그림자 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;  /* 더 작은 여백 */
}

.language-item .flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-item span:not(.flag) {
    font-size: 12px;  /* 더 작게 */
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;  /* 더 작은 간격 */
    line-height: 1.2;  /* 줄간격 조정 */
}

.language-item .bi-check2 {
    position: absolute;
    top: 6px;   /* 더 작게 */
    right: 6px; /* 더 작게 */
    color: var(--gold-primary);
    font-size: 16px;  /* 더 작게 */
    font-weight: bold;
    background: var(--bg-primary);
    width: 20px;  /* 더 작게 */
    height: 20px; /* 더 작게 */
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.language-item.active .bi-check2 {
    display: flex;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 컨테이너 스타일 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
}

/* 네비게이션 바 */
.app-navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 56px;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-center {
    flex: 1;
    text-align: center;
}

.navbar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.navbar-logo {
    height: 32px;
    width: auto;
}

/* 버튼 스타일 */
.btn-icon {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

/* 가이드 링크 스타일 */
a.btn-icon.guide-link {
    text-decoration: none;
    color: var(--text-secondary);
}

a.btn-icon.guide-link:hover {
    background: var(--bg-hover);
    color: #FFD700;
}

a.btn-icon.guide-link i {
    font-size: 1.2rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* 알림 뱃지 */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* 메인 콘텐츠 */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
}

/* 로딩 스피너 */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.app-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 프리미엄 카드 스타일 */
.premium-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

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

/* 거래 내역 스타일 */
.transaction-list {
    margin-top: 16px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--accent-success);
}

.transaction-amount.negative {
    color: var(--accent-danger);
}

.transaction-amount.cancelled {
    color: #9b59b6; /* 보라색 - 취소된 스테이킹 환불 */
}

.amount-status {
    display: flex;
    align-items: center;
    color: #f39c12; /* 주황색 - 대기중 상태 */
    font-size: 14px;
}

/* 하단 네비게이션 바 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bottom-nav-item {
    flex: 1;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.bottom-nav-link.active {
    color: var(--accent-primary);
}

.bottom-nav-link i {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-link span {
    font-size: 11px;
    font-weight: 500;
}

/* 사이버펑크 하단 탭바 - 높이 증가 */
.app-tabbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(20, 20, 20, 0.98) 50%,
        rgba(10, 10, 10, 1) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 0 0px;
    height: 75px;
    z-index: 1000;
    box-shadow: 
        0 -2px 15px rgba(255, 215, 0, 0.1),
        0 -1px 0 rgba(255, 215, 0, 0.15) inset;
    position: relative;
    overflow: visible;
}

/* 탭바 내부 컨테이너 */
.app-tabbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

/* 사이버 그리드 배경 */
.app-tabbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(255, 215, 0, 0.03) 49px,
            rgba(255, 215, 0, 0.03) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(255, 215, 0, 0.03) 49px,
            rgba(255, 215, 0, 0.03) 50px
        );
    pointer-events: none;
    opacity: 0.5;
}

/* 네온 글로우 애니메이션 */
@keyframes neonPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    color: rgba(200, 200, 200, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top:10px;
    z-index: 2;
    transform: translateY(-30%);
}

/* 홀로그램 효과 */
.tab-item::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, transparent 30%, rgba(255, 215, 0, 0) 70%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tab-item:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-32%);
}

.tab-item:hover::before {
    opacity: 0.3;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 215, 0, 0.1) 40%, 
        transparent 70%);
}

/* 활성 탭 사이버 효과 - 위로 올라가는 애니메이션 */
.tab-item.active {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: translateY(-30%) scale(1.4);
}

/* 활성 탭 배경 글로우 효과 */
.tab-item.active::before {
    opacity: 1;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.4) 0%, 
        rgba(255, 215, 0, 0.2) 30%, 
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #FFD700 20%, 
        #FFA500 50%, 
        #FFD700 80%, 
        transparent 100%);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-50%) scaleX(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scaleX(1); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(0.5); opacity: 0; }
}

.tab-item i {
    font-size: 30px;
    transition: all 0.3s ease;
    position: relative;
}

/* 아이콘 홀로그램 효과 */
.tab-item.active i {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    font-size: 24px;
}

.tab-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tab-item.active span {
    opacity: 1;
    font-weight: 700;
    font-size: 11px;
}

/* 중앙 Deposit 버튼 - 사이버 포털 (더 크게) */
.tab-center-button {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid rgba(20, 20, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.5),
        0 3px 12px rgba(255, 165, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    filter: grayscale(0.5) brightness(0.8);
}

/* 포털 회전 효과 */
.tab-center-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        transparent,
        #FFD700,
        #FFA500,
        #FF6347,
        transparent
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: portalRotate 2s linear infinite paused;
    z-index: -1;
}

@keyframes portalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tab-item:nth-child(3):hover .tab-center-button::before {
    opacity: 1;
    animation-play-state: running;
}

.tab-center-button i {
    font-size: 30px;
    color: #1a1a1a;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Deposit 버튼 활성화 시 */
.tab-item.active .tab-center-button {
    filter: grayscale(0) brightness(1);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        0 6px 20px rgba(255, 165, 0, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.tab-item:nth-child(3):hover .tab-center-button {
    transform: translateX(-50%) translateY(-1px);
}

.tab-item:nth-child(3):hover .tab-center-button i {
    transform: rotate(90deg);
}

/* Deposit 탭 아이템 특별 처리 - 크기 변화 없음 */
.tab-item:nth-child(3) {
    position: relative;
}

.tab-item:nth-child(3).active {
    transform: translateY(-30%);
}

/* 미래적 디테일 */
.app-tabbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.6) 20%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(255, 215, 0, 0.6) 80%,
        transparent 100%
    );
    animation: scanLineHorizontal 5s linear infinite;
}

@keyframes scanLineHorizontal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 다크 테마 추가 효과 */
[data-theme="dark"] .app-tabbar {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(10, 10, 10, 1) 50%,
        rgba(0, 0, 0, 1) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .tab-item {
    color: rgba(180, 180, 180, 0.7);
}

[data-theme="dark"] .tab-item.active {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* 골드 테마 요소 */
.bg-gold {
    background: var(--gold-gradient);
    color: var(--bg-primary);
}

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

.border-gold {
    border-color: var(--gold-primary) !important;
}

/* 대시보드 전용 스타일 (index.php에서 인라인으로 되어있던 것들) */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

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

/* 테마 전환 애니메이션 */
body.theme-transition,
body.theme-transition * {
    transition: all 0.3s ease !important;
}

/* 반응형 */
@media (max-width: 780px) {
    /* 모바일과 작은 태블릿에서는 전체 너비 사용 */
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .app-navbar,
    .language-menu,
    .app-tabbar {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-title {
        font-size: 16px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .app-content {
        padding-bottom: 70px;
    }
    
    /* 모바일에서 언어 메뉴 스타일 조정 */
    .language-menu {
        max-width: 300px;  /* 모바일에서도 더 작게 */
        bottom: 10px;
        /* 모바일에서 기본적으로 숨김 */
        transform: translateX(-50%) translateY(120%) !important;
    }
    
    .language-menu.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .language-menu-overlay {
        /* 모바일에서 기본적으로 숨김 */
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .language-menu-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .language-menu-header {
        padding: 12px 16px 8px 16px;  /* 더 작게 */
    }
    
    .language-menu-header h5 {
        font-size: 14px;  /* 더 작게 */
    }
    
    .language-menu-body {
        padding: 8px 12px 12px 12px;  /* 더 작게 */
        gap: 8px;  /* 더 작은 간격 */
        /* 2x2 고정 유지 */
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
    }
    
    .language-item {
        padding: 10px 6px;  /* 더 작게 */
        min-height: 70px;   /* 더 작게 */
        gap: 4px;  /* 더 작은 간격 */
    }
    
    .language-item .flag {
        width: 28px;  /* 모바일에서 더 작게 */
        height: 21px; /* 모바일에서 더 작게 */
    }
    
    .language-item span:not(.flag) {
        font-size: 11px;  /* 모바일에서 더 작게 */
    }
}

/* =============================================== */
/* 알림 시스템 스타일 (2025-06-08 코코 추가) 🐱 */
/* =============================================== */

/* 알림 배지 - 우선순위별 스타일 */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-primary);
    z-index: 10;
    color: white;
}

/* 일반 알림 (기본) */
.notification-badge,
.notification-badge.normal {
    background: var(--accent-danger);
    animation: pulse 2s infinite;
}

/* 중요 알림 */
.notification-badge.important {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    animation: pulse-important 1.5s infinite;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* 긴급 알림 */
.notification-badge.urgent {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    animation: urgent-flash 1s infinite;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.8);
}

/* 시스템 알림 */
.notification-badge.system {
    background: linear-gradient(45deg, #007bff, #0056d2);
    animation: pulse-system 2s infinite;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* 혼합 알림 (시스템 + 일반) */
.notification-badge.mixed {
    background: linear-gradient(45deg, #8a2be2, #6a1b9a);
    animation: pulse-mixed 1.8s infinite;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-important {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8); }
    70% { box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes urgent-flash {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 1);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

@keyframes pulse-system {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@keyframes pulse-mixed {
    0% { 
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(138, 43, 226, 0);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
        transform: scale(1);
    }
}

/* 알림 모달 스타일 */
.notification-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

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

.notification-item.unread {
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        transparent 100%
    );
    border-left: 3px solid var(--gold-primary);
}

.notification-item:hover {
    background: var(--bg-hover);
}

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

.notification-sender {
    font-weight: 600;
    color: var(--gold-primary);
    font-size: 14px;
}

.notification-time {
    color: var(--text-muted);
    font-size: 12px;
}

.notification-content {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 알림 모달 다크 테마 최적화 */
[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* 빈 알림 상태 */
.notification-list:empty::after {
    content: '';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* 메시지 보내기 버튼 */
.send-message-btn {
    position: relative;
    transition: all 0.3s ease;
}

.send-message-btn:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
    transform: scale(1.05);
}

.send-message-btn:active {
    transform: scale(0.95);
}

.send-message-btn i {
    font-size: 18px;
}

/* 알림 배지 애니메이션 */
.notification-bell {
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-bell:active {
    transform: scale(0.95);
}

/* 읽음 처리 버튼 */
.notification-item .btn-outline-primary {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    font-size: 12px;
    padding: 4px 12px;
}

.notification-item .btn-outline-primary:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-primary);
}

/* 반응형 알림 모달 */
@media (max-width: 576px) {
    .notification-list {
        max-height: 60vh;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .notification-time {
        align-self: flex-end;
    }
}

/* 알림 로딩 상태 */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.notification-loading .spinner-border {
    color: var(--gold-primary);
}

/* 토스트 알림 (추후 사용) */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.hide {
    transform: translateX(100%);
}

.toast-notification .toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold-primary);
}

.toast-notification .toast-body {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
}

/* Staking Policy Badges - Metallic style */
.policy-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.policy-badges .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(255, 255, 255, 0.1);
}

.policy-badges .badge i {
    font-size: 0.9rem;
    z-index: 2;
}

/* Engraved text effect */
.policy-badges .badge {
    color: #ffffff;
    text-shadow: 
        -1px -1px 1px rgba(0, 0, 0, 0.8),
        0px 1px 0px rgba(255, 255, 255, 0.2);
}

/* Metallic backgrounds with dark pastel tones */
.policy-badges .bg-success {
    background: linear-gradient(135deg, #1a3a2e 0%, #27503e 50%, #1a3a2e 100%) !important;
}

.policy-badges .bg-warning {
    background: linear-gradient(135deg, #3a2f1a 0%, #504127 50%, #3a2f1a 100%) !important;
}

.policy-badges .bg-secondary {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%) !important;
}

/* Subtle moving light effect */
.policy-badges .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    animation: badge-shine 4s ease-in-out infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* Light theme adjustments */
.light-theme .policy-badges .badge {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Staking card buttons - Metallic luxury style */
.staking-card .btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Metallic shine effect */
.staking-card .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s;
}

.staking-card .btn:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

/* Sharp border light animation */
.staking-card .btn {
    background-clip: padding-box;
}

.staking-card .btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: border-light 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.staking-card .btn:hover::after {
    opacity: 1;
}

@keyframes border-light {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Primary button - Deep metallic blue */
.staking-card .btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    border-color: rgba(66, 153, 225, 0.3);
    color: #e2e8f0;
}

.staking-card .btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 50%, #2c5282 100%);
    border-color: rgba(66, 153, 225, 0.5);
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.3);
    transform: none;
}

/* Success button - Metallic emerald with animated stripes */
.staking-card .btn-success {
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.03) 3px,
            rgba(255, 255, 255, 0.03) 6px
        ),
        linear-gradient(135deg, #1a4731 0%, #276749 50%, #1a4731 100%);
    border-color: rgba(72, 187, 120, 0.3);
    color: #e6fffa;
    background-size: 200% 200%, 100% 100%;
    animation: stripe-move 20s linear infinite;
}

@keyframes stripe-move {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 60px 0, 0 0;
    }
}

.staking-card .btn-success:hover {
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.05) 3px,
            rgba(255, 255, 255, 0.05) 6px
        ),
        linear-gradient(135deg, #276749 0%, #38a169 50%, #276749 100%);
    border-color: rgba(72, 187, 120, 0.5);
    box-shadow: 0 4px 16px rgba(56, 161, 105, 0.3);
    transform: none;
    background-size: 200% 200%, 100% 100%;
    animation: stripe-move 10s linear infinite; /* 호버시 더 빠르게 */
}

/* Danger button - Metallic ruby */
.staking-card .btn-danger {
    background: linear-gradient(135deg, #742a2a 0%, #9b2c2c 50%, #742a2a 100%);
    border-color: rgba(252, 129, 129, 0.3);
    color: #fed7d7;
    padding: 0.375rem 0.75rem;
}

.staking-card .btn-danger:hover {
    background: linear-gradient(135deg, #9b2c2c 0%, #c53030 50%, #9b2c2c 100%);
    border-color: rgba(252, 129, 129, 0.5);
    box-shadow: 0 4px 16px rgba(197, 48, 48, 0.3);
    transform: none;
}

/* Enhanced border light for each button type */
.staking-card .btn-primary::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(66, 153, 225, 0.8) 40%,
        rgba(147, 197, 253, 1) 50%,
        rgba(66, 153, 225, 0.8) 60%,
        transparent 100%
    );
    filter: blur(1px);
}

.staking-card .btn-success::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(72, 187, 120, 0.8) 40%,
        rgba(134, 239, 172, 1) 50%,
        rgba(72, 187, 120, 0.8) 60%,
        transparent 100%
    );
    filter: blur(1px);
}

.staking-card .btn-danger::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(252, 129, 129, 0.8) 40%,
        rgba(254, 178, 178, 1) 50%,
        rgba(252, 129, 129, 0.8) 60%,
        transparent 100%
    );
    filter: blur(1px);
}

/* ===== 명품 메탈 장식 스타일 (루이비통/구찌 느낌) ===== */
/* 정책 배지 - 고급 메탈 질감 */
.policy-badges .badge {
    /* 기본 메탈 질감 */
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #2a2a2a 0%, 
            #3d3d3d 20%, 
            #4a4a4a 40%, 
            #3d3d3d 60%, 
            #2a2a2a 80%,
            #1a1a1a 100%);
    background-size: 100% 100%, 100% 100%, 200% 200%;
    
    /* 테두리 제거 */
    border: none !important;
    
    box-shadow: 
        /* 상단 하이라이트 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        /* 하단 그림자 */
        inset 0 -1px 2px rgba(0, 0, 0, 0.8),
        /* 전체적인 입체감 */
        inset 0 0 10px rgba(0, 0, 0, 0.3),
        /* 외부 그림자 */
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* 텍스트 스타일 - 깊게 각인된 효과 */
    color: #d8d8d8;
    text-shadow: 
        /* 메인 각인 효과 */
        0 -1px 1px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.8),
        /* 추가 깊이 */
        0 2px 4px rgba(0, 0, 0, 0.6),
        /* 내부 그림자 */
        inset 0 0 3px rgba(0, 0, 0, 0.5);
    
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 12px; /* 글자 크기 증가 */
    text-transform: none; /* 대소문자 그대로 표시 */
    font-family: 'Arial', sans-serif;
    padding: 6px 12px; /* 패딩 증가 */
    
    /* 메탈 반사 애니메이션 */
    position: relative;
    overflow: hidden;
}

/* 배지 안의 날짜 텍스트 스타일 */
.policy-badges .badge .badge-date {
    color: #ffd700; /* 골드 색상 */
    font-weight: 400;
    font-size: 11px;
    margin-left: 5px;
    text-shadow: 
        0 0 3px rgba(255, 215, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 성공 상태 - 다크 그린 메탈 */
.policy-badges .bg-success {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(144, 238, 144, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(144, 238, 144, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #1a3a2e 0%, 
            #2d5042 20%, 
            #3a6050 40%, 
            #2d5042 60%, 
            #1a3a2e 80%,
            #0f2a1e 100%);
}

/* 경고 상태 - 브론즈 메탈 */
.policy-badges .bg-warning {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 193, 7, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 193, 7, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #3a2f1a 0%, 
            #50421d 20%, 
            #6a5020 40%, 
            #50421d 60%, 
            #3a2f1a 80%,
            #2a1f0f 100%);
    color: #ffffff !important; /* 텍스트를 흰색으로 */
}

/* 경고 배지의 텍스트 스타일 오버라이드 */
.policy-badges .bg-warning.badge {
    color: #ffffff !important;
}

.policy-badges .bg-warning .badge-date {
    color: #ffed4e !important; /* 더 밝은 노란색 */
}

/* 비활성 상태 - 건메탈 */
.policy-badges .bg-secondary {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(192, 192, 192, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(192, 192, 192, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #1a1a1a 0%, 
            #2d2d2d 20%, 
            #3a3a3a 40%, 
            #2d2d2d 60%, 
            #1a1a1a 80%,
            #0f0f0f 100%);
}

/* 취소 상태 - 다크 레드 메탈 (부드럽고 은은한 붉은색) */
.policy-badges .bg-danger {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(220, 53, 69, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(220, 53, 69, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #2a1a1d 0%, 
            #3d2629 20%, 
            #4a2f32 40%, 
            #3d2629 60%, 
            #2a1a1d 80%,
            #1a0f11 100%);
    color: #ffffff !important;
}

/* 취소 배지의 텍스트 스타일 */
.policy-badges .bg-danger.badge {
    color: #ffffff !important;
}

.policy-badges .bg-danger .badge-date {
    color: #ff9999 !important; /* 부드러운 분홍빛 */
}

/* 취소된 스테이킹 카드 스타일 - 전체적으로 은은한 붉은 톤 */
.staking-card.cancelled-staking {
    opacity: 0.8;
    border: 1px solid rgba(220, 53, 69, 0.4);
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 53, 69, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            rgba(42, 26, 29, 0.6) 0%, 
            rgba(30, 20, 22, 0.4) 15%,
            var(--bg-card) 25%,
            var(--bg-card) 75%,
            rgba(30, 20, 22, 0.4) 85%,
            rgba(42, 26, 29, 0.6) 100%);
    box-shadow: 
        inset 0 0 20px rgba(220, 53, 69, 0.1),
        0 4px 12px rgba(220, 53, 69, 0.2),
        var(--shadow-md);
}

/* 취소된 카드 호버 효과 */
.staking-card.cancelled-staking:hover {
    border-color: rgba(220, 53, 69, 0.6);
    box-shadow: 
        inset 0 0 25px rgba(220, 53, 69, 0.15),
        0 6px 20px rgba(220, 53, 69, 0.25),
        var(--shadow-lg);
}

/* 취소된 카드의 헤더 */
.staking-card.cancelled-staking .staking-header {
    background: 
        linear-gradient(135deg, 
            rgba(220, 53, 69, 0.08) 0%,
            transparent 40%,
            transparent 60%,
            rgba(220, 53, 69, 0.08) 100%);
}

/* 취소된 카드의 금액 */
.staking-card.cancelled-staking .staking-amount {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

/* 취소된 카드의 프로그레스 섹션 */
.staking-card.cancelled-staking .progress-section {
    background: rgba(220, 53, 69, 0.05);
    border-radius: 6px;
    padding: 8px;
    margin: 8px -8px;
}

/* 취소된 카드의 프로그레스 바 배경 */
.staking-card.cancelled-staking .progress {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* 취소된 카드의 프로그레스 바 */
.staking-card.cancelled-staking .progress-bar {
    background: linear-gradient(135deg, 
        #dc3545 0%, 
        #b02a37 50%, 
        #a71e2a 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 3px rgba(220, 53, 69, 0.5);
}

/* 취소된 카드의 통계 섹션 */
.staking-card.cancelled-staking .staking-stats {
    background: rgba(220, 53, 69, 0.03);
    border-radius: 6px;
    padding: 8px;
    margin: 8px -8px;
}

/* 취소된 카드의 수익 값 */
.staking-card.cancelled-staking .stat-value.success {
    color: var(--text-muted) !important;
    text-decoration: line-through;
    opacity: 0.6;
}

/* 취소된 카드의 모든 버튼 */
.staking-card.cancelled-staking .btn {
    opacity: 0.5;
    border-color: rgba(220, 53, 69, 0.3);
    background: 
        linear-gradient(135deg, 
            rgba(220, 53, 69, 0.1) 0%,
            rgba(220, 53, 69, 0.05) 100%);
    color: #aaa;
    cursor: not-allowed;
}

/* 취소된 카드의 정책 배지들 */
.staking-card.cancelled-staking .policy-badges {
    opacity: 0.5;
    filter: grayscale(50%);
}

/* 취소된 카드의 아이콘 */
.staking-card.cancelled-staking .staking-icon img {
    opacity: 0.6;
    filter: grayscale(30%) sepia(20%) hue-rotate(350deg) saturate(0.8);
}

/* 스테이킹 카드 상태 배지 스타일 - 더 큰 크기 */
.status-badge.badge {
    position: relative;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.9),
        inset 0 0 12px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.6);
    min-width: 90px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    color: #ffffff !important;
}

/* 배지 내부 텍스트 스타일 강화 - 모든 텍스트 흰색 */
.status-badge.badge span {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* 성공 상태 - 다크 그린 메탈 */
.status-badge.bg-success {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(144, 238, 144, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(144, 238, 144, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #1a3a2e 0%, 
            #2d5042 20%, 
            #3a6050 40%, 
            #2d5042 60%, 
            #1a3a2e 80%,
            #0f2a1e 100%);
    color: #ffffff !important;
}

.status-badge.bg-success span {
    color: #ffffff !important;
}

/* 경고 상태 - 밝은 골드 메탈 (대기중) */
.status-badge.bg-warning {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 193, 7, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 193, 7, 0.3) 0%, transparent 40%),
        linear-gradient(135deg, 
            #4a3b1a 0%, 
            #6b5520 20%, 
            #8b6e28 40%, 
            #a68833 50%,
            #8b6e28 60%,
            #6b5520 80%,
            #4a3b1a 100%);
    color: #ffffff !important;
    border-color: rgba(255, 193, 7, 0.4);
}

/* 대기중 상태 텍스트 강화 */
.status-badge.bg-warning span {
    color: #ffffff !important;
}

/* 비활성 상태 - 건메탈 */
.status-badge.bg-secondary {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(192, 192, 192, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(192, 192, 192, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #1a1a1a 0%, 
            #2d2d2d 20%, 
            #3a3a3a 40%, 
            #2d2d2d 60%, 
            #1a1a1a 80%,
            #0f0f0f 100%);
    color: #ffffff !important;
}

.status-badge.bg-secondary span {
    color: #ffffff !important;
}

/* 취소 상태 - 다크 레드 메탈 */
.status-badge.bg-danger {
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(220, 53, 69, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(220, 53, 69, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, 
            #2a1a1d 0%, 
            #3d2629 20%, 
            #4a2f32 40%, 
            #3d2629 60%, 
            #2a1a1d 80%,
            #1a0f11 100%);
    color: #ffffff !important;
}

.status-badge.bg-danger span {
    color: #ffffff !important;
}

/* 상태 배지 광택 효과 - 버튼 안에서만 움직임 */
.status-badge.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 45%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.15) 55%, 
        transparent 100%
    );
    animation: metalShine 4s ease-in-out infinite;
    border-radius: inherit;
    overflow: hidden;
}

/* 상태 배지 호버 효과 */
.status-badge.badge:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 움직이는 광택 효과 */
.policy-badges .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 45%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.15) 55%, 
        transparent 100%
    );
    animation: metalShine 6s ease-in-out infinite;
}

@keyframes metalShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* 호버 효과 - 약간 밝아지는 효과 */
.policy-badges .badge:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 2px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== SWEETALERT2 커스텀 스타일 ===== */
.swal2-popup {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-xl) !important;
    color: var(--text-primary) !important;
}

.swal2-title {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* SweetAlert2 HTML 컨테이너 내 스타일링 */
.swal2-html-container .fee-details {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.swal2-html-container .fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.swal2-html-container .fee-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--accent-gold);
}

.swal2-html-container .fee-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.swal2-html-container .fee-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.swal2-html-container .fee-value.penalty {
    color: var(--accent-danger);
    font-weight: 600;
}

.swal2-html-container .fee-value.refund {
    color: var(--accent-success);
    font-weight: 600;
}

.swal2-html-container .fee-value.total {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 16px;
}

.swal2-html-container .warning-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-danger);
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
    color: var(--accent-danger);
    font-size: 13px;
    line-height: 1.5;
}

.swal2-html-container .info-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-info);
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
    color: var(--accent-info);
    font-size: 13px;
    line-height: 1.5;
}

/* SweetAlert2 버튼 스타일 */
.swal2-confirm {
    background: var(--accent-danger) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.swal2-cancel {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
    background: var(--bg-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* SweetAlert2 아이콘 스타일 */
.swal2-icon.swal2-warning {
    border-color: var(--accent-warning) !important;
    color: var(--accent-warning) !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
    color: var(--accent-warning) !important;
}

/* 다크/라이트 테마별 추가 스타일 */
:root[data-theme="light"] .swal2-popup {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1) !important;
}

:root[data-theme="light"] .swal2-html-container .fee-details {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .swal2-cancel {
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #2d2d2d !important;
}

:root[data-theme="light"] .swal2-cancel:hover {
    background: #e9ecef !important;
}