body {
    min-height: 100vh;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(0, 232, 157, 0.12);
    border: 1px solid rgba(0, 232, 157, 0.3);
    color: var(--primary-color, #00e89d);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(0, 232, 157, 0.1);
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color, #00e89d);
    box-shadow: 0 0 6px rgba(0, 232, 157, 0.8);
    flex-shrink: 0;
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--primary-color, #00e89d);
    animation: live-dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes live-dot-ping {
    0% { transform: scale(0.6); opacity: 0.9; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot::after {
        animation: none;
        opacity: 0.4;
    }
}

/* Table card surface */
.home-card {
    padding: 1.5rem;
}

.home-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-table {
    margin-bottom: 0;
    min-width: 760px;
}

.home-table th,
.home-table td {
    white-space: nowrap;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.home-table th:first-child,
.home-table td:first-child {
    padding-left: 0;
}

.home-table th:last-child,
.home-table td:last-child {
    padding-right: 0;
}

.home-table thead th {
    background-color: transparent;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600, #9CA3AF);
    border-bottom: 1px solid var(--border-color, #243044);
    white-space: normal;
}

.home-table td {
    vertical-align: middle;
}

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

.home-table tbody tr:last-child td {
    border-bottom: none;
}

.home-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

img.home-avatar {
    object-fit: contain;
    background-color: #fff;
    border: 1px solid var(--border-color, #243044);
    padding: 3px;
}

.home-stock-cell {
    min-width: 180px;
    width: 1%;
}

.home-ticker {
    font-weight: 700;
    color: var(--gray-900, #F3F4F6);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.metric-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: 8px;
    transition: opacity var(--transition-base, 180ms ease);
}

.metric-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.metric-badge.bg-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: var(--success-color, #10B981);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.metric-badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger-color, #EF4444);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.metric-badge.bg-secondary {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: var(--gray-600, #9CA3AF);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.metric-pill--buy {
    background: rgba(16, 185, 129, 0.14);
    color: var(--success-color, #10B981);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.metric-pill--sell {
    background: rgba(239, 68, 68, 0.14);
    color: var(--danger-color, #EF4444);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.metric-pill--hold {
    background: rgba(148, 163, 184, 0.14);
    color: var(--gray-600, #9CA3AF);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.skew-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #a78bfa;
    cursor: help;
}

.home-th-sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.home-th-sort .sort-icon::after {
    content: '↕';
    opacity: 0.35;
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.home-th-sort.sort-asc .sort-icon::after {
    content: '↑';
    opacity: 1;
}

.home-th-sort.sort-desc .sort-icon::after {
    content: '↓';
    opacity: 1;
}

@media (max-width: 576px) {
    .home-table {
        font-size: 0.9rem;
    }

    .home-card {
        padding: 1rem;
    }
}
