.stock-ticker {
    color: #0066cc;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px dashed #0066cc;
}

#sp-tooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    width: 300px;
    font-size: 13px;
    line-height: 1.5;
    font-family: sans-serif;
}
#sp-tooltip.sp-visible { display: block; }

/* Header */
.sp-header         { display: flex; align-items: center; gap: 10px; }
.sp-header-text    { display: flex; flex-direction: column; min-width: 0; }
.sp-header-top     { display: flex; align-items: baseline; gap: 6px; }

/* Logo circular */
img.sp-logo, .sp-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid #eee;
    background: #f8f8f8;
    padding: 2px;
    box-sizing: border-box;
}
.sp-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border: none;
    padding: 0;
}

.sp-name      { color: #888; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.sp-price     { font-size: 20px; font-weight: bold; margin-top: 2px; }
.sp-up        { color: #2a9d2a; font-size: 13px; }
.sp-down      { color: #cc2222; font-size: 13px; }
.sp-exchange  { color: #bbb; font-size: 10px; margin-top: 1px; text-transform: uppercase; letter-spacing: 0.5px; }
.sp-loading,
.sp-error     { color: #999; font-size: 12px; padding: 4px 0; }

/* Tabs */
.sp-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 10px 0 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
.sp-tab {
    background: none;
    border: none;
    padding: 2px 7px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}
.sp-tab:hover       { background: #f0f0f0; color: #333; }
.sp-tab-active      { background: #e8f0fe; color: #0066cc; font-weight: bold; }
.sp-mode-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 2px 5px;
    font-size: 13px;
    cursor: pointer;
    color: #aaa;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}
.sp-mode-btn:hover  { background: #f0f0f0; color: #555; }

/* Chart */
.sp-chart-wrap {
    margin-top: 8px;
    height: 86px;
}
.sp-chart {
    width: 100%;
    height: 86px;
    display: block;
    overflow: visible;
}
.sp-chart-loading,
.sp-chart-error {
    text-align: center;
    line-height: 70px;
    color: #ccc;
    font-size: 20px;
}

