/* tipster-markets: table-style list. All classes are prefixed tm- so nothing existing is touched. */

.tm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .75rem;
    margin-top: 1rem;
    background: var(--switch-darkBGShaded);
    border: 1px solid var(--switch-darkBorderlight);
    border-bottom: 0;
    color: var(--switch-textWhite);
}
.tm-search {
    position: relative;
    flex: 1 1 220px;
    max-width: 320px;
}
.tm-search input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 12px;
    border-radius: 8px;
    border: 1px solid var(--switch-darkBorderlight);
    background: transparent;
    color: var(--switch-textWhite);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}
.tm-search input:focus { border-color: var(--switch-betopick); }
.tm-search svg {
    position: absolute;
    right: 11px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    opacity: .6;
    pointer-events: none;
}
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s ease;
}
.tm-btn--primary {
    color: #fff;
    border: 1px solid transparent;
    background: linear-gradient(90deg, var(--switch-betopick), #8e1c92);
}
.tm-btn--primary:hover { opacity: .88; color: #fff; }
.tm-btn--outline {
    color: var(--switch-betopick);
    border: 1px solid var(--switch-betopick);
    background: transparent;
}
.tm-btn--outline:hover { background: var(--switch-betopick); color: #fff; }
.tm-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px dashed var(--switch-darkBorderlight);
    border-radius: 8px;
    font-size: 12px;
    color: var(--switch-textWhite);
    white-space: nowrap;
}
.tm-chip b { margin-right: 4px; font-weight: 700; }
.tm-toolbar__meta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--switch-textWhite);
}

/* ---- table ---- */
.tm-table {
    border: 1px solid var(--switch-darkBorderlight);
    background: var(--switch-darkBGShaded);
    color: var(--switch-textWhite);
}
.tm-head,
.tm-row {
    display: grid;
    grid-template-columns: 170px minmax(150px, 1.5fr) repeat(3, minmax(56px, .6fr)) minmax(80px, .7fr) minmax(190px, 1.3fr);
    align-items: center;
    column-gap: .75rem;
    padding: 0 .75rem;
}
.tm-head {
    min-height: 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .7;
    border-bottom: 1px solid var(--switch-darkBorderlight);
}
.tm-row {
    min-height: 76px;
    border-bottom: 1px solid var(--switch-darkBorderlight);
    transition: background .2s ease;
}
.tm-row:last-child { border-bottom: 0; }
.tm-row:nth-child(even) { background: rgba(127, 127, 127, .05); }
.tm-row:hover { background: rgba(127, 127, 127, .12); }
.tm-cell { min-width: 0; }
.tm-label { display: none; }

/* actions */
.tm-actions { display: flex; align-items: center; gap: 8px; }
.tm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--switch-darkBorderlight);
    color: var(--switch-betopick);
    transition: all .25s ease;
}
.tm-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.tm-icon-btn:hover { background: var(--switch-betopick); color: #fff; }
.tm-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--switch-betopick);
    background: var(--switch-betopick);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .25s ease;
}
.tm-buy:hover { opacity: .88; color: #fff; }
.tm-buy.is-subscribed { background: transparent; color: var(--switch-betopick); cursor: default; }

/* tipster */
.tm-tipster { display: flex; align-items: center; gap: 10px; }
.tm-avatar {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ca00ff14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--switch-textWhite);
    text-transform: uppercase;
    overflow: hidden;
}
.tm-flag {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--switch-darkBGShaded);
}
.tm-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--switch-textWhite);
    text-decoration: none;
}
.tm-name:hover { color: var(--switch-betopick); }
.tm-sub { display: block; font-size: 11px; opacity: .65; }

/* stats */
.tm-stat { font-size: 14px; font-weight: 600; }
.tm-pill {
    display: inline-block;
    min-width: 34px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: rgba(127, 127, 127, .15);
}
.tm-pill--won { background: rgba(83, 175, 117, .18); color: #53af75; }
.tm-pill--lost { background: rgba(243, 64, 64, .15); color: #f34040; }
.tm-rate { font-size: 16px; font-weight: 700; color: var(--switch-betopick); }

/* last 5 days */
.tm-form { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tm-form .expert__form { flex: 1; }

.tm-empty { display: none; padding: 2rem 1rem; text-align: center; font-size: 14px; color: var(--switch-textWhite); }

/* ---- responsive: rows turn into cards ---- */
@media (max-width: 62rem) {
    .tm-toolbar__meta { margin-left: 0; width: 100%; }
    .tm-head { display: none; }
    .tm-table { background: transparent; border: 0; }
    .tm-row,
    .tm-row:nth-child(even) {
        grid-template-columns: repeat(4, 1fr);
        row-gap: .7rem;
        column-gap: .5rem;
        padding: .8rem;
        margin-bottom: .5rem;
        background: var(--switch-darkBGShaded);
        border: 1px solid var(--switch-darkBorderlight);
    }
    .tm-tipster { grid-column: 1 / -1; order: 1; }
    .tm-stat { order: 2; text-align: center; }
    .tm-form { grid-column: 1 / -1; order: 3; }
    .tm-actions { grid-column: 1 / -1; order: 4; }
    .tm-label {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 400;
        opacity: .7;
    }
    .tm-buy { flex: 1; }
}
@media (max-width: 30rem) {
    .tm-search { max-width: 100%; flex-basis: 100%; }
    .tm-btn { flex: 1 1 auto; }
}

/* ---- pager: Prev | page details | Next ---- */
.tm-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 1rem 0;
    color: var(--switch-textWhite);
}
.tm-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 90px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--switch-betopick);
    background: var(--switch-betopick);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .25s ease;
}
.tm-pager__btn:hover { opacity: .88; color: #fff; }
.tm-pager__btn.is-disabled {
    background: transparent;
    border-color: var(--switch-darkBorderlight);
    color: var(--switch-textWhite);
    opacity: .4;
    cursor: not-allowed;
}
.tm-pager__info {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}
.tm-pager__info strong { display: block; font-size: 14px; font-weight: 700; }
.tm-pager__info span { display: block; font-size: 12px; opacity: .7; }

@media (max-width: 30rem) {
    .tm-pager__btn { min-width: 72px; padding: 0 10px; }
}