.market-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.breadcrumb {
    color: #a1a1aa;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.market-main h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.market-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    background: #18181b;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #27272a;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
}

.trading-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trade-option {
    background: #18181b;
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem;
}

.yes-option {
    border-color: #10b981;
}

.no-option {
    border-color: #ef4444;
}

.trade-option h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.yes-option h3 {
    color: #10b981;
}

.no-option h3 {
    color: #ef4444;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.probability {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

.trade-input {
    width: 100%;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-buy-yes, .btn-buy-no {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-yes {
    background: #10b981;
    color: white;
}

.btn-buy-yes:hover {
    background: #059669;
}

.btn-buy-no {
    background: #ef4444;
    color: white;
}

.btn-buy-no:hover {
    background: #dc2626;
}

.market-description {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.5rem;
}

.market-description h2 {
    margin-bottom: 1rem;
}

.market-description p {
    color: #a1a1aa;
    line-height: 1.8;
}

.activity-panel {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.5rem;
}

.activity-panel h3 {
    margin-bottom: 1rem;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #27272a;
    border-radius: 6px;
}

.trade-side {
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.trade-side.yes {
    background: #10b98120;
    color: #10b981;
}

.trade-side.no {
    background: #ef444420;
    color: #ef4444;
}

.trade-details {
    text-align: right;
}

.trade-time {
    color: #a1a1aa;
    font-size: 0.85rem;
}

@media (max-width: 968px) {
    .market-detail {
        grid-template-columns: 1fr;
    }
    
    .trading-panel {
        grid-template-columns: 1fr;
    }
}


.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #ef444420;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-success {
    background: #10b98120;
    border: 1px solid #10b981;
    color: #10b981;
}

.alert a {
    text-decoration: underline;
}


/* ===== RESPONSIVE DESIGN FOR MARKET PAGE ===== */

@media (max-width: 968px) {
    .market-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .market-sidebar {
        order: 2;
    }
    
    .market-main {
        order: 1;
    }
    
    .trading-panel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .market-detail {
        gap: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .market-main h1 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .market-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .stat {
        padding: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .trading-panel {
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .trade-option {
        padding: 1.2rem;
    }
    
    .trade-option h3 {
        font-size: 1.1rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
    
    .probability {
        font-size: 0.85rem;
    }
    
    .trade-input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn-buy-yes, .btn-buy-no {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .market-description {
        padding: 1.2rem;
    }
    
    .market-description h2 {
        font-size: 1.1rem;
    }
    
    .activity-panel {
        padding: 1.2rem;
    }
    
    .activity-panel h3 {
        font-size: 1rem;
    }
    
    .trade-item {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .market-main h1 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .trade-option {
        padding: 1rem;
    }
    
    .trade-option h3 {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .fee-display {
        font-size: 0.8rem !important;
    }
    
    .market-description {
        padding: 1rem;
    }
    
    .market-description h2 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .market-description p {
        font-size: 0.9rem;
    }
    
    .activity-panel {
        padding: 1rem;
    }
    
    .trade-side {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .trade-details {
        font-size: 0.85rem;
    }
    
    .trade-time {
        font-size: 0.75rem;
    }
}


/* Share Section */
.share-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.share-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #e4e4e7;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.twitter-btn {
    background: #1DA1F2;
}

.twitter-btn:hover {
    background: #1a8cd8;
}

.facebook-btn {
    background: #1877F2;
}

.facebook-btn:hover {
    background: #166fe5;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #20bd5a;
}

.copy-btn {
    background: #667eea;
}

.copy-btn:hover {
    background: #5568d3;
}

.share-btn svg {
    flex-shrink: 0;
}

/* Responsive share buttons */
@media (max-width: 768px) {
    .share-buttons {
        gap: 0.6rem;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
