.pga-slate-review-page .table-scroll-wrapper {
    margin-top: 1.5rem;
}

.pga-slate-review-page .ownership-summary-panel {
    margin-bottom: 1rem;
}

.pga-slate-review-messages {
    min-height: 1.5rem;
    font-size: 0.95rem;
    color: #9fb7cf;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(6, 20, 32, 0.85);
}

.pga-slate-review-messages.is-error {
    color: #ff9c9c;
    background: rgba(220, 64, 80, 0.15);
    border: 1px solid rgba(220, 64, 80, 0.45);
}

.pga-slate-review-messages.is-success {
    color: #7af2e6;
    background: rgba(29, 225, 209, 0.15);
    border: 1px solid rgba(29, 225, 209, 0.45);
}

.pga-slate-review-page .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.pga-slate-review-page .dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar {
    height: 8px;
}

.pga-slate-review-page .dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: rgba(29, 225, 209, 0.35);
    border-radius: 4px;
}

.pga-slate-review-page .dfs-summary-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pga-slate-review-page .dfs-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(6, 20, 32, 0.85);
    border: 1px solid rgba(29, 225, 209, 0.28);
    border-radius: 10px;
    flex: 1;
    min-width: 140px;
}

.pga-slate-review-page .dfs-summary-card .label {
    font-size: 0.75rem;
    color: #9fb7cf;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pga-slate-review-page .dfs-summary-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ssp-primary-teal);
}

/* Username pills styling */
.pga-slate-review-username-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.pga-slate-review-username-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(29, 225, 209, 0.15);
    border: 1px solid rgba(29, 225, 209, 0.35);
    border-radius: 999px;
    color: #e0f0ef;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pga-slate-review-username-pill:hover,
.pga-slate-review-username-pill:focus {
    background: rgba(29, 225, 209, 0.28);
    border-color: rgba(29, 225, 209, 0.55);
    transform: translateY(-1px);
}

.pga-slate-review-username-pill--me {
    background: rgba(46, 134, 222, 0.2);
    border-color: rgba(46, 134, 222, 0.45);
}

.pga-slate-review-username-pill--me:hover,
.pga-slate-review-username-pill--me:focus {
    background: rgba(46, 134, 222, 0.35);
    border-color: rgba(46, 134, 222, 0.65);
}

/* Leverage coloring - green for positive, red for negative */
.pga-slate-review-page .leverage-positive {
    background: rgba(16, 94, 63, 0.45);
    box-shadow: inset 0 0 0 1px rgba(29, 225, 209, 0.35);
    color: #7af2e6;
}

.pga-slate-review-page .leverage-negative {
    background: rgba(119, 29, 37, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.35);
    color: #ff9c9c;
}

/* Header left alignment fixes */
.pga-slate-review-page .dt-head-left {
    text-align: left !important;
}

.pga-slate-review-page .dt-body-left {
    text-align: left !important;
}

@media screen and (max-width: 960px) {
    .pga-slate-review-page .dfs-summary-grid {
        flex-direction: column;
    }

    .pga-slate-review .filters-column {
        width: 100%;
    }
}

.pga-slate-review-page .ownership-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pga-slate-review-page .ownership-range-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pga-slate-review-page .ownership-range-label {
    font-size: 12px;
    color: #d9d9d9;
}

.pga-slate-review-page .ownership-range-separator {
    color: #d9d9d9;
    font-weight: 600;
}

.pga-slate-review-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 6px;
}

.pga-slate-review-user-actions__empty {
    margin: 0;
    color: #9fb7cf;
    font-size: 0.95rem;
}

.pga-user-action-card {
    background: rgba(6, 20, 32, 0.85);
    border: 1px solid rgba(29, 225, 209, 0.3);
    border-radius: 10px;
    padding: 12px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.pga-user-action-card__label {
    font-weight: 700;
    color: #e8f4ff;
}

.pga-user-action-card__meta {
    color: #9fb7cf;
    font-size: 0.9rem;
}

.pga-view-lineups-button {
    align-self: flex-start;
}

.pga-slate-review-lineup-modal__body {
    padding: 14px;
}

.pga-slate-review-lineup-modal__header {
    margin-bottom: 12px;
}

.pga-slate-review-lineup-modal__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8f4ff;
}

.pga-slate-review-lineup-modal__subtitle {
    color: #9fb7cf;
    font-size: 0.95rem;
    margin-top: 4px;
}

.pga-slate-review-lineup-modal__messages {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(6, 20, 32, 0.85);
    color: #9fb7cf;
}

.pga-slate-review-lineup-modal__messages.is-error {
    color: #ff9c9c;
    border: 1px solid rgba(220, 64, 80, 0.45);
    background: rgba(220, 64, 80, 0.12);
}

.pga-slate-review-lineup-modal__messages.is-success {
    color: #7af2e6;
    border: 1px solid rgba(29, 225, 209, 0.4);
    background: rgba(29, 225, 209, 0.12);
}

.pga-slate-review-lineup-modal__content {
    display: grid;
    gap: 16px;
}

.pga-slate-review-lineup-modal__content .ssp-lineup-card,
.pga-slate-review-lineup-modal__content .ssp-pga-draftkings-lineup-card {
    width: 100%;
}

/* Stack viability modal */
.pga-stack-viability-modal__body {
    padding: 14px;
}

.pga-stack-viability-modal__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(29, 225, 209, 0.18), rgba(46, 134, 222, 0.16));
    border: 1px solid rgba(29, 225, 209, 0.35);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.pga-stack-viability-modal__header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(122, 242, 230, 0.25), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(46, 134, 222, 0.22), transparent 38%);
    pointer-events: none;
}

.pga-stack-viability-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e8f4ff;
}

.pga-stack-viability-modal__subtitle {
    color: #9fb7cf;
    font-size: 0.95rem;
    max-width: 720px;
}

#pga-stack-viability-table .stack-detail-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(29, 225, 209, 0.35);
    background: rgba(29, 225, 209, 0.14);
    color: #e8f4ff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

#pga-stack-viability-table .stack-detail-toggle:hover,
#pga-stack-viability-table .stack-detail-toggle:focus-visible {
    background: rgba(29, 225, 209, 0.26);
    border-color: rgba(29, 225, 209, 0.6);
    transform: translateY(-1px);
}

#pga-stack-viability-table tbody tr.is-expanded {
    background: rgba(29, 225, 209, 0.05);
}

.stack-combination-details {
    background: rgba(6, 20, 32, 0.9);
    border: 1px solid rgba(46, 134, 222, 0.35);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 12px;
    margin: 6px 6px 12px;
    color: #e8f4ff;
}

.stack-combination-details__group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(29, 225, 209, 0.16);
    border-radius: 10px;
    padding: 10px 12px 14px;
    box-shadow: inset 0 0 0 1px rgba(46, 134, 222, 0.08);
}

.stack-combination-details__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #7af2e6;
    margin-bottom: 10px;
}

.stack-combination-details__heading .stack-size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(29, 225, 209, 0.16);
    border: 1px solid rgba(29, 225, 209, 0.4);
    color: #e8f4ff;
    font-weight: 800;
}

.stack-combination-table-wrapper {
    margin-top: 4px;
}

.stack-combination-table {
    width: 100% !important;
}

.stack-combination-table thead th,
.stack-combination-table tbody td {
    color: #e8f4ff;
}

.stack-combination-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-combination-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(46, 134, 222, 0.14);
    border: 1px solid rgba(46, 134, 222, 0.35);
    color: #e8f4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.stack-combination-chip .player-position {
    color: #7af2e6;
    font-weight: 800;
    font-size: 0.85rem;
}

.stack-combination-chip .player-points {
    color: #9fb7cf;
    font-weight: 600;
}

.stack-combination-empty {
    color: #9fb7cf;
    padding: 6px 2px;
}

/* ROI Summary Section */
.lineup-roi-summary {
    background: rgba(6, 20, 32, 0.85);
    border: 1px solid rgba(29, 225, 209, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.lineup-roi-summary h3 {
    color: #e8f4ff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.roi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.roi-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.roi-metric--highlight {
    background: rgba(29, 225, 209, 0.08);
    border: 1px solid rgba(29, 225, 209, 0.25);
}

.roi-metric .label {
    font-size: 0.8rem;
    color: #9fb7cf;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.roi-metric .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8f4ff;
}

.roi-metric .value.roi-positive,
.roi-metric .value.profit-positive {
    color: #7af2e6;
}

.roi-metric .value.roi-negative,
.roi-metric .value.profit-negative {
    color: #ff9c9c;
}

/* Stack Analysis Section */
.lineup-stack-analysis {
    background: rgba(6, 20, 32, 0.85);
    border: 1px solid rgba(46, 134, 222, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.lineup-stack-analysis h3 {
    color: #e8f4ff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.stack-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.stack-type-section h4,
.line-stack-section h4 {
    color: #9fb7cf;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.stack-list .stack-name {
    font-weight: 600;
    color: #e8f4ff;
    min-width: 80px;
}

.stack-list .stack-exposure {
    font-weight: 700;
    color: #7af2e6;
    margin-left: auto;
    margin-right: 12px;
}

.stack-list .stack-roi {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.stack-list .stack-roi.roi-positive {
    color: #7af2e6;
    background: rgba(29, 225, 209, 0.15);
}

.stack-list .stack-roi.roi-negative {
    color: #ff9c9c;
    background: rgba(220, 64, 80, 0.15);
}

/* Lineups Section */
.lineups-section {
    margin-top: 20px;
}

.lineups-section h3 {
    color: #e8f4ff;
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Stack info in lineup cards */
.ssp-lineup-card__stack-info {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #7af2e6;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .roi-metrics-grid,
    .stack-analysis-grid {
        grid-template-columns: 1fr;
    }
}
