/* BitCredit 스타일시트 */

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

/* 기본 텍스트 색상 설정 */
p, span, div, label, h1, h2, h3, h4, h5, h6, li, td, th, a, button {
    color: inherit;
}

/* 모든 텍스트 요소에 흰색 강제 적용 */
.content-area * {
    color: var(--white) !important;
}

/* 시간, 통계, 정보 텍스트 */
.game-time-display,
.stat-card,
.transaction-item,
.business-item,
.ipo-card,
.stock-item,
.futures-item,
.realestate-item,
.bond-item,
.loan-item,
.deposit-item {
    color: var(--white) !important;
}

/* 폼 레이블과 설명 텍스트 */
.form-group label,
.form-group span,
.input-group label,
.input-group span,
.description,
.help-text,
.info-text {
    color: var(--white) !important;
}

/* 접근성을 위한 스크린리더 전용 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--white);
}

/* 스크린 레이아웃 */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* 로그인 화면 */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white);
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* 탭 스타일 */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* 폼 스타일 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
}

/* select 옵션 스타일 */
select option {
    background: #1f2937;
    color: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 버튼 스타일 */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #5558e3;
    transform: translateY(-2px);
}

/* 역할 선택 */
.role-selection {
    margin: 20px 0;
}

.role-selection h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.role-card {
    position: relative;
    cursor: pointer;
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.role-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
}

.role-card input[type="radio"]:checked + .role-content {
    background: var(--primary);
    border-color: var(--primary);
}

.role-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.role-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 5px;
}

.role-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
}

/* 상단바 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* 게임 시간 표시 */
.game-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.time-icon {
    font-size: 20px;
    animation: tick 2s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.game-time {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.time-ratio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-left: 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    color: var(--white);
    font-weight: 600;
}

.role-badge {
    padding: 4px 10px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
}

.balance-info,
.credit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.credit-grade {
    font-size: 18px;
    font-weight: 700;
    color: var(--warning);
}

.btn-logout {
    padding: 8px 20px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 메인 레이아웃 */
.main-layout {
    display: flex;
    height: calc(100vh - 60px);
}

/* 사이드바 */
.sidebar {
    width: 200px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    padding: 20px 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.menu-item:hover {
    background: var(--glass);
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.menu-icon {
    font-size: 20px;
}

/* 콘텐츠 영역 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 28px;
}

.section h3 {
    color: var(--white);
    margin: 25px 0 15px;
    font-size: 20px;
}

/* 통계 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-value {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
}

/* 거래 리스트 */
.transaction-list {
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--white);
}

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

/* 폼 그룹 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 500;
}

.help-text {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 5px;
}

/* 대출 미리보기 */
.loan-preview,
.transfer-preview {
    background: var(--glass);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.loan-preview p,
.transfer-preview p {
    color: var(--white);
    margin-bottom: 8px;
}

.loan-preview span,
.transfer-preview span {
    font-weight: 600;
    color: var(--warning);
}

/* 정보 메시지 */
.info-message {
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.no-data {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px;
}

/* 은행 정책 카드 */
.policy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.policy-card {
    position: relative;
    cursor: pointer;
}

.policy-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.policy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
}

.policy-card input[type="radio"]:checked + .policy-content {
    background: var(--primary);
    border-color: var(--primary);
}

.policy-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.policy-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 5px;
}

.policy-rates {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
}

/* 리더보드 */
.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.leaderboard-list {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--glass);
    border-radius: 10px;
    color: var(--white);
}

.rank {
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    width: 40px;
}

.rank.gold {
    color: #ffd700;
}

.rank.silver {
    color: #c0c0c0;
}

.rank.bronze {
    color: #cd7f32;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.player-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.score-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

/* 은행 설정 스타일 */
.bank-settings {
    padding: 20px;
    background: var(--glass);
    border-radius: 10px;
    margin-bottom: 20px;
}

.bank-settings h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.rate-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.rate-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rate-control label {
    display: block;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 500;
}

.rate-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.rate-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.rate-input:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rate-input.valid {
    border-color: var(--success);
}

.rate-input.invalid {
    border-color: var(--danger);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 숫자 입력 스핀 버튼 숨기기 */
.rate-input::-webkit-inner-spin-button,
.rate-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rate-input[type=number] {
    -moz-appearance: textfield;
}

.rate-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

/* 은행 자동심사 설정 스타일 */
.auto-approval-settings {
    padding: 15px;
    background: var(--glass);
    border-radius: 10px;
    margin-top: 10px;
}

.auto-approval-settings .form-group {
    margin-bottom: 15px;
}

.auto-approval-settings label {
    display: block;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 500;
}

.auto-approval-settings input[type="number"] {
    width: 200px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--white);
    margin-right: 10px;
}

.auto-approval-settings input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.auto-approval-settings small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 5px;
}

#autoApprovalOptions {
    margin-left: 20px;
    transition: all 0.3s ease;
}

/* 대출 신청 심사 방식 선택 스타일 */
.approval-preference {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--glass);
    border-radius: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--white);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.radio-label span {
    flex: 1;
    font-size: 14px;
}

.approval-info {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* 사업 관련 스타일 */
.my-businesses {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.business-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s;
}

.business-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.business-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
}

.business-type {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(99, 102, 241, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.business-stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

.btn-sell {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
}

.btn-sell:hover {
    background: #dc2626;
}

/* IPO 관련 스타일 */
.ipo-management {
    padding: 20px;
    background: var(--glass);
    border-radius: 10px;
    margin-top: 30px;
}

.ipo-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.ipo-options button {
    padding: 10px 20px;
}

.ipo-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    animation: fadeIn 0.3s;
}

.ipo-status .success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 15px;
    border-radius: 8px;
    color: #10b981;
}

.ipo-status .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 15px;
    border-radius: 8px;
    color: #ef4444;
}

.ipo-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.ipo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

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

.ipo-header h4 {
    color: var(--white);
    margin: 0;
}

.ipo-header .ticker {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.ipo-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ipo-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.btn-info {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-info:hover {
    background: #2563eb;
}

/* 투자 관련 스타일 */
.investment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 투자 탭 버튼 텍스트 색상 명시적 설정 */
.investment-tabs .tab-btn {
    color: var(--white) !important;
    opacity: 0.8;
    font-weight: 500;
}

.investment-tabs .tab-btn.active {
    opacity: 1;
    font-weight: 600;
}

.investment-tabs .tab-btn:hover {
    opacity: 1;
}

.investment-tab {
    display: none;
}

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

.crypto-list,
.property-list,
.stock-list,
.futures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crypto-item,
.property-item,
.stock-item,
.futures-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.crypto-info,
.property-info,
.stock-info,
.futures-info {
    flex: 1;
}

.crypto-name,
.property-name,
.stock-name,
.futures-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white) !important;
    margin-bottom: 5px;
}

.crypto-symbol,
.property-location,
.stock-symbol {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 주식 전용 스타일 추가 */
.stock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stock-details {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.stock-sector {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 3px;
}

.stock-volume {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.stock-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 20px;
}

.stock-change {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 5px;
    margin-top: 5px;
}

.stock-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.stock-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.crypto-price,
.property-price,
.stock-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
    margin: 10px 0;
}

.price-change {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 5px;
}

.price-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.crypto-actions,
.property-actions,
.stock-actions {
    display: flex;
    gap: 10px;
}

.btn-buy,
.btn-sell {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy {
    background: var(--success);
    color: var(--white);
}

.btn-sell {
    background: var(--danger);
    color: var(--white);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 사업 관련 스타일 */
.business-create,
.business-preview {
    background: var(--glass);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.my-businesses {
    display: grid;
    gap: 15px;
}

.business-item {
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.business-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.business-stat {
    text-align: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.stat-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

/* 필터 옵션 */
.filter-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-options select {
    flex: 1;
    max-width: 200px;
}

/* 포트폴리오 스타일 */
.portfolio-details {
    display: grid;
    gap: 15px;
}

.portfolio-item {
    padding: 15px;
    background: var(--glass);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-info {
    flex: 1;
}

.asset-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 5px;
}

.asset-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.asset-value {
    text-align: right;
}

.current-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.profit-rate {
    font-size: 14px;
    margin-top: 5px;
}

.profit-rate.positive {
    color: var(--success);
}

.profit-rate.negative {
    color: var(--danger);
}

/* 주식 목록 텍스트 강제 흰색 설정 */
#stockList .stock-item * {
    color: rgba(255, 255, 255, 0.9) !important;
}

#stockList .stock-name {
    color: #ffffff !important;
    font-weight: 600;
}

#stockList .stock-symbol {
    color: rgba(255, 255, 255, 0.8) !important;
}

#stockList .stock-sector,
#stockList .stock-volume {
    color: rgba(255, 255, 255, 0.6) !important;
}

#stockList .stock-price {
    color: #10b981 !important;
}

#stockList .stock-change.positive {
    color: #10b981 !important;
}

#stockList .stock-change.negative {
    color: #ef4444 !important;
}

/* 데이터 없음 메시지도 흰색으로 */
.no-data {
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: center;
    padding: 20px;
}

/* 리더보드 스타일 */
.leaderboard-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.leaderboard-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.leaderboard-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-btn.active {
    background: var(--primary);
}

#leaderboardTitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.rank-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 20px;
}

.rank-gold .rank-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-silver .rank-number {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-bronze .rank-number {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.user-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.user-score {
    text-align: right;
}

.score-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 5px;
}

.credit-score {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.my-rank-info {
    padding: 15px;
    background: var(--primary);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.rank-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 0 5px;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 10px;
    }
    
    .menu-item {
        display: inline-flex;
        width: auto;
        margin-right: 10px;
    }
    
    .role-grid,
    .policy-options {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* P2P 거래소 스타일 */
.marketplace-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.marketplace-tab {
    display: none;
}

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

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.listing-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.listing-card h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 18px;
}

.listing-stats {
    margin: 15px 0;
}

.listing-stats .stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.listing-stats .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.listing-stats .value {
    color: var(--white);
    font-weight: 600;
}

.listing-stats .price {
    color: var(--warning);
    font-size: 18px;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-footer .seller {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.btn-buy {
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-cancel {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 차트 스타일 */
.chart-container {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    animation: fadeIn 0.3s;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.chart-header h4 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.chart-period {
    padding: 5px 10px;
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-period:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.chart-period.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.btn-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-close:hover {
    background: #ef4444;
    color: #ffffff;
}

#stockChartCanvas,
#cryptoChartCanvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 400px;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 10px;
}

.chart-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

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

/* ==================== 프리미엄 상점 스타일 ==================== */
.menu-item.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.menu-item.premium:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateX(5px);
}

.bnb-balance-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.bnb-info h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.bnb-amount {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.bnb-usd {
    font-size: 14px;
    opacity: 0.8;
    margin: 5px 0 0 0;
}

.btn-deposit {
    background: white;
    color: #f5576c;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-deposit:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.premium-category {
    margin-bottom: 40px;
}

.premium-category h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-limit {
    font-size: 14px;
    color: #ef4444;
    font-weight: normal;
}

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

.product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card.vip-tier.bronze {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205,127,50,0.05) 0%, white 100%);
}

.product-card.vip-tier.silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192,192,192,0.05) 0%, white 100%);
}

.product-card.vip-tier.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, white 100%);
}

.product-card.vip-tier.diamond {
    border-color: #b9f2ff;
    background: linear-gradient(135deg, rgba(185,242,255,0.1) 0%, white 100%);
}

.product-card.license.unique {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(168,85,247,0.05) 0%, white 100%);
}

.tier-badge {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
}

.product-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
}

.product-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #f59e0b;
    text-align: center;
    margin: 10px 0;
}

.product-card .price-usd {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 15px 0;
}

.product-card .benefits,
.product-card .pack-contents {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.product-card .benefits li,
.product-card .pack-contents li {
    padding: 5px 0;
    color: #374151;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.product-card .benefits li:before,
.product-card .pack-contents li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

.product-card .boost {
    font-size: 32px;
    font-weight: bold;
    color: #10b981;
    text-align: center;
    margin: 10px 0;
}

.product-card .duration,
.product-card .revenue,
.product-card .employees {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 5px 0;
}

.unique-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}

.btn-purchase {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-purchase:hover {
    background: #2563eb;
    transform: scale(1.02);
}

.my-premium-status {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    color: #1f2937; /* 진한 회색 텍스트 */
    border: 2px solid #a78bfa;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
}

.my-premium-status h3 {
    color: #111827; /* 제목은 더 진한 색상 */
}

.premium-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    background: linear-gradient(135deg, #ffeaa7 0%, #dfe6e9 100%);
    border: 1px solid #fdcb6e;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.2);
    align-items: center;
    gap: 10px;
}

.status-item.vip {
    border-left: 4px solid #ffd700;
}

.status-item.license {
    border-left: 4px solid #8b5cf6;
}

.status-item.booster {
    border-left: 4px solid #10b981;
}

.status-icon {
    font-size: 24px;
}

.status-name {
    flex: 1;
    font-weight: 500;
}

.status-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-date {
    color: #6b7280;
    font-size: 12px;
}

.my-premium-status .no-data {
    color: #6b7280; /* 회색 텍스트 */
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* BNB 충전 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-body {
    padding: 20px;
}

.deposit-instructions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.warning-box,
.deposit-address-box,
.memo-box,
.step-guide,
.exchange-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
}

.warning-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.warning-box h3 {
    color: #dc2626;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.deposit-address-box h3,
.memo-box h3,
.step-guide h3,
.exchange-info h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.address-container,
.memo-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.address-container code,
.memo-container code {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    color: #1f2937;
}

.user-memo {
    background: #fef3c7;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-copy {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #2563eb;
}

.memo-warning {
    color: #dc2626;
    font-weight: bold;
    margin: 10px 0 0 0;
    font-size: 14px;
}

.step-guide ol {
    margin: 0;
    padding-left: 20px;
}

.step-guide li {
    margin: 10px 0;
    color: #374151;
}

.exchange-info ul {
    margin: 0;
    padding-left: 20px;
}

.exchange-info li {
    margin: 5px 0;
    color: #374151;
}

.input-options {
    margin-top: 15px;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 6px;
}

.input-options p {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 14px;
}

.input-options ul {
    margin: 0;
    padding-left: 20px;
}

.input-options li {
    margin: 5px 0;
    font-size: 13px;
    color: #4b5563;
}