/* Market Hub Toggle */
.market-trigger-bar {
    position: fixed;
    right: 20px;
    top: 175px;
    z-index: 10001;
}

.market-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.4);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-btn i {
    font-size: 1.5rem;
}

.market-btn span {
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: 3px;
    font-family: 'Syncopate';
}

.market-btn:hover {
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.6);
}

/* Market Hub Overlay */
.market-hub-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: 0.5s;
}

.market-hub-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.market-hub-container {
    width: 95%;
    height: 90vh;
    max-width: 1600px;
    background: rgba(10, 15, 20, 0.9);
    border: 1px solid rgba(0, 206, 201, 0.3);
    border-radius: 30px;
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 206, 201, 0.1);
}

.market-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.market-hub-title h2 {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 5px;
    font-size: 2rem;
    color: #fff;
    margin: 0;
}

.market-hub-title p {
    color: #00cec9;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.market-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
}

/* Three Columns Layout */
.market-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    overflow: hidden;
}

.market-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.market-col-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.market-col-header h3 {
    margin: 0;
    font-family: 'Syncopate';
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.col-profit h3 {
    color: #00b894;
}

.col-loss h3 {
    color: #ff7675;
}

.col-favs h3 {
    color: #fdcb6e;
}

.market-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.market-list::-webkit-scrollbar {
    width: 4px;
}

.market-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.stock-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.stock-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.stock-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    color: #aaa;
}

.stock-info {
    flex: 1;
}

.stock-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.stock-symbol {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.stock-values {
    text-align: right;
}

.stock-price {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
}

.stock-change {
    font-size: 0.75rem;
    font-weight: bold;
}

.stock-change.up {
    color: #00b894;
}

.stock-change.down {
    color: #ff7675;
}

/* Credibility Modal */
.cred-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: #1a1a1a;
    border: 1px solid #00cec9;
    border-radius: 20px;
    padding: 2rem;
    z-index: 10003;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.cred-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.cred-logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
}

.cred-content p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
}

.fav-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    margin-left: 10px;
}

.fav-toggle.active {
    color: #fdcb6e;
}

/* Responsive Column */
@media (max-width: 1000px) {
    .market-columns {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .market-column {
        min-height: 400px;
    }
}