/* Dread Forum - Modern Blog Styles */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --radius: 0.75rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-icon { font-size: 1.75rem; }
.logo-text { color: var(--text-primary); }
.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.theme-toggle, .mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 1.5rem 80px;
    position: relative;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Latest Section */
.latest-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    position: relative;
    height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-cta { flex-direction: column; }
}

/* Article Page Styles */
.article-page {
    padding-top: 100px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--accent-primary);
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.article-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.article-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-lead {
    font-size: 1.25rem;
    color: var(--text-primary) !important;
    font-weight: 500;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Update Banner */
.update-banner {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.update-banner i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-box .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--border-color);
}

.timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.timeline-item.active::before {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-item .year {
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.warning-box h4 i {
    margin-right: 0.5rem;
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step h4 {
    margin-bottom: 0.5rem;
}

.step code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Takeaways */
.takeaways {
    margin: 2rem 0;
}

.takeaway {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.takeaway i {
    color: #10b981;
    font-size: 1.25rem;
}

/* Article Footer */
.article-share {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.article-share h3 {
    margin-bottom: 1rem;
}

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

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.reddit { background: #ff4500; }
.share-btn.linkedin { background: #0077b5; }

/* Disclaimer */
.article-disclaimer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 3rem;
}

.article-disclaimer h4 {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.article-disclaimer h4 i {
    margin-right: 0.5rem;
}

.article-disclaimer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

/* Marketplaces Page Styles */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.live-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.market-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.market-stats .stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.stat-number.green {
    color: #10b981;
}

/* Market Filters */
.market-filters {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Market Cards */
.market-list {
    padding: 3rem 0;
}

.market-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.market-card.status-online {
    border-left: 4px solid #10b981;
}

.market-card.status-warning {
    border-left: 4px solid #f59e0b;
}

.market-card.status-offline {
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

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

.market-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.market-icon.vortex { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.market-icon.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.market-icon.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.market-icon.nexus { background: linear-gradient(135deg, #ec4899, #db2777); }
.market-icon.blackops { background: linear-gradient(135deg, #1f2937, #000000); }
.market-icon.anubis { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.market-info {
    flex: 1;
}

.market-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.uptime {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.market-rating {
    text-align: right;
}

.stars {
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

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

.market-body {
    margin-bottom: 1.5rem;
}

.market-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.market-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature.highlight {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature.new {
    background: var(--accent-gradient);
    color: white;
}

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

.stats-row {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stats-row i {
    margin-right: 0.25rem;
}

/* Scam Alert */
.scam-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.alert-header i {
    font-size: 2rem;
    color: #ef4444;
}

.alert-header h3 {
    color: #ef4444;
    margin: 0;
}

.scam-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius);
}

.scam-name {
    font-weight: 600;
    color: #ef4444;
}

.scam-status {
    color: #ef4444;
    font-size: 0.9rem;
}

.alert-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.verification-steps {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.verification-steps h4 {
    margin-bottom: 1rem;
}

.verification-steps ol {
    margin-left: 1.5rem;
}

.verification-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .market-header {
        flex-direction: column;
        text-align: center;
    }
    
    .market-rating {
        text-align: center;
    }
    
    .market-footer {
        flex-direction: column;
    }
    
    .stats-row {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Market Placeholders */
.market-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.market-placeholder.vortex {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.market-placeholder.drughub {
    background: linear-gradient(135deg, #10b981, #059669);
}

.market-placeholder.torzon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.post-category.online {
    background: #10b981;
    color: white;
}

.post-category.offline {
    background: #ef4444;
    color: white;
}

.post-category.warning {
    background: #f59e0b;
    color: white;
}

/* Guides Page Styles */
.guides-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    overflow-x: auto;
}

.guide-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.guide-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.guide-tab:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.guides-content {
    padding: 3rem 0;
}

.guide-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guide-number {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}

.guide-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.guide-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Checklist */
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.check-item i {
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.check-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.check-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Step Guide */
.step-guide {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.step .step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.step-content ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.step-content li {
    margin-bottom: 0.5rem;
}

/* Tip Box */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.tip-box i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.tip-box span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tip-box.important {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.tip-box.important i {
    color: #f59e0b;
}

.tip-box.small {
    font-size: 0.9rem;
    padding: 0.75rem;
}

/* Warning Box */
.warning-box.small {
    padding: 1rem;
    margin: 1rem 0;
}

.warning-box.small i {
    color: #ef4444;
}

/* OPSEC Rules */
.opsec-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rule-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.rule-card.critical {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.rule-card.high {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.rule-card.medium {
    border-color: var(--border-color);
}

.rule-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rule-card.critical .rule-icon {
    color: #ef4444;
}

.rule-card.high .rule-icon {
    color: #f59e0b;
}

.rule-card.medium .rule-icon {
    color: var(--accent-primary);
}

.rule-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.rule-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* Tails Guide */
.tails-guide {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
}

.tails-guide h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Final Checklist */
.final-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.check-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.check-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.check-section h4 i {
    margin-right: 0.5rem;
}

.check-section ul {
    list-style: none;
    padding: 0;
}

.check-section li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .guide-tabs {
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .guide-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .guide-header {
        flex-direction: column;
        text-align: center;
    }
    
    .opsec-rules,
    .final-checklist {
        grid-template-columns: 1fr;
    }
}

/* Marketplaces Page - Sidebar Layout */
.marketplaces-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    padding-top: 72px;
}

/* Left Sidebar */
.market-sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

.live-indicator i {
    animation: pulse 2s infinite;
}

.sidebar-filters {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-filters .filter-btn {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.market-list-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.sidebar-market {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.sidebar-market:hover {
    background: var(--bg-tertiary);
}

.sidebar-market.active {
    background: var(--accent-gradient);
    color: white;
}

.sidebar-market.active .market-name {
    color: white;
}

.sidebar-market.active .cred-score {
    color: rgba(255, 255, 255, 0.8);
}

.market-rank {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 24px;
}

.sidebar-market.active .market-rank {
    color: rgba(255, 255, 255, 0.8);
}

.market-info-small {
    flex: 1;
}

.market-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.market-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cred-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cred-score.high {
    color: #10b981;
}

.cred-score.medium {
    color: #f59e0b;
}

.cred-score.low {
    color: #ef4444;
}

.sidebar-market.active .cred-score.high,
.sidebar-market.active .cred-score.medium,
.sidebar-market.active .cred-score.low {
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.status-dot.offline {
    background: #ef4444;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-footer i {
    color: var(--accent-primary);
}

.last-check {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Main Content Area */
.market-main {
    flex: 1;
    margin-left: 320px;
    padding: 2rem;
    min-height: calc(100vh - 72px);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.status-item i {
    font-size: 1rem;
}

.status-item i.fa-server {
    color: #10b981;
}

.status-item i.fa-exclamation-triangle {
    color: #f59e0b;
}

.status-item i.fa-times-circle {
    color: #ef4444;
}

.refresh-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Market Detail Cards */
.market-details-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.market-detail-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
}

.market-detail-card.active {
    display: block;
}

.market-detail-card.warning {
    border-left: 4px solid #f59e0b;
}

.market-detail-card.offline {
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.detail-icon.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.detail-icon.nexus { background: linear-gradient(135deg, #ec4899, #db2777); }
.detail-icon.vortex { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.detail-icon.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.detail-icon.blackops { background: linear-gradient(135deg, #1f2937, #000000); }
.detail-icon.anubis { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.detail-icon.mars { background: linear-gradient(135deg, #ef4444, #dc2626); }
.detail-icon.shadow { background: linear-gradient(135deg, #6b7280, #4b5563); }

.detail-title {
    flex: 1;
}

.detail-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.credibility {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.badge.status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge.status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge.status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge.xmr {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge.new {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.badge.established {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge.feature {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-expand {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-expand:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.detail-content {
    padding: 1.5rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.stat-item .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item .stat-value.warning {
    color: #f59e0b;
}

.stat-item .stat-value.offline {
    color: #ef4444;
}

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

.detail-features {
    margin-bottom: 1.5rem;
}

.detail-features h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feature-tag.primary {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.detail-links {
    margin-bottom: 1.5rem;
}

.detail-links h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.link-item.verified {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.link-item.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.link-type {
    min-width: 80px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.link-url {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.link-status {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.link-status.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.link-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.link-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.verify-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.verify-note i {
    color: var(--accent-primary);
}

.verify-note a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.detail-security {
    margin-bottom: 1.5rem;
}

.detail-security h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.security-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-item span:first-child {
    min-width: 140px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.security-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.security-bar .fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.security-item span:last-child {
    min-width: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-reviews {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.detail-reviews h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rating-big span {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.rating-row span:first-child {
    min-width: 20px;
    color: #fbbf24;
}

.rating-row .bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.rating-row .bar .fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 3px;
}

.rating-row span:last-child {
    min-width: 30px;
    text-align: right;
    color: var(--text-muted);
}

/* Scam Section */
.scam-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
}

.scam-section h3 {
    color: #ef4444;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.scam-section h3 i {
    margin-right: 0.5rem;
}

.scam-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scam-item-detailed {
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.scam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.scam-info h4 {
    color: #ef4444;
    font-weight: 700;
}

.scam-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.scam-tag.seized {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.scam-tag.exit {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.scam-item-detailed p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .market-sidebar {
        width: 280px;
    }
    
    .market-main {
        margin-left: 280px;
    }
}

@media (max-width: 768px) {
    .market-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 400px;
    }
    
    .market-main {
        margin-left: 0;
    }
    
    .marketplaces-layout {
        flex-direction: column;
    }
    
    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .security-bar {
        width: 100%;
    }
    
    .review-summary {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MARKETPLACES TABLE LAYOUT - CLEAN & BEAUTIFUL
   ============================================ */

.marketplaces-container {
    display: flex;
    min-height: calc(100vh - 72px);
    padding-top: 72px;
}

/* Sidebar with Table */
.market-sidebar-table {
    width: 700px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    z-index: 50;
}

.sidebar-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-pulse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #10b981;
}

/* Filter Pills */
.table-filters {
    padding: 1rem 2rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.filter-pill.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Market Table */
.market-table-wrapper {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.market-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.market-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.market-table th.col-num {
    width: 60px;
    text-align: center;
}

.market-table th.col-status {
    width: 120px;
}

.market-table th.col-url {
    width: 200px;
}

.market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.market-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.market-table tbody tr.selected {
    background: rgba(99, 102, 241, 0.15);
    border-left: 4px solid var(--accent-primary);
}

.market-table tbody tr.warning {
    background: rgba(245, 158, 11, 0.05);
}

.market-table tbody tr.warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.market-table tbody tr.offline {
    background: rgba(239, 68, 68, 0.05);
    opacity: 0.7;
}

.market-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-badge.offline {
    background: #6b7280;
}

/* Market Cell */
.market-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-icon-small {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.market-icon-small.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.market-icon-small.nexus { background: linear-gradient(135deg, #ec4899, #db2777); }
.market-icon-small.vortex { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.market-icon-small.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.market-icon-small.blackops { background: linear-gradient(135deg, #1f2937, #000000); }
.market-icon-small.anubis { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.market-icon-small.mars { background: linear-gradient(135deg, #ef4444, #dc2626); }
.market-icon-small.shadow { background: linear-gradient(135deg, #6b7280, #4b5563); }

.market-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.market-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.online .status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-badge.warning .status-dot {
    background: #f59e0b;
}

.status-badge.offline .status-dot {
    background: #ef4444;
}

/* Onion Link */
.col-url {
    position: relative;
}

.onion-link {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.onion-link.offline {
    text-decoration: line-through;
    opacity: 0.5;
}

.copy-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.market-row:hover .copy-btn {
    opacity: 1;
}

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

/* Table Footer */
.table-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Main Panel - Market Details */
.market-details-panel {
    flex: 1;
    margin-left: 700px;
    padding: 2rem;
    background: var(--bg-primary);
    min-height: calc(100vh - 72px);
}

/* Placeholder */
.details-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.placeholder-content p {
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Detail Card */
.detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

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

.detail-card.warning {
    border-left: 4px solid #f59e0b;
}

.detail-card.offline {
    border-left: 4px solid #ef4444;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.header-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.header-icon.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.header-icon.nexus { background: linear-gradient(135deg, #ec4899, #db2777); }
.header-icon.vortex { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.header-icon.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.header-icon.blackops { background: linear-gradient(135deg, #1f2937, #000000); }
.header-icon.anubis { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.header-icon.mars { background: linear-gradient(135deg, #ef4444, #dc2626); }
.header-icon.shadow { background: linear-gradient(135deg, #6b7280, #4b5563); }

.header-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.header-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.meta-badge.high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.meta-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.meta-badge.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.meta-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.meta-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.meta-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.meta-badge.new {
    background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

/* Alert Box */
.alert-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-box.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-box.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-box i {
    font-size: 1.25rem;
}

/* Card Body */
.card-body {
    padding: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-value.warning {
    color: #f59e0b;
}

.info-value.offline {
    color: #ef4444;
}

/* Description */
.description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.description p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Features List */
.features-list {
    margin-bottom: 2rem;
}

.features-list h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ftag {
    padding: 0.625rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ftag.primary {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Links Section */
.links-section {
    margin-top: 2rem;
}

.links-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.link-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.link-box.offline {
    opacity: 0.5;
    border-color: #ef4444;
}

.link-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.link-full {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    word-break: break-all;
}

.link-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.btn-action.verify {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: #10b981;
}

.btn-action.verify:hover {
    background: #10b981;
    color: white;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

.toast i {
    color: #10b981;
    font-size: 1.25rem;
}

/* Compact Footer */
.footer.compact {
    margin-left: 700px;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer.compact p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .market-sidebar-table {
        width: 100%;
        position: relative;
        top: 0;
        max-height: 600px;
    }
    
    .market-details-panel {
        margin-left: 0;
    }
    
    .footer.compact {
        margin-left: 0;
    }
    
    .marketplaces-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .link-actions {
        flex-direction: column;
    }
    
    .table-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .market-table th,
    .market-table td {
        padding: 1rem;
    }
    
    .col-url .copy-btn {
        opacity: 1;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 0.5rem;
    }
}

/* ============================================
   SIMPLE CLEAN MARKET TABLE
   ============================================ */

.market-container {
    display: flex;
    padding-top: 72px;
    min-height: 100vh;
}

.market-table-section {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
}

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

.table-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #10b981;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Simple Clean Table */
.simple-table-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.simple-market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.simple-market-table thead {
    background: var(--bg-tertiary);
}

.simple-market-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.simple-market-table th.th-num {
    width: 60px;
    text-align: center;
}

.simple-market-table th.th-status {
    width: 120px;
}

.simple-market-table th.th-url {
    width: auto;
}

.simple-market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.simple-market-table tbody tr:last-child {
    border-bottom: none;
}

.simple-market-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.simple-market-table tbody tr.active {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--accent-primary);
}

.simple-market-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* Number Cell */
.td-num {
    text-align: center;
}

.num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.num-badge.offline {
    background: #6b7280;
}

/* Market Name Cell */
.td-market {
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Cell */
.td-status {
    font-weight: 600;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status.online {
    color: #10b981;
}

.status.warning {
    color: #f59e0b;
}

.status.offline {
    color: #ef4444;
}

/* URL Cell */
.td-url {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.td-url code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-url code.offline {
    text-decoration: line-through;
    opacity: 0.5;
}

.btn-copy {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

tr:hover .btn-copy {
    opacity: 1;
}

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

/* Table Footer */
.table-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.footer-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-note i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.refresh-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-status:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Details Panel */
.details-panel {
    width: 400px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 2rem;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.details-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Market Detail Card */
.market-detail {
    animation: fadeIn 0.3s ease;
}

.market-detail h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tag.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tag.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.market-detail .desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.market-detail .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.market-detail .stats div {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.market-detail .stats span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.market-detail .stats strong {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.market-detail .stats strong.warning {
    color: #f59e0b;
}

.market-detail .stats strong.offline {
    color: #ef4444;
}

.alert-warning, .alert-danger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.market-detail h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 1.5rem 0 0.75rem;
}

.full-url {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Toast */
.toast-simple {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 600;
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast-simple.show {
    transform: translateX(0);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .market-container {
        flex-direction: column;
    }
    
    .market-table-section {
        max-width: 100%;
    }
    
    .details-panel {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .simple-market-table th,
    .simple-market-table td {
        padding: 0.75rem 1rem;
    }
    
    .td-url code {
        max-width: 150px;
    }
    
    .btn-copy {
        opacity: 1;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .market-detail .stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FULL PAGE MARKET TABLE - 20 MARKETS
   ============================================ */

.fullpage-table-container {
    padding: 100px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.table-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-pill.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-pill.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-pill.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.live-indicator-big {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 50px;
    font-weight: 700;
    color: #10b981;
    font-size: 0.875rem;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Full Width Table */
.full-table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.full-market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.full-market-table thead {
    background: var(--bg-tertiary);
}

.full-market-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.full-market-table th.col-rank {
    width: 60px;
    text-align: center;
}

.full-market-table th.col-status {
    width: 140px;
}

.full-market-table th.col-cred {
    width: 100px;
}

.full-market-table th.col-uptime {
    width: 100px;
}

.full-market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.full-market-table tbody tr:last-child {
    border-bottom: none;
}

.full-market-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.full-market-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

/* Rank Column */
.col-rank {
    text-align: center;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-num.offline {
    background: #6b7280;
}

/* Market Name Column */
.col-market {
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Column */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-status i {
    font-size: 0.7rem;
}

.badge-status.online i {
    color: #10b981;
}

.badge-status.warning i {
    color: #f59e0b;
}

.badge-status.offline i {
    color: #ef4444;
}

/* URL Column */
.col-url code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-url code.offline {
    text-decoration: line-through;
    opacity: 0.5;
}

.col-url code.seized {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Credibility Column */
.cred-high {
    color: #10b981;
    font-weight: 700;
}

.cred-medium {
    color: #f59e0b;
    font-weight: 700;
}

.cred-low {
    color: #ef4444;
    font-weight: 700;
}

.cred-offline {
    color: #6b7280;
    font-weight: 700;
}

/* Uptime Column */
.col-uptime {
    font-weight: 600;
    color: var(--text-primary);
}

.col-uptime.warning {
    color: #f59e0b;
}

.col-uptime.offline {
    color: #ef4444;
}

/* Table Footer */
.table-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-left i {
    color: var(--accent-primary);
}

.divider {
    color: var(--border-color);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

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

/* Market Modal */
.market-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.market-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.modal-status.issues, .modal-status.unstable {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.modal-status.offline, .modal-status.seized {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-stats div {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.modal-stats label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.modal-stats strong {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-stats strong.offline {
    color: #ef4444;
}

.modal-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.modal-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-features .feature-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-url {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: var(--radius);
}

.modal-url label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-url code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.btn-copy-url {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-url:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 600;
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.toast-notification.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .table-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .full-market-table th,
    .full-market-table td {
        padding: 1rem;
    }
    
    .col-url code {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .fullpage-table-container {
        padding: 100px 1rem 1rem;
    }
    
    .full-market-table th.col-cred,
    .full-market-table th.col-uptime,
    .full-market-table td.col-cred,
    .full-market-table td.col-uptime {
        display: none;
    }
    
    .table-footer-section {
        flex-direction: column;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-stats {
        width: 100%;
    }
    
    .stat-pill {
        flex: 1;
        justify-content: center;
    }
    
    .live-indicator-big {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   GRID TABLE WITH COLOR CODING
   ============================================ */

.grid-table-page {
    padding: 100px 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

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

.grid-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Legend Bar */
.legend-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.legend-item.live {
    color: #10b981;
}

.legend-item.down {
    color: #ef4444;
}

.legend-item.seized {
    color: #7f1d1d;
}

.legend-item.issues {
    color: #f59e0b;
}

.legend-item i {
    font-size: 0.875rem;
}

/* Grid Table Container */
.grid-table-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Grid Market Table */
.grid-market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* Header with Grid Lines */
.grid-market-table thead {
    background: var(--bg-tertiary);
}

.grid-market-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.grid-market-table th:last-child {
    border-right: none;
}

.grid-market-table th.g-col-rank {
    width: 50px;
    text-align: center;
}

.grid-market-table th.g-col-status {
    width: 130px;
}

.grid-market-table th.g-col-cred {
    width: 90px;
}

.grid-market-table th.g-col-uptime {
    width: 80px;
}

/* Table Body with Grid Lines */
.grid-market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.grid-market-table tbody tr:last-child {
    border-bottom: none;
}

.grid-market-table tbody tr:hover {
    filter: brightness(1.1);
}

.grid-market-table td {
    padding: 0.875rem 1rem;
    border-right: 1px solid var(--border-color);
    vertical-align: middle;
}

.grid-market-table td:last-child {
    border-right: none;
}

/* LIVE ROWS - Green Background */
.row-live {
    background: rgba(16, 185, 129, 0.08);
}

.row-live:hover {
    background: rgba(16, 185, 129, 0.15);
}

/* ISSUES ROWS - Yellow/Orange Background */
.row-issues {
    background: rgba(245, 158, 11, 0.08);
}

.row-issues:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* DOWN ROWS - Red Background */
.row-down {
    background: rgba(239, 68, 68, 0.08);
}

.row-down:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* SEIZED ROWS - Dark Red Background */
.row-seized {
    background: rgba(127, 29, 29, 0.15);
}

.row-seized:hover {
    background: rgba(127, 29, 29, 0.25);
}

/* Rank Column */
.g-col-rank {
    text-align: center;
}

.g-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.g-rank.down {
    background: #ef4444;
}

.g-rank.seized {
    background: #7f1d1d;
}

/* Market Name Column */
.g-market-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.g-icon-live {
    color: #10b981;
    font-size: 1rem;
}

.g-icon-issues {
    color: #f59e0b;
    font-size: 1rem;
}

.g-icon-down {
    color: #ef4444;
    font-size: 1rem;
}

.g-icon-seized {
    color: #7f1d1d;
    font-size: 1rem;
}

/* Status Column */
.g-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.g-status.live {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.g-status.issues {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.g-status.down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.g-status.seized {
    background: rgba(127, 29, 29, 0.3);
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

.g-status i {
    font-size: 0.75rem;
}

/* URL Column */
.g-col-url code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-down {
    text-decoration: line-through;
    opacity: 0.6;
    color: #ef4444;
}

.code-seized {
    text-decoration: line-through;
    opacity: 0.5;
    color: #7f1d1d;
}

/* Credibility Column */
.g-cred-high {
    color: #10b981;
    font-weight: 700;
}

.g-cred-medium {
    color: #f59e0b;
    font-weight: 700;
}

.g-cred-low {
    color: #ef4444;
    font-weight: 700;
}

.g-cred-down {
    color: #ef4444;
    font-weight: 700;
    opacity: 0.8;
}

.g-cred-seized {
    color: #7f1d1d;
    font-weight: 700;
}

/* Uptime Column */
.g-col-uptime {
    font-weight: 600;
}

.g-text-issues {
    color: #f59e0b;
}

.g-text-down {
    color: #ef4444;
}

.g-text-seized {
    color: #7f1d1d;
}

/* Grid Footer */
.grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-info i {
    color: var(--accent-primary);
}

.sep {
    color: var(--border-color);
}

.btn-refresh-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh-grid:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Grid Modal */
.market-modal-grid {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.market-modal-grid.active {
    display: flex;
}

/* Toast */
.toast-grid {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 600;
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.toast-grid.show {
    transform: translateX(0);
}

/* Modal Content Styling */
.m-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

.m-status.live {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.m-status.issues {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.m-status.down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.m-status.seized {
    background: rgba(127, 29, 29, 0.3);
    color: #fca5a5;
}

.m-stats strong.live {
    color: #10b981;
}

.m-stats strong.issues {
    color: #f59e0b;
}

.m-stats strong.down {
    color: #ef4444;
}

.m-stats strong.seized {
    color: #7f1d1d;
}

.modal-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-weight: 600;
}

.modal-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.modal-alert.seized {
    background: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
}

.m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.m-tag {
    padding: 0.375rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
}

.m-url-box {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.m-url-box label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.m-url-box code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.m-copy {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grid-market-table th.g-col-cred,
    .grid-market-table th.g-col-uptime,
    .grid-market-table td.g-col-cred,
    .grid-market-table td.g-col-uptime {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-table-page {
        padding: 100px 1rem 1rem;
    }
    
    .grid-market-table th,
    .grid-market-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .g-col-url code {
        max-width: 150px;
    }
    
    .legend-bar {
        width: 100%;
    }
    
    .grid-footer {
        flex-direction: column;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .g-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .g-rank {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Additional Market Icons */
.detail-icon.apocalypse {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.detail-icon.sklad {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.detail-icon.wapzone {
    background: linear-gradient(135deg, #ea580c, #9a3412);
}

/* Unverified Link Styling */
.link-item.unverified {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.link-item.unverified .link-status {
    color: #f59e0b;
}

/* === ONION.LIVE STYLE DIRECTORY === */

.onion-live-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.live-header {
    text-align: center;
    margin-bottom: 40px;
}

.live-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.live-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.stat-label i {
    margin-right: 5px;
}

.live-stat:nth-child(1) .stat-number { color: #10b981; }
.live-stat:nth-child(2) .stat-number { color: #f59e0b; }
.live-stat:nth-child(3) .stat-number { color: #ef4444; }

.live-search {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.refresh-all-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Market Cards Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.market-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.market-card.online { color: #10b981; }
.market-card.warning { color: #f59e0b; }
.market-card.offline { color: #ef4444; }

.market-card:hover {
    transform: translateY(-5px);
    border-color: currentColor;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.market-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    flex-shrink: 0;
}

.market-icon.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.market-icon.nexus { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.market-icon.vortex { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.market-icon.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.market-icon.blackops { background: linear-gradient(135deg, #1f2937, #111827); }
.market-icon.apocalypse { background: linear-gradient(135deg, #dc2626, #991b1b); }
.market-icon.sklad { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.market-icon.anubis { background: linear-gradient(135deg, #d97706, #b45309); }
.market-icon.mars { background: linear-gradient(135deg, #ef4444, #dc2626); }
.market-icon.wapzone { background: linear-gradient(135deg, #ea580c, #9a3412); }
.market-icon.shadow { background: linear-gradient(135deg, #64748b, #475569); }

.market-title-section {
    flex: 1;
}

.market-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.market-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge.xmr {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.badge.feature {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge.new {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge.established {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.response-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

.response-time.slow {
    color: #f59e0b;
}

.response-time.offline,
.response-time.unknown {
    color: #ef4444;
}

.card-url {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-url code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: #334155;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #3b82f6;
    color: white;
}

.card-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #334155;
}

.credibility-score {
    font-weight: 600;
    font-size: 0.9rem;
    color: #10b981;
}

.credibility-score.warning {
    color: #f59e0b;
}

.credibility-score.danger {
    color: #ef4444;
}

.view-details {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-footer {
    margin-top: 50px;
    text-align: center;
}

.disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.disclaimer i {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.disclaimer p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .markets-grid {
        grid-template-columns: 1fr;
    }
    
    .live-stats-bar {
        gap: 20px;
    }
    
    .search-input {
        width: 100%;
    }
}

/* === MARKET DETAIL PAGE STYLES === */

.market-detail-page {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

/* Market Hero */
.market-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid #334155;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex-shrink: 0;
}

.hero-icon.drughub { background: linear-gradient(135deg, #10b981, #059669); }
.hero-icon.nexus { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.hero-icon.vortex { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hero-icon.torzon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hero-icon.blackops { background: linear-gradient(135deg, #1f2937, #111827); }
.hero-icon.apocalypse { background: linear-gradient(135deg, #dc2626, #991b1b); }
.hero-icon.sklad { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.hero-icon.anubis { background: linear-gradient(135deg, #d97706, #b45309); }
.hero-icon.mars { background: linear-gradient(135deg, #ef4444, #dc2626); }
.hero-icon.wapzone { background: linear-gradient(135deg, #ea580c, #9a3412); }
.hero-icon.shadow { background: linear-gradient(135deg, #64748b, #475569); }

.hero-info {
    flex: 1;
}

.hero-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badges .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #334155;
    color: #e2e8f0;
}

.hero-badges .badge.xmr {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.hero-badges .badge.security {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.hero-badges .badge.established {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

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

.hero-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Info Sections */
.info-section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.info-section h2 i {
    color: #3b82f6;
}

.section-text {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
}

.link-card.main {
    border-color: #10b981;
    border-width: 2px;
}

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

.link-type {
    font-weight: 600;
    color: #e2e8f0;
}

.link-status {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-status.online {
    color: #10b981;
}

.link-status.warning {
    color: #f59e0b;
}

.link-status.offline {
    color: #ef4444;
}

.link-url {
    display: block;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #94a3b8;
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    margin-bottom: 15px;
}

.link-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copy-link-btn {
    padding: 10px 20px;
    background: #334155;
    border: none;
    color: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-link-btn:hover {
    background: #3b82f6;
    color: white;
}

.response-time {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
}

.feature-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.feature-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0f172a;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #334155;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #e2e8f0;
}

.category-name i {
    color: #3b82f6;
}

.category-count {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Security Info */
.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0f172a;
    border-radius: 10px;
}

.security-label {
    color: #94a3b8;
    font-size: 0.95rem;
}

.security-value {
    font-weight: 600;
    color: #e2e8f0;
}

.security-value i {
    color: #10b981;
}

/* Reviews */
.reviews-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.rating-big {
    text-align: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: #10b981;
    display: block;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.5rem;
    margin: 10px 0;
    display: block;
}

.rating-count {
    color: #94a3b8;
    font-size: 0.9rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
}

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

.reviewer {
    font-weight: 600;
    color: #e2e8f0;
}

.review-date {
    font-size: 0.85rem;
    color: #64748b;
}

.review-rating {
    color: #f59e0b;
}

.review-text {
    color: #94a3b8;
    line-height: 1.6;
}

/* Sidebar */
.market-sidebar-detail {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 25px;
}

.sidebar-card.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card.warning h3 {
    color: #f59e0b;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
}

.quick-stat:last-child {
    border-bottom: none;
}

.quick-label {
    color: #94a3b8;
    font-size: 0.95rem;
}

.quick-value {
    font-weight: 600;
    color: #e2e8f0;
}

.quick-value.online {
    color: #10b981;
}

.quick-value.warning {
    color: #f59e0b;
}

.quick-value.offline {
    color: #ef4444;
}

.warning-text {
    color: #f59e0b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Similar Markets */
.similar-market {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #0f172a;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.similar-market:hover {
    background: #334155;
}

.similar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.similar-info {
    flex: 1;
}

.similar-name {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
}

.similar-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #334155;
    color: #94a3b8;
}

.similar-badge.xmr {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

/* Market Footer */
.market-footer {
    margin-top: 50px;
}

.market-footer .disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.market-footer .disclaimer i {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.market-footer .disclaimer p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    border-color: #10b981;
}

.toast-success i {
    color: #10b981;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .market-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-info h1 {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .market-hero {
        padding: 25px;
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .hero-info h1 {
        font-size: 1.8rem;
    }
    
    .info-section {
        padding: 20px;
    }
}
