/* Biscrow 테마 - 암호화폐 마켓플레이스 스타일 */

:root {
    --primary-bg: #0f0f23;
    --secondary-bg: #1a1a2e;
    --card-bg: #1a1a2e;
    --border-color: #2a2a3e;
    --border-light: #3a3a5e;
    --accent-color: #00d4ff;
    --accent-dark: #0099cc;
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --text-muted: #888;
    --success-color: #4ecdc4;
    --warning-color: #ffd700;
    --danger-color: #ff4757;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
    --gradient-danger: linear-gradient(135deg, #ff6b6b, #ee5a52);
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 10px 30px rgba(0, 212, 255, 0.2);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* 전체 래퍼 설정 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* 헤더 */
.header {
    background: var(--gradient-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

/* 모바일 사이드바 토글 */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--border-color);
}

/* 검색 */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--border-color);
    border: 2px solid var(--border-light);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: var(--secondary-bg);
}

.search-box::placeholder {
    color: var(--text-muted);
}

/* 사용자 정보 */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-balance {
    background: var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.wallet-balance i {
    color: var(--warning-color);
}

.krw-amount {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.notification-btn {
    position: relative;
    background: var(--border-color);
    border: none;
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: var(--border-light);
    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;
    font-weight: bold;
}

/* 프로필 드롭다운 */
.user-profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.profile-menu a:hover {
    background: var(--border-color);
    color: var(--accent-color);
}

.profile-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* 사이드바 */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: var(--sidebar-width);
    height: calc(100vh - 80px);
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

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

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    gap: 1rem;
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(90deg, var(--border-color), rgba(0, 212, 255, 0.1));
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.menu-badge {
    position: absolute;
    right: 1rem;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 사이드바 오버레이 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 메인 콘텐츠 - 수정된 부분 */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    background: var(--primary-bg);
    width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

/* 히어로 섹션 */
.hero-section {
    background: var(--gradient-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 0.3rem;
}

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

/* 페이지 헤더 */
.page-header {
    background: var(--gradient-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

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

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

/* 버튼 스타일 */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ed573);
    color: white;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

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

.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    background: var(--border-color);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-heavy);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent-color);
}

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

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

/* 최근 섹션 */
.recent-section {
    margin-bottom: 3rem;
}

/* 상품 그리드 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--border-color), var(--border-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--accent-color);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-usdt {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.stars {
    color: var(--warning-color);
}

.delivery-time {
    background: var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

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

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    position: relative;
}

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

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

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

.message-btn {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    color: white;
}

.fab-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;
    font-weight: bold;
}

/* 푸터 */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-title {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.footer-subtitle {
    font-size: 1.1rem;
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin: 0;
}

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

.footer-stats span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 토스트 알림 */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 300px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-info {
    border-left: 4px solid var(--accent-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
}

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

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

/* 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .footer {
        margin-left: 0;
        width: 100%;
    }
    
    .header-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .search-container {
        margin: 0 0.5rem;
        max-width: none;
        flex: 1;
    }
    
    .user-info {
        gap: 0.5rem;
    }
    
    .wallet-balance {
        display: none;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .toast-container {
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
        margin-top: 70px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .search-box {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .notification-btn {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
}

/* 다크모드 전환 효과 */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
}

/* 포커스 접근성 */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 선택 영역 스타일 */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* 인쇄 스타일 */
@media print {
    .header,
    .sidebar,
    .floating-actions,
    .footer {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
/* Biscrow 회원 프로필 드롭다운 스타일 */
.sv_wrap {
    position: relative;
    display: inline-block;
}

.sv_member {
    display: inline-flex;
    align-items: center;
    color: #00d4ff !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sv_member:hover {
    color: #ffffff !important;
}

.sv_member .profile_img {
    margin-right: 0.5rem;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sv_member .profile_img img {
    width: 22px;
    height: 22px;
    object-fit: cover;
}

/* 드롭다운 메뉴 */
.sv {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #3a3a5e;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.sv.sv_on {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

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

.sv a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(58, 58, 94, 0.5);
}

.sv a:last-child {
    border-bottom: none;
}

.sv a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff !important;
    padding-left: 1.5rem;
}

.sv a:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sv a:hover:before {
    opacity: 1;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .sv {
        left: auto;
        right: 0;
        min-width: 180px;
    }
    
    .sv a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* 다크 모드에서 더 나은 가시성을 위한 추가 스타일 */
.sv::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-left: 1px solid #3a3a5e;
    border-top: 1px solid #3a3a5e;
    transform: rotate(45deg);
}

/* 호버 시 광택 효과 */
.sv a {
    position: relative;
    overflow: hidden;
}

.sv a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sv a:hover::after {
    left: 100%;
}
/* Biscrow 캡차 디자인 - 실제 구조에 맞춤 */
#captcha {
    background: rgba(42, 42, 62, 0.3);
    border: 1px solid #3a3a5e !important;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 캡차 제목 */
#captcha legend {
    display: block !important;
    width: 100%;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3a3a5e;
}

#captcha legend label {
    color: #00d4ff !important;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

#captcha legend label::before {
    content: '\f084';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

#captcha_img {
    margin-right:0.5rem;
    display:inline;
}
/* 캡차 이미지 */
#captcha_img {
    display: block;
    border: 2px solid #3a3a5e;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#captcha_img:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* 캡차 입력 필드 */
#captcha_key {
    background: rgba(22, 33, 62, 0.8) !important;
    border: 2px solid #3a3a5e !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.3s ease;
    width: auto !important;
    margin-right: 0.5rem;
}

#captcha_key:focus {
    border-color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    outline: none;
}

/* 캡차 버튼들 */
#captcha_mp3,
#captcha_reload {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    position: relative;
    overflow: hidden;
}

#captcha_mp3:hover,
#captcha_reload:hover {
    background: #00d4ff;
    color: #0f0f23;
    transform: translateY(-2px);
}

/* 버튼 아이콘 추가 */
#captcha_mp3 span::before {
    content: '\f028';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.3rem;
}

#captcha_reload span::before {
    content: '\f021';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.3rem;
}

/* 캡차 정보 텍스트 */
#captcha_info {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #3a3a5e;
    text-align: center;
}

/* 버튼 호버 효과 */
#captcha_mp3::after,
#captcha_reload::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#captcha_mp3:hover::after,
#captcha_reload:hover::after {
    width: 100%;
    height: 100%;
}

/* 새로고침 애니메이션 */
#captcha_reload:active span::before {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 576px) {
    #captcha {
        padding: 1rem;
    }
    
    #captcha_img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    
    #captcha_key {
        width: 100% !important;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    #captcha_mp3,
    #captcha_reload {
        width: calc(50% - 0.25rem);
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        margin-right: 0.25rem;
    }
    
    #captcha_mp3 span,
    #captcha_reload span {
        display: none;
    }
    
    #captcha_mp3 span::before,
    #captcha_reload span::before {
        margin-right: 0;
    }
}

/* 다크 모드 최적화 */
#captcha img {
    filter: brightness(1.1) contrast(1.1);
}

/* 입력 성공 효과 */
#captcha_key.success {
    border-color: #4ecdc4 !important;
    background: rgba(78, 205, 196, 0.1) !important;
}

/* 입력 에러 효과 */
#captcha_key.error {
    border-color: #ff4757 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.sound_only {
    display:none;
}
.cke_sc {
    display:none;
}
/* 프로필 버튼 내 이미지 스타일 */
.notification-btn.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;  /* 패딩 제거 */
}

.notification-btn.profile-btn .profile-img {
    width: 100%;  /* 버튼 전체 너비 */
    height: 100%;  /* 버튼 전체 높이 */
    object-fit: cover;  /* 이미지 비율 유지하며 잘림 */
    border-radius: 50%;  /* 원형으로 만들기 */
}

/* 기존 notification-btn 스타일도 함께 포함 */
.notification-btn {
    position: relative;
    background: #2a2a3e;
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: #3a3a5e;
    transform: scale(1.1);
}

.notification-btn i {
    font-size: 1.1rem;
}

/* 알림 뱃지 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 프로필 드롭다운 메뉴 */
.user-profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a2e;
    border: 1px solid #3a3a5e;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.profile-menu.active {
    display: block;
}

.profile-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-menu a:hover {
    background: #2a2a3e;
    color: #00d4ff;
}

.profile-menu a i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.profile-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #3a3a5e;
}