/* 비스크로 테마 메인 CSS */

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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-bg: #0f0f23;
    --dark-bg-light: #1a1a2e;
    --dark-bg-lighter: #2a2a3e;
    --dark-border: #3a3a5e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --sidebar-width: 280px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(135deg, var(--dark-bg-light) 0%, #16213e 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-bg-lighter);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo i {
    width: 20px;
    height: 20px;
    transition: none;
    box-shadow: 0px 0px;
}

.logo .logo-icon {
    color: var(--primary-color);
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-info {
    background: var(--dark-bg-lighter);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-balance {
    font-weight: 600;
    color: var(--primary-color);
}

.notification-btn {
    position: relative;
    background: var(--dark-bg-lighter);
    border: none;
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--dark-border);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* 사이드바 스타일 */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: var(--sidebar-width);
    height: calc(100vh - 70px);
    background: var(--dark-bg-light);
    border-right: 1px solid var(--dark-bg-lighter);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
    transform: translateX(-100%);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sidebar-menu {
    padding: 1rem 0;
}

.menu-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    font-size:0.9rem;
}

.menu-item:hover {
    background: var(--dark-bg-lighter);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item.active {
    background: var(--dark-bg-lighter);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.menu-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.submenu {
    margin-left: 2rem;
    display: none;
}

.menu-item.has-submenu::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu.open::after {
    transform: rotate(180deg);
}

.menu-item.has-submenu.open + .submenu {
    display: block;
}

.submenu .menu-item {
    margin-left: -10px;
    font-size: 0.8rem;
}

/* 메인 컨텐츠 */
.main-wrapper {
    margin-left: 0;
    padding-top: 70px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-expanded {
    margin-left: var(--sidebar-width);
}

/* 사이드바 확장 상태 */
.sidebar.expanded {
    transform: translateX(0);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 페이지 헤더 */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg-light), var(--dark-bg-lighter));
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--dark-border);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--dark-bg-lighter);
    color: var(--text-primary);
    border: 2px solid var(--dark-border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* 카테고리 그리드 */
.categories-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.category-card {
    background: var(--dark-bg-light);
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 거래 목록 섹션 */
.listings-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.listing-container {
    background: var(--dark-bg-light);
    border-radius: 20px;
    border: 1px solid var(--dark-border);
    padding: 2rem;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.listing-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.listing-item {
    display: block;
    background: var(--dark-bg-lighter);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.listing-item:last-child {
    margin-bottom: 0;
}

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

.listing-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.listing-category {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.listing-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.listing-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.seller-avatar i {
    font-size: 14px;
    color: var(--text-muted);
}

.seller-details {
    font-size: 0.9rem;
}

.seller-name {
    color: var(--text-primary);
    font-weight: 500;
}

.seller-rating {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.stars i {
    color: #ffd700;
    font-size: 0.8rem;
}

.stars .far {
    color: var(--text-muted);
}

.rating-score {
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.listing-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.listing-empty p {
    margin: 0;
}

.verification-badges {
    display: inline-flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
    align-items: center;
    vertical-align: middle;
}

.badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: var(--success-color);
    color: white;
    line-height: 1;
}

.badge i {
    font-size: 0.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge.telegram {
    background: #0088cc;
}

.badge.verified {
    background: var(--success-color);
}

/* 통계 섹션 */
.stats-section {
    background: var(--dark-bg-light);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--dark-border);
    margin-bottom: 3rem;
}

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

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
}

/* 플로팅 액션 버튼 */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.floating-btn-secondary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 오버레이 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-wrapper.sidebar-expanded {
        margin-left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 968px) {
    .listings-section {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

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

    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

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

    .wallet-info {
        display: none;
    }

    .floating-actions {
        bottom: 5rem;
    }

    .main-container {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .listing-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .listing-title {
        font-size: 1.2rem;
    }

    .listing-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .category-card {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.8rem;
    }
}

/* 모바일 - 작은 화면 */
@media (max-width: 480px) {
    .header {
        padding: 0.8rem 0;
    }

    .header-container {
        padding: 0 0.8rem;
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.5rem;
    }

    .logo .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .notification-btn {
        padding: 0.6rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .main-wrapper {
        padding-top: 60px;
    }

    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .main-container {
        padding: 0.8rem;
    }

    .hero-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 14px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .page-header {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        border-radius: 14px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .categories-section {
        margin-bottom: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .category-card {
        padding: 1rem 0.8rem;
        border-radius: 10px;
    }

    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .category-name {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .category-count {
        font-size: 0.75rem;
    }

    .listings-section {
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .listing-container {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .listing-header {
        margin-bottom: 1rem;
    }

    .listing-title {
        font-size: 1.1rem;
    }

    .listing-item {
        padding: 0.9rem;
        margin-bottom: 0.8rem;
        border-radius: 10px;
    }

    .listing-category {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }

    .listing-price {
        font-size: 1rem;
    }

    .listing-description {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .seller-avatar {
        width: 28px;
        height: 28px;
    }

    .seller-name {
        font-size: 0.85rem;
    }

    .seller-rating {
        font-size: 0.8rem;
    }

    .stars i {
        font-size: 0.7rem;
    }

    .stats-section {
        padding: 1.2rem;
        margin-bottom: 2rem;
        border-radius: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 0.8rem;
    }

    .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

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

    /* 사이드바 모바일 */
    .sidebar {
        width: 100%;
    }

    .menu-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .menu-section {
        padding: 1rem 1.5rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* 아주 작은 화면 */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .categories-grid {
        gap: 0.5rem;
    }

    .category-card {
        padding: 0.8rem 0.6rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 0.8rem;
    }

    .stats-grid {
        gap: 0.6rem;
    }

    .stat-icon {
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 1rem;
    }

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

/* 툴팁 */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Toast 알림 스타일 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-height: calc(100vh - 100px);
}

.toast-container::-webkit-scrollbar {
    display: none;
}

.toast-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.toast {
    background: var(--dark-bg-light);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    margin-bottom: 0;
}

.toast::-webkit-scrollbar {
    display: none;
}

.toast {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Toast 타입별 스타일 */
.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

/* 프로그레스 바 */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width linear;
    transform-origin: left;
}

.toast.success .toast-progress {
    background: var(--success-color);
}

.toast.error .toast-progress {
    background: var(--danger-color);
}

.toast.warning .toast-progress {
    background: var(--warning-color);
}

/* 모바일 반응형 Toast */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        left: 10px;
        right: 10px;
        bottom: auto;
        flex-direction: column;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

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

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

    .toast {
        animation: slideInMobile 0.3s ease-out;
    }

    .toast.hiding {
        animation: slideOutMobile 0.3s ease-out forwards;
    }
}

/* 푸터 스타일 */
.footer {
    background: var(--dark-bg-light);
    border-top: 1px solid var(--dark-border);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-expanded + .footer {
    margin-left: var(--sidebar-width);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-bg-lighter);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding: 1.5rem 0;
    margin-top: 2rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-expanded + .footer .footer-bottom {
    margin-left: 0;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
}

.footer-copyright p {
    margin-bottom: 0.5rem;
}

.footer-warning {
    font-size: 0.9rem;
    color: var(--warning-color);
}

/* 스크롤 위로 버튼 */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 900;
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.scroll-top-btn.show {
    display: flex;
}

/* 푸터 반응형 */
@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-section {
        margin-bottom: 0;
    }
}

/* 큰 화면에서 사이드바와 메인 컨테이너 조정 */
@media (min-width: 1700px) {
    .main-wrapper {
        margin-left: 0 !important;
        max-width: none !important;
        width: 100% !important;
        padding-left: calc(var(--sidebar-width) + 40px) !important;
        padding-right: 350px !important;
    }

    .main-wrapper.sidebar-expanded {
        margin-left: 0 !important;
        padding-left: calc(var(--sidebar-width) + 40px) !important;
        padding-right: 350px !important;
    }

    .main-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 2rem 20px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .sidebar {
        transform: translateX(0) !important;
        position: fixed !important;
        left: 0 !important;
        width: var(--sidebar-width) !important;
    }

    .sidebar.expanded {
        transform: translateX(0) !important;
    }

    /* 푸터도 사이드바 고려 */
    .footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: calc(var(--sidebar-width) + 40px) !important;
        padding-right: 350px !important;
    }

    .footer-bottom {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}


@media (max-width: 768px) {
    .floating-actions {
        bottom: 6rem;
        right: 1rem;
    }

    .scroll-top-btn {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }

    .footer {
        margin-left: 0;
    }

    .footer-bottom {
        margin-left: 0;
    }
}

/* 텔레그램 연동 페이지 스타일 - 다크 테마 */
.telegram-container {
    max-width: 600px;
    margin: 50px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.telegram-card {
    background: linear-gradient(135deg, var(--dark-bg-light), var(--dark-bg-lighter));
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    margin-bottom: 20px;
}

.telegram-header {
    padding: 30px;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.telegram-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.telegram-header .subtitle {
    margin-top: 10px;
    opacity: 0.9;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.telegram-body {
    background: var(--dark-bg-light);
    padding: 40px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

.telegram-body p {
    font-size: 16px;
    line-height: 1.6;
}

.telegram-body h4 {
    font-size: 22px;
}

.telegram-body h5 {
    font-size: 18px;
}

.telegram-body h6 {
    font-size: 16px;
}

.connection-status {
    text-align: center;
    margin-bottom: 30px;
}

.status-connected {
    color: var(--success-color);
}

.status-disconnected {
    color: var(--danger-color);
}

.status-checking {
    color: var(--warning-color);
}

.connection-method-tabs {
    display: flex;
    border-bottom: 2px solid var(--dark-border);
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.tab-button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

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

.tab-content {
    display: none;
}

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

.connection-animation {
    display: none;
    text-align: center;
    padding: 30px;
}

.connection-animation.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.connection-animation h5 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.connection-animation p {
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.success-animation {
    font-size: 50px;
    color: var(--success-color);
    animation: pulse 1.5s ease-in-out;
}

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

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

.btn-telegram {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    color: white;
    text-decoration: none;
}

.manual-key-input {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.manual-key-input h5 {
    color: var(--text-primary);
}

.key-display {
    background: var(--dark-bg);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 18px;
    text-align: center;
    word-break: break-all;
    color: var(--primary-color);
}

/* 텔레그램 연동 input 스타일 */
.telegram-body input[readonly] {
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    cursor: default;
}

.telegram-body input[readonly]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.telegram-copy-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.telegram-copy-container input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    font-size: 14px;
}

.telegram-copy-container .btn {
    flex-shrink: 0;
    padding: 12px 16px;
    white-space: nowrap;
}

@media (max-width: 500px) {
    .telegram-copy-container {
        flex-direction: column;
    }

    .telegram-copy-container input {
        width: 100%;
        min-width: unset;
    }

    .telegram-copy-container .btn {
        width: 100%;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-card h6 {
    color: var(--text-primary);
    margin: 10px 0 5px;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.steps-list li {
    background: var(--dark-bg-lighter);
    border: 1px solid var(--dark-border);
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 15px;
}

.steps-list li:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
}

/* 텔레그램 연동 상태별 스타일 */
.status-connected h4,
.status-disconnected h4,
.status-checking h4 {
    margin: 15px 0 10px;
}

.status-connected p,
.status-disconnected p,
.status-checking p {
    color: var(--text-secondary);
    margin: 5px 0;
}

/* 버튼 스타일 통합 */
.telegram-body .btn {
    background: var(--dark-bg-lighter);
    border: 2px solid var(--dark-border);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.telegram-body .btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.telegram-body .btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.telegram-body .btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

.telegram-body .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.telegram-body .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* 알림창 스타일 */
.telegram-body .alert {
    border-radius: 10px;
    border: 1px solid;
    padding: 1rem;
    margin: 1rem 0;
}

.telegram-body .alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.telegram-body .alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.telegram-body .alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.telegram-body .alert h5,
.telegram-body .alert h6 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.telegram-body .alert ul {
    margin: 0.5rem 0 0 1rem;
    color: var(--text-secondary);
}

.telegram-body .alert hr {
    border-color: currentColor;
    opacity: 0.3;
}

/* 알림 사이드바 스타일 */
.notification-sidebar {
    position: fixed;
    right: -400px;
    top: 82px;
    width: 400px;
    height: calc(100vh - 87px);
    background: var(--dark-bg-light);
    border-left: 1px solid var(--dark-border);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.notification-sidebar.active {
    right: 0;
}

.notification-header {
    background: linear-gradient(135deg, var(--dark-bg-light), var(--dark-bg-lighter));
    border-bottom: 1px solid var(--dark-border);
    padding: 1.5rem;
    position: relative;
}

.notification-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-title i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.notification-controls {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.notification-controls .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    flex: 1;
    min-width: 120px;
}

.notification-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
    background: var(--dark-bg-lighter);
}

.notification-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notification-content::-webkit-scrollbar {
    width: 6px;
}

.notification-content::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.notification-content::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 3px;
}

.notification-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.notification-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 3rem;
    color: var(--dark-border);
    margin-bottom: 1rem;
}

.notification-empty h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.notification-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.notification-item.unread {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.login {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.notification-icon.trade {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.notification-icon.deposit {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.notification-icon.withdrawal {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.notification-icon.message {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.notification-icon.dispute {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-title-text {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.notification-content-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

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

.notification-category {
    background: var(--dark-bg-lighter);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.notification-category.trade {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.notification-category.security {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.notification-category.payment {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.notification-category.system {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

/* 알림 버튼 활성화 상태 */
.notification-btn.has-unread {
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* 알림 오버레이 */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.notification-overlay.active {
    display: block;
}

/* 반응형 알림 사이드바 */
@media (max-width: 768px) {
    .notification-sidebar {
        width: 100%;
        right: -100%;
    }

    .notification-header {
        padding: 1rem;
    }

    .notification-title {
        font-size: 1.3rem;
    }

    .notification-controls {
        gap: 0.5rem;
    }

    .notification-controls .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-width: 100px;
    }

    .notification-item {
        padding: 1rem;
    }

    .notification-item-header {
        gap: 0.8rem;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .notification-title-text {
        font-size: 0.9rem;
    }

    .notification-content-text {
        font-size: 0.8rem;
    }
}

/* 로딩 상태 */
.notification-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.notification-loading .spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
    margin: 0 auto 1rem;
}


.page-header {
    background: linear-gradient(135deg, var(--dark-bg-light), var(--dark-bg-lighter));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--dark-border);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 간단한 푸터 레이아웃 */
.footer-simple {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
}

.footer-simple .footer-section {
    margin-bottom: 0;
    text-align: center;
}

.footer-simple .footer-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.footer-simple .footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-simple .footer-links li {
    margin-bottom: 0;
}

.footer-simple .footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-simple .footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding: 1.5rem 0;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

/* 푸터 소셜 섹션 */
.footer-social-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-section .social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-bg-lighter);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-section .social-link:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    transform: scale(1.1);
}

/* 푸터 반응형 */
@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .footer-simple .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-social-section {
        margin-top: 1rem;
    }
}