/* Layout */
.ct-search-bar {
    position: relative;
}

.ct-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 40;
    display: none;
    font-size: 12px;
}

.ct-search-item {
    padding: 6px 10px;
    cursor: pointer;
}

    .ct-search-item:hover {
        background: #0f172a;
    }

.ct-search-row1 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ct-search-symbol {
    font-weight: 600;
}

.ct-search-name {
    opacity: 0.7;
}

.ct-search-row2 {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.8;
}

.ct-search-address {
    font-family: monospace;
}

.ct-search-chain {
    text-transform: uppercase;
    color: #60a5fa;
}

.ct-search-empty {
    padding: 8px 10px;
    opacity: 0.7;
}

.ct-star-btn {
    margin-left: 8px;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    border: 1px solid #444;
    background: #111;
    color: #888;
    cursor: pointer;
}

.ct-star-active {
    color: #ffd700;
    border-color: #ffd700;
}

.ct-watchlist {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.ct-watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ct-watchlist-token {
    flex: 1;
    text-align: left;
}

.ct-watchlist-remove {
    margin-left: 6px;
}

.ct-alert-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 6px 8px;
    border-top: 1px solid #222;
}

.ct-alert-status {
    margin-left: auto;
    opacity: 0.8;
}

.ct-alert-error {
    color: #ff6b6b;
}

.ct-chart-card.ct-alert-hit {
    box-shadow: 0 0 0 2px #ffbf00;
}

.ct-trade-buy {
    color: #4caf50;
}

.ct-trade-sell {
    color: #f44336;
}

.ct-trade-swap {
    color: #9e9e9e;
}

.ct-trades-empty {
    text-align: center;
    opacity: 0.7;
}

.ct-pos {
    color: #4caf50;
}

.ct-neg {
    color: #f44336;
}

.ct-main {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #050816;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Sidebar */
.ct-sidebar {
    width: 220px;
    padding: 20px 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    background: #020617;
}

.ct-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ct-nav-group {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ct-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
}

    .ct-nav-item:hover:not([disabled]) {
        background: rgba(148, 163, 184, 0.2);
    }

    .ct-nav-item[disabled] {
        opacity: 0.4;
        cursor: default;
    }

.ct-nav-item-active {
    background: #111827;
}

.ct-nav-note {
    font-size: 12px;
    color: #6b7280;
}

/* Main content */
.ct-content {
    flex: 1;
    padding: 20px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search */
.ct-search-bar {
    position: relative;
    margin-bottom: 12px;
}

#ct-search-input {
    width: 100%;
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
}

    #ct-search-input::placeholder {
        color: #6b7280;
    }

.ct-suggestions {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    max-width: 520px;
    background: #020617;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
    display: none;
}

.ct-suggestion-row {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

    .ct-suggestion-row:hover {
        background: rgba(148, 163, 184, 0.18);
    }

.ct-suggestion-address {
    font-size: 11px;
    color: #9ca3af;
}

/* Header */
.ct-header {
    margin-bottom: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.ct-header-main {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.ct-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.ct-header-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
}

.ct-header-green {
    color: #4ade80;
}

.ct-header-red {
    color: #f97373;
}

/* Cards */
.ct-card {
    background: #020617;
    border-radius: 16px;
    padding: 14px 16px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

    .ct-card + .ct-card {
        margin-top: 16px;
    }

/* Chart */
.ct-chart-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ct-chart-title {
    font-size: 13px;
    color: #9ca3af;
}

.ct-chart-inner {
    height: 320px;
}

.ct-timeframes {
    display: flex;
    gap: 6px;
}

.ct-tf-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    color: #e5e7eb;
    font-size: 11px;
    cursor: pointer;
}

    .ct-tf-btn:hover {
        background: rgba(148, 163, 184, 0.2);
    }

.ct-tf-active {
    background: #e5e7eb;
    color: #020617;
    border-color: #e5e7eb;
}

/* Trades */
.ct-trades-wrapper {
    max-height: 260px;
    overflow: auto;
}

.ct-trades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .ct-trades-table thead tr {
        background: #020617;
        position: sticky;
        top: 0;
    }

    .ct-trades-table th,
    .ct-trades-table td {
        padding: 4px 6px;
        text-align: left;
        border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    }

.ct-trade-type-buy {
    color: #4ade80;
}

.ct-trade-type-sell {
    color: #f97373;
}
