* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f1116;
    color: #e1e8ed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5px;
}

.header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #2a2d3e;
    padding-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #fff;
}

.header p {
    color: #8b8fa3;
    font-size: 14px;
}

.section-title {
    color: #8b8fa3;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding: 0 5px;
}

/* Token Buttons */
.tokens-section {
    margin-bottom: 10px;
}

.token-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2px;
    margin-bottom: 20px;
}

.token-btn {
    background: #131414;
    border: 1px solid #444;
    border-radius: 0px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #e1e8ed;
}

.token-btn:hover {
    background: #2a2e40;
    border-color: #555;
}

.token-btn.active {
    background: #1d0123;
    border-color: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.token-btn.watched {
    border-color: #fbbf24;
}

.token-btn.sell-point {
    border-color: #ef4444;
}

.token-btn.top20-safe {
    border-color: #22c55e;
}

.token-symbol {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: #c8a336;
}

.token-24h-change,
.price-change {
    font-size: 12px;
    color: #8b8fa3;
    margin-bottom: 4px;
    font-weight: bold;
}

.token-24h-change.positive,
.price-change.positive {
    color: #27ae60;
}

.token-24h-change.negative,
.price-change.negative {
    color: #ef4444;
}

.loading-24h,
.loading-price {
    color: #666;
}

/* Search Section */
.search-section {
    margin-bottom: 10px;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    background: #262a38;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #7c3aed;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #262a38;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    margin-top: -1px;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2d3e;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background: #2a2e40;
}

.search-result-info {
    flex: 1;
}

.search-result-symbol {
    font-weight: bold;
    color: #e1e8ed;
    margin-bottom: 3px;
}

.search-result-ca {
    font-size: 11px;
    color: #8b8fa3;
    font-family: monospace;
}

.search-result-price {
    font-size: 12px;
    color: #8b8fa3;
    margin-left: 10px;
}

/* Chart */
.chart-section {
    background: #262a38;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

.chart-section.hidden {
    display: none;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2d3e;
    padding-bottom: 15px;
}

.chart-controls h3 {
    color: #e1e8ed;
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #8b8fa3;
    font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.wyckscorejs-chart-container {
    margin-bottom: 20px;
    border: 1px solid #2a2d3e;
    border-radius: 4px;
    padding: 10px;
    background: #0f1116;
    min-height: 400px;
}

.dexscreener-frame {
    width: 100%;
    height: 600px;
    border: 1px solid #2a2d3e;
    border-radius: 4px;
    margin-top: 20px;
}

.dexscreener-frame.hidden {
    display: none;
}

/* Debug Log */
.wyckscorejs-chart-container {
    margin-bottom: 20px;
    border: 1px solid #2a2d3e;
    border-radius: 4px;
    padding: 10px;
    background: #0f1116;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wyckscorejs-chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #0f1116;
    border-right: 1px solid #2a2d3e;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2a2d3e;
}

.logo-img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #8b8fa3;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-item:hover:not(.soon) {
    background: #2a2e40;
    color: #e1e8ed;
}

.nav-item.active {
    background: #150516;
    color: #7c3aed;
    border-left: 3px solid #7c3aed;
    padding-left: 17px;
}

.nav-item.soon {
    cursor: not-allowed;
}

.nav-item.soon:hover {
    position: relative;
}

.coming-soon-badge {
    margin-left: auto;
    color: #ef4444;
    font-size: 16px;
}

.nav-icon {
    font-size: 18px;
    min-width: 20px;
}

.nav-label {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-social {
    padding: 20px;
    border-top: 1px solid #2a2d3e;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sidebar-social a {
    color: #8b8fa3;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-social a:hover {
    color: #7c3aed;
}

/* Main Content */
.main-content {
    margin-left: 250px;
}

/* Pricing Section - Full Page */
.pricing-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #e1e8ed;
    font-size: 28px;
}

.pricing-subtitle {
    text-align: center;
    color: #8b8fa3;
    margin-bottom: 40px;
    font-size: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pricing-card {
    background: #0f1116;
    border: 1px solid #2a2d3e;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.pricing-card.featured {
    border-color: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7c3aed;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.pricing-card h3 {
    color: #e1e8ed;
    margin-bottom: 15px;
    font-size: 20px;
}

.price {
    font-size: 32px;
    color: #7c3aed;
    margin-bottom: 10px;
    font-weight: bold;
}

.price span {
    font-size: 14px;
    color: #8b8fa3;
}

.pricing-options {
    background: #1a1d2b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #2a2d3e;
}

.option {
    text-align: center;
}

.option-label {
    color: #8b8fa3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.option-value {
    color: #7c3aed;
    font-size: 18px;
    font-weight: bold;
}

.divider {
    color: #2a2d3e;
    text-align: center;
    margin: 15px 0;
    font-size: 12px;
    font-weight: bold;
}

.features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.features li {
    padding: 8px 0;
    color: #8b8fa3;
    border-bottom: 1px solid #2a2d3e;
    font-size: 13px;
}

.features li:last-child {
    border-bottom: none;
}

.upgrade-btn {
    width: 100%;
    padding: 12px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.upgrade-btn:hover {
    background: #6d28d9;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    background: #1a1d2b;
    border: 1px solid #2a2d3e;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    color: #8b8fa3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    color: #7c3aed;
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar-stats {
        display: grid; /* Giữ hiển thị thay vì display: none */
    }
}

/* Back Button */
.back-btn {
    padding: 10px 20px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background 0.3s;
    font-size: 14px;
}

.back-btn:hover {
    background: #6d28d9;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card {
        padding: 20px;
    }
}

/* Access Modal */
.access-modal {
    position: fixed;
    inset: 0;
    background: #0f1116;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.access-modal.hidden {
    display: none;
}

.access-modal-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.access-logo {
    margin-bottom: 30px;
}

.access-logo .logo-img {
    width: 60px;
    height: 60px;
}

.access-modal-content h2 {
    color: #e1e8ed;
    margin-bottom: 10px;
    font-size: 28px;
}

.timer-section,
.code-section {
    transition: opacity 0.3s ease;
}

.timer-section.hidden,
.code-section.hidden {
    display: none;
}

.timer-section p {
    color: #8b8fa3;
    margin-bottom: 20px;
    font-size: 14px;
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #7c3aed;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.timer-note {
    color: #666;
    font-size: 12px;
}

.code-section p {
    color: #8b8fa3;
    margin-bottom: 20px;
    font-size: 14px;
}

.code-input {
    width: 100%;
    padding: 12px 15px;
    background: #262a38;
    border: 2px solid #444;
    border-radius: 8px;
    color: #e1e8ed;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.code-input:focus {
    outline: none;
    border-color: #7c3aed;
}

.submit-code-btn {
    width: 100%;
    padding: 12px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.submit-code-btn:hover {
    background: #6d28d9;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.submit-code-btn:active {
    transform: scale(0.98);
}

.code-note {
    font-size: 12px;
    color: #666;
    min-height: 14px;
}

.code-note.error {
    color: #ef4444;
}

.code-note.success {
    color: #27ae60;
}

.main-app.hidden {
    display: none;
}

/* loading TokenContainer */
.analyzing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    
    /* Căn chính giữa */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    
    /* Background mờ */
    background: rgba(15, 17, 22, 0.95);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid #2a2d3e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 300px;
}

.analyzing-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-segment {
    position: absolute;
    width: 4px;
    height: 12px;
    background: linear-gradient(to bottom, #7c3aed, #b698ec);
    left: 23px;
    top: 4px;
    border-radius: 2px;
    opacity: 0.3;
    animation: spin-rotate 1.2s linear infinite;
}

.spinner-segment:nth-child(1) { transform: rotate(0deg); animation-delay: 0s; }
.spinner-segment:nth-child(2) { transform: rotate(60deg); animation-delay: 0.1s; }
.spinner-segment:nth-child(3) { transform: rotate(120deg); animation-delay: 0.2s; }
.spinner-segment:nth-child(4) { transform: rotate(180deg); animation-delay: 0.3s; }
.spinner-segment:nth-child(5) { transform: rotate(240deg); animation-delay: 0.4s; }
.spinner-segment:nth-child(6) { transform: rotate(300deg); animation-delay: 0.5s; }

@keyframes spin-rotate {
    0% {
        opacity: 0.3;
        transform: rotate(var(--rotate)) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
        transform: rotate(var(--rotate)) translateY(-8px);
    }
}

.spinner-segment:nth-child(1) { --rotate: 0deg; }
.spinner-segment:nth-child(2) { --rotate: 60deg; }
.spinner-segment:nth-child(3) { --rotate: 120deg; }
.spinner-segment:nth-child(4) { --rotate: 180deg; }
.spinner-segment:nth-child(5) { --rotate: 240deg; }
.spinner-segment:nth-child(6) { --rotate: 300deg; }

/* Progress Bar */
.progress-bar {
    width: 200px;
    height: 6px;
    display: flex;
    gap: 4px;
    background: #1a1d2e;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid #2a2d3e;
}

.progress-segment {
    flex: 1;
    height: 100%;
    border-radius: 10px;
    background: #2a2d3e;
    animation: progress-pulse 1.5s ease-in-out infinite;
}

.progress-segment:nth-child(1) { animation-delay: 0s; }
.progress-segment:nth-child(2) { animation-delay: 0.2s; }
.progress-segment:nth-child(3) { animation-delay: 0.4s; }
.progress-segment:nth-child(4) { animation-delay: 0.6s; }
.progress-segment:nth-child(5) { animation-delay: 0.8s; }

@keyframes progress-pulse {
    0%, 100% {
        background: #2a2d3e;
    }
    50% {
        background: linear-gradient(90deg, #7c3aed, #b698ec);
    }
}

/* Loading Text */
.loading-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #7c3aed;
    text-transform: uppercase;
    font-family: monospace;
}

.loading-dots {
    display: inline-block;
    animation: dots-animation 1.5s steps(4, end) infinite;
}

@keyframes dots-animation {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60% {
        content: '...';
    }
    80%, 100% {
        content: '';
    }
}

/* All Tokens Section */
.all-tokens-section {
    padding: 20px;
}

.all-tokens-section.hidden {
    display: none;
}

.table-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    color: #e1e8ed;
    font-size: 20px;
}

.tokens-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #2a2d3e;
    border-radius: 8px;
}

.tokens-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1116;
}

.tokens-table thead {
    background: #1a1d2b;
    border-bottom: 1px solid #2a2d3e;
}

.tokens-table th {
    padding: 12px;
    text-align: left;
    color: #8b8fa3;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tokens-table td {
    padding: 12px;
    border-bottom: 1px solid #2a2d3e;
    font-size: 13px;
    cursor: pointer;
}

.tokens-table tbody tr:hover {
    background: #1a1d2b;
}

.tokens-table tbody tr:hover td {
    color: #7c3aed;
}

.token-row-symbol {
    font-weight: bold;
    color: #c8a336;
}

.positive-change {
    color: #27ae60;
}

.negative-change {
    color: #ef4444;
}

.accumulation-phase {
    color: #27ae60;
    font-weight: bold;
}

.distribution-phase {
    color: #ef4444;
    font-weight: bold;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #6d28d9;
}

.pagination-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-info {
    color: #8b8fa3;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.all-tokens-section {
    padding: 20px;
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.tokens-table-container {
    display: block !important;
    visibility: visible !important;
}

.tokens-table {
    display: table !important;
    visibility: visible !important;
}

.tokens-table tbody {
    display: table-row-group !important;
}

.tokens-table tr {
    display: table-row !important;
}

.tokens-table td,
.tokens-table th {
    display: table-cell !important;
}

.wyck-description {
    margin-top: 10px;
    padding: 10px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    color: #956ad9;
    line-height: 1;
}

.wyck-description h3 {
    margin-bottom: 10px;
    color: #c084fc;
    font-size: 18px;
}

.wyck-description p {
    margin-bottom: 10px;
    font-size: 14px;
}