/* ==========================================================================
   TASKSEARN — "EMBER" brand theme
   Crimson / ember / ink. Loaded after styles.min.css, overrides the template.
   Palette: crimson #e01e37 · deep #9d0208 · rose #ff4d6d · ember #ff7d00
            gold #ffbe0b · ink #16070b · blush #fff5f6
   Used by:  user/includes/upper.php   (dashboard shell)
             homeincludes/homeupper.php (auth pages)
   ========================================================================== */

:root {
    --ts-red:      #e01e37;
    --ts-red-600:  #c1121f;
    --ts-red-700:  #9d0208;
    --ts-rose:     #ff4d6d;
    --ts-ember:    #ff7d00;
    --ts-gold:     #ffbe0b;
    --ts-ink:      #16070b;
    --ts-ink-2:    #240d14;
    --ts-ink-3:    #35141d;
    --ts-blush:    #fff5f6;
    --ts-line:     #f3dade;
    --ts-text:     #2a1418;
    --ts-muted:    #8d6a71;

    --ts-grad-red:   linear-gradient(135deg, #ff4d6d 0%, #e01e37 45%, #9d0208 100%);
    --ts-grad-ember: linear-gradient(135deg, #ffbe0b 0%, #ff7d00 55%, #e01e37 100%);
    --ts-grad-ink:   linear-gradient(165deg, #240d14 0%, #16070b 60%, #2b0f18 100%);
}

:root,
[data-theme-mode="light"] {
    --primary-rgb: 224, 30, 55;
    --secondary-rgb: 255, 125, 0;
    --body-bg-rgb: 255, 245, 246;
    --default-body-bg-color: #fff5f6;
}

/* ==========================================================================
   1. HEADER — dark ink bar with an ember hairline
   ========================================================================== */
.app-header {
    background: var(--ts-grad-ink) !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 30px -18px rgba(157, 2, 8, .75);
}
.app-header .main-header-container {
    background: transparent !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.app-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #9d0208, #e01e37 30%, #ff7d00 60%, #ffbe0b 100%);
}
.app-header .header-content-left,
.app-header .header-content-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.app-header .header-element { display: flex; align-items: center; }

.app-header .header-link {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: 4px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #ffe3e6 !important;
    transition: transform .15s ease, background .15s ease;
}
.app-header .header-link:hover {
    transform: translateY(-2px);
    background: rgba(224, 30, 55, .35);
}
.app-header .header-link-icon,
.app-header .header-link i { color: #ffe3e6 !important; }

.app-header .ml-menu-btn {
    background: var(--ts-grad-red);
    border-color: transparent;
    color: #fff !important;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px -8px rgba(224, 30, 55, .9);
}
.app-header .ml-menu-btn i { color: #fff !important; }
.app-header .switcher-icon { background: rgba(255, 190, 11, .16); }
.app-header .switcher-icon .header-link-icon,
.app-header .switcher-icon i { color: var(--ts-gold) !important; }

/* Centered logo (mobile) — header is dark, so use the white mark */
.app-header .horizontal-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0; padding: 0;
}
.app-header .horizontal-logo img,
.app-header .horizontal-logo .header-logo img {
    height: auto !important;
    max-height: 40px;
    width: auto;
    max-width: calc(100vw - 252px);
    object-fit: contain;
    display: none;
}
.app-header .horizontal-logo .header-logo img { display: none !important; }
.app-header .horizontal-logo .header-logo .toggle-logo { display: block !important; }

@media (max-width: 420px) {
    .app-header .horizontal-logo img,
    .app-header .horizontal-logo .header-logo img { max-height: 30px; }
    .app-header .header-link { width: 32px; height: 32px; margin-inline: 2px; font-size: .9rem; }
    .app-header .ml-menu-btn { font-size: .95rem; }
}

/* ==========================================================================
   2. SIDEBAR — ink rail, quiet icons, crimson only where it means something
   With 36 menu items, colouring every icon reads as noise. Icons stay neutral
   and only ignite on hover/active, so the eye tracks one thing at a time.
   ========================================================================== */
.app-sidebar,
[data-menu-styles="light"] .app-sidebar,
[data-menu-styles="dark"] .app-sidebar {
    background: var(--ts-grad-ink) !important;
    border-right: 0 !important;
    box-shadow: 18px 0 44px -34px rgba(157, 2, 8, .95);
    /* NB: do NOT set `position` here. The template relies on
       .app-sidebar{position:fixed} and these selectors outrank it, which drops
       the sidebar into normal flow and breaks the layout on every page.
       `fixed` already creates the containing block the ::before glow needs. */
}
/* warm bloom behind the profile card */
.app-sidebar::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 240px;
    background: radial-gradient(220px 150px at 50% 0%, rgba(224, 30, 55, .22), transparent 70%);
    pointer-events: none;
}

.app-sidebar .main-sidebar-header,
[data-menu-styles="light"] .app-sidebar .main-sidebar-header,
[data-menu-styles="dark"] .app-sidebar .main-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-sidebar .main-sidebar-header img { height: 40px; width: auto; }
/* Sidebar is dark — always show the white-text mark */
.app-sidebar .main-sidebar-header .header-logo img { display: none !important; }
.app-sidebar .main-sidebar-header .header-logo .desktop-logo { display: block !important; }

/* ---------------- Profile card ---------------- */
.ml-side-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 12px 12px;
    max-width: 216px;
    padding: 14px;
    border-radius: 18px;
    background:
        radial-gradient(220px 120px at 110% -20%, rgba(255, 190, 11, .38), transparent 62%),
        var(--ts-grad-red);
    color: #fff;
    box-shadow: 0 14px 26px -14px rgba(224, 30, 55, .95);
    position: relative;
    overflow: hidden;
}
.ml-side-profile::after {
    content: "";
    position: absolute;
    right: -34px; bottom: -40px;
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 16px solid rgba(255, 255, 255, .10);
}
.ml-side-profile .ml-side-avatar {
    width: 42px; height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .22);
    border: 2px solid rgba(255, 255, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}
.ml-side-profile .ml-side-info { display: flex; flex-direction: column; min-width: 0; }
.ml-side-profile .ml-side-name {
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.ml-side-profile .ml-side-sub { font-size: .68rem; color: rgba(255, 255, 255, .88); }
.ml-side-profile .ml-side-sub i { color: var(--ts-gold); }
.ml-side-profile .iti__flag {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .45);
    position: relative;
    z-index: 1;
}

/* ---------------- Menu search ---------------- */
.ts-menu-search {
    position: relative;
    margin: 0 12px 10px;
    max-width: 216px;
}
.ts-menu-search i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #a8757f;
    font-size: .9rem;
    pointer-events: none;
}
.ts-menu-search input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .28);
    color: #ffe9ec;
    font-size: .82rem;
    font-weight: 600;
    padding: 9px 30px 9px 34px;
    outline: none;
    transition: border-color .16s ease, background .16s ease;
}
.ts-menu-search input::placeholder { color: #8d626b; font-weight: 500; }
.ts-menu-search input:focus {
    border-color: rgba(224, 30, 55, .75);
    background: rgba(0, 0, 0, .42);
    box-shadow: 0 0 0 3px rgba(224, 30, 55, .15);
}
.ts-menu-search .ts-search-clear {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .10);
    color: #ffd9df;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ts-menu-search.has-value .ts-search-clear { display: flex; }
.ts-menu-search .ts-search-clear:hover { background: var(--ts-red); color: #fff; }

.ts-no-results {
    display: none;
    margin: 10px 14px;
    padding: 16px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, .14);
    color: #a8757f;
    font-size: .78rem;
    text-align: center;
    font-weight: 600;
}
.ts-no-results i { display: block; font-size: 1.3rem; margin-bottom: 6px; color: #6d3b44; }

/* ---------------- Category headings ---------------- */
.app-sidebar .slide__category {
    margin: 14px 0 4px;
    padding-inline: 22px 14px;
    position: relative;
}
.app-sidebar .slide__category::before {
    content: "";
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 2px;
    border-radius: 2px;
    background: var(--ts-red);
}
.app-sidebar .slide__category .category-name {
    color: #b4818b !important;
    font-weight: 800;
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ---------------- Top-level items ---------------- */
.app-sidebar .side-menu__item {
    color: #e8ccd1 !important;
    border-radius: 12px;
    margin: 2px 10px;
    padding: .5rem .7rem;
    position: relative;
    display: flex;
    align-items: center;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.app-sidebar .side-menu__label {
    color: inherit !important;
    font-weight: 600;
    font-size: .87rem;
    letter-spacing: .005em;
}
.app-sidebar .side-menu__icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d59aa5 !important;
    fill: #d59aa5;
    font-size: .98rem;
    margin-top: 0 !important;
    margin-inline-end: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

/* hover */
.app-sidebar .side-menu__item:hover {
    background: rgba(224, 30, 55, .15) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}
.app-sidebar .side-menu__item:hover .side-menu__icon {
    background: var(--ts-grad-red);
    border-color: transparent;
    color: #ffffff !important;
    fill: #ffffff;
    box-shadow: 0 6px 14px -6px rgba(224, 30, 55, .9);
}

/* active */
.app-sidebar .side-menu__item.active {
    background: linear-gradient(90deg, rgba(224, 30, 55, .55), rgba(224, 30, 55, .12)) !important;
    color: #ffffff !important;
}
.app-sidebar .side-menu__item.active::before {
    content: "";
    position: absolute;
    left: -10px; top: 7px; bottom: 7px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--ts-gold);
    box-shadow: 0 0 12px rgba(255, 190, 11, .8);
}
.app-sidebar .side-menu__item.active .side-menu__icon {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .28);
    color: #ffffff !important;
    fill: #ffffff;
}

/* chevron */
.app-sidebar .side-menu__angle {
    color: #8d626b !important;
    margin-left: auto;
    font-size: .85rem;
    transition: transform .2s ease, color .16s ease;
}
.app-sidebar .side-menu__item:hover .side-menu__angle { color: #ffd9df !important; }
.app-sidebar .slide.open > .side-menu__item .side-menu__angle { transform: rotate(90deg); color: var(--ts-gold) !important; }

/* ---------------- Submenus ---------------- */
.app-sidebar .slide-menu {
    background: rgba(0, 0, 0, .26) !important;
    border-radius: 12px;
    margin: 3px 10px 6px 26px;
    padding: 5px 0 5px 0;
    position: relative;
}
/* hierarchy guide line */
.app-sidebar .slide-menu::before {
    content: "";
    position: absolute;
    left: 13px; top: 9px; bottom: 9px;
    width: 1.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(224, 30, 55, .55), rgba(224, 30, 55, .06));
}
.app-sidebar .slide-menu .side-menu__item {
    color: #c9a3aa !important;
    font-weight: 600;
    font-size: .81rem;
    margin: 1px 8px 1px 0;
    padding: .38rem .6rem .38rem 26px;
    border-radius: 9px;
}
/* node dot on the guide line */
.app-sidebar .slide-menu .side-menu__item::after {
    content: "";
    position: absolute;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #7d4a53;
    transition: background .16s ease, box-shadow .16s ease;
}
.app-sidebar .slide-menu .side-menu__item:hover,
.app-sidebar .slide-menu .side-menu__item.active {
    color: #ffffff !important;
    background: rgba(224, 30, 55, .18) !important;
    transform: none;
}
.app-sidebar .slide-menu .side-menu__item:hover::after,
.app-sidebar .slide-menu .side-menu__item.active::after {
    background: var(--ts-gold);
    box-shadow: 0 0 8px rgba(255, 190, 11, .9);
}
.app-sidebar .slide-menu .side-menu__item::before { display: none; }
/* third level nests a little deeper */
.app-sidebar .slide-menu .slide-menu { margin-left: 18px; background: rgba(0, 0, 0, .22) !important; }

/* submenu group label */
.app-sidebar .side-menu__label1 a {
    color: #ff9aa8 !important;
    font-size: .62rem !important;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 4px 12px 6px 26px;
    display: block;
}

/* ---------------- Badges ---------------- */
.app-sidebar .menu-badge,
.app-sidebar .badge {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .22em .5em;
    border-radius: 999px;
    text-transform: uppercase;
}
.app-sidebar .badge.bg-success,
.app-sidebar .menu-badge { background: var(--ts-gold) !important; color: #3a1c00 !important; }
.app-sidebar .badge.bg-danger-transparent { background: rgba(224, 30, 55, .9) !important; color: #fff !important; }
.app-sidebar .badge.bg-warning-transparent { background: rgba(255, 190, 11, .22) !important; color: var(--ts-gold) !important; }

/* ---------------- Scroll + arrows ---------------- */
.app-sidebar .slide-left svg,
.app-sidebar .slide-right svg { fill: #8d626b; }
.app-sidebar .simplebar-scrollbar::before { background: rgba(224, 30, 55, .55) !important; }
#sidebar-scroll { scrollbar-width: thin; scrollbar-color: rgba(224, 30, 55, .5) transparent; }
#sidebar-scroll::-webkit-scrollbar { width: 6px; }
#sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(224, 30, 55, .5); border-radius: 99px; }
#sidebar-scroll::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Search filtering states ---------------- */
.ts-searching .slide__category { display: none !important; }
.ts-searching .slide.ts-hide { display: none !important; }
/* force matched branches open while filtering */
.ts-searching .slide-menu.ts-open { display: block !important; }
.ts-searching .side-menu__label1 { display: none !important; }

/* ==========================================================================
   3. CONTENT SURFACE
   ========================================================================== */
body { background-color: var(--ts-blush); }
.main-content.app-content {
    background-color: transparent;
    background-image:
        radial-gradient(760px 380px at 100% -6%, rgba(224, 30, 55, .10), transparent 62%),
        radial-gradient(620px 340px at -6% 104%, rgba(255, 125, 0, .09), transparent 60%);
    background-attachment: fixed;
}
.custom-card,
.card.custom-card {
    border-radius: 18px;
    border: 1px solid var(--ts-line);
    background: #fff;
    box-shadow: 0 18px 38px -28px rgba(107, 4, 15, .45);
}
.card-header {
    border-bottom: 1px solid var(--ts-line);
    background: transparent;
}
.card-title {
    color: var(--ts-text);
    font-weight: 800;
    letter-spacing: .06em;
    font-size: .78rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 3px;
    background: var(--ts-grad-red);
    flex-shrink: 0;
}
.page-title { color: var(--ts-text); }
.breadcrumb-item a { color: var(--ts-red); }
a { color: var(--ts-red-600); }
a:hover { color: var(--ts-red-700); }
.text-primary { color: var(--ts-red) !important; }
.bg-primary { background-color: var(--ts-red) !important; }

/* ==========================================================================
   4. HERO / WALLET
   ========================================================================== */
.ml-hero {
    background:
        radial-gradient(560px 280px at 98% -25%, rgba(255, 190, 11, .40), transparent 58%),
        radial-gradient(420px 260px at -8% 120%, rgba(255, 125, 0, .35), transparent 62%),
        var(--ts-grad-red);
    color: #fff;
    border-radius: 22px !important;
    border: 0 !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 26px 50px -30px rgba(157, 2, 8, .9) !important;
}
.ml-hero::before {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 210px; height: 210px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .10);
}
.ml-hero::after {
    content: "";
    position: absolute;
    left: -40px; bottom: -70px;
    width: 160px; height: 160px;
    border-radius: 42px;
    transform: rotate(24deg);
    background: rgba(255, 255, 255, .05);
}
.ml-hero .card-body { position: relative; z-index: 1; }
.ml-hero .ml-hero-badge {
    background: rgba(0, 0, 0, .22);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .38rem .95rem;
    font-weight: 700;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.ml-hero p,
.ml-hero #welcomeText { color: rgba(255, 255, 255, .93); }
.ml-hero .text-muted { color: rgba(255, 255, 255, .72) !important; }
.ml-hero a { color: var(--ts-gold); }
.ml-hero .alert { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 14px; }
.ml-hero .ml-tile {
    background: rgba(0, 0, 0, .20);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 16px;
    padding: 15px 17px;
    height: 100%;
    backdrop-filter: blur(5px);
}
.ml-hero .ml-tile .ml-tile-label {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2px;
}
.ml-hero .ml-tile .ml-tile-value { white-space: nowrap; overflow: hidden; }
.ml-hero .ml-tile-earnings { border-color: rgba(255, 190, 11, .55); background: rgba(0, 0, 0, .28); }
.ml-hero .ml-tile-earnings .ml-tile-label { color: var(--ts-gold); }
.ml-hero .ml-tile-earnings .ml-tile-value { color: #fff; font-size: 1.7rem; font-weight: 800; }
.ml-hero .ml-tile-expense .ml-tile-label { color: rgba(255, 255, 255, .78); }
.ml-hero .ml-tile-expense .ml-tile-value { color: #fff; font-size: 1.05rem; font-weight: 700; }
.ml-hero .ml-tile-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ffbe0b, #ff7d00);
    color: #4a1200;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   5. STAT RAIL — vertical stacked stats (replaces the 4-across row)
   ========================================================================== */
.ts-rail { display: flex; flex-direction: column; gap: 12px; }
.ts-rail-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-left: 5px solid var(--ts-red);
    box-shadow: 0 12px 26px -22px rgba(107, 4, 15, .55);
    transition: transform .16s ease, box-shadow .16s ease;
}
.ts-rail-item:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 30px -20px rgba(107, 4, 15, .6);
}
.ts-rail-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    background: var(--ts-grad-red);
}
.ts-rail-body { min-width: 0; flex: 1; }
.ts-rail-label {
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ts-muted);
    font-weight: 800;
    margin: 0;
}
.ts-rail-value {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--ts-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}
.ts-rail-sub { font-size: .62rem; letter-spacing: .1em; color: #b39aa0; font-weight: 700; }

.ts-rail-crimson { border-left-color: #e01e37; }
.ts-rail-crimson .ts-rail-icon { background: linear-gradient(135deg, #ff4d6d, #c1121f); }
.ts-rail-ember   { border-left-color: #ff7d00; }
.ts-rail-ember .ts-rail-icon { background: linear-gradient(135deg, #ff9e00, #e85d04); }
.ts-rail-gold    { border-left-color: #ffbe0b; }
.ts-rail-gold .ts-rail-icon { background: linear-gradient(135deg, #ffd60a, #ff9e00); color: #4a1200; }
.ts-rail-plum    { border-left-color: #6a040f; }
.ts-rail-plum .ts-rail-icon { background: linear-gradient(135deg, #9d0208, #370617); }

/* Legacy stat cards (other pages) — recoloured to the ember palette */
.ml-stat {
    color: #fff;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.ml-stat::after {
    content: "";
    position: absolute;
    right: -30px; top: -30px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}
.ml-stat .ml-stat-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    font-size: 1.35rem;
    color: #fff;
}
.ml-stat .ml-stat-label {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}
.ml-stat .ml-stat-value { font-size: 1.35rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; }
.ml-stat .ml-stat-sub { font-size: .66rem; color: rgba(255, 255, 255, .65); letter-spacing: .1em; }
.ml-stat-teal, .ml-stat-green  { background: linear-gradient(135deg, #ff4d6d, #9d0208); }
.ml-stat-indigo, .ml-stat-blue { background: linear-gradient(135deg, #e5383b, #6a040f); }
.ml-stat-amber, .ml-stat-yellow{ background: linear-gradient(135deg, #ffbe0b, #e85d04); }
.ml-stat-sky                   { background: linear-gradient(135deg, #ff9e00, #c1121f); }
.ml-stat-rose, .ml-stat-pink   { background: linear-gradient(135deg, #ff758f, #a4133c); }
.ml-stat-red                   { background: linear-gradient(135deg, #f77f00, #9d0208); }

/* ==========================================================================
   6. ACTION RIBBON — horizontal scroller at the top of the dashboard
   ========================================================================== */
.ts-ribbon {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 30, 55, .45) transparent;
}
.ts-ribbon::-webkit-scrollbar { height: 6px; }
.ts-ribbon::-webkit-scrollbar-thumb { background: rgba(224, 30, 55, .45); border-radius: 99px; }
.ts-ribbon::-webkit-scrollbar-track { background: transparent; }
.ts-ribbon-item {
    flex: 1 0 118px;
    min-width: 118px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff !important;
    font-weight: 750;
    font-size: .82rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
}
.ts-ribbon-item::after {
    content: "";
    position: absolute;
    right: -22px; top: -22px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
}
.ts-ribbon-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 26px -14px rgba(107, 4, 15, .75);
    color: #fff !important;
}
.ts-ribbon-item i {
    font-size: 1.3rem;
    width: 34px; height: 34px;
    border-radius: 11px;
    background: rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.ts-ribbon-item span { position: relative; z-index: 1; line-height: 1.15; }
.ts-rb-1 { background: linear-gradient(135deg, #ff4d6d, #c1121f); }
.ts-rb-2 { background: linear-gradient(135deg, #e5383b, #6a040f); }
.ts-rb-3 { background: linear-gradient(135deg, #ff9e00, #e01e37); }
.ts-rb-4 { background: linear-gradient(135deg, #ffbe0b, #f77f00); color: #3d1000 !important; }
.ts-rb-4 i { background: rgba(0, 0, 0, .14); }
.ts-rb-5 { background: linear-gradient(135deg, #ff758f, #a4133c); }
.ts-rb-6 { background: linear-gradient(135deg, #9d0208, #370617); }

/* Legacy tile actions */
.ml-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ml-action:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(107, 4, 15, .6); color: #fff; }
.ml-action i { font-size: 1.5rem; }
.ml-action-teal   { background: linear-gradient(135deg, #ff4d6d, #c1121f); }
.ml-action-indigo { background: linear-gradient(135deg, #e5383b, #6a040f); }
.ml-action-amber  { background: linear-gradient(135deg, #ff9e00, #e01e37); }
.ml-action-pink   { background: linear-gradient(135deg, #ff758f, #a4133c); }
.ml-action-sky    { background: linear-gradient(135deg, #ffbe0b, #f77f00); color: #3d1000; }
.ml-action-lime   { background: linear-gradient(135deg, #9d0208, #370617); }

/* ==========================================================================
   7. SERVICE TILES — grid of earnings sources (replaces the vertical list)
   ========================================================================== */
.ts-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}
.ts-svc {
    display: block;
    padding: 15px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
    border: 1px solid var(--ts-line);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ts-svc:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 30, 55, .45);
    box-shadow: 0 18px 30px -20px rgba(107, 4, 15, .55);
}
.ts-svc::after {
    content: "";
    position: absolute;
    inset: auto -30px -34px auto;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(224, 30, 55, .06);
}
.ts-svc-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}
.ts-svc-icon svg { width: 20px; height: 20px; fill: #fff; }
.ts-svc-name {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ts-muted);
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}
.ts-svc-value {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ts-text);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-svc-1 .ts-svc-icon { background: linear-gradient(135deg, #ff4d6d, #c1121f); }
.ts-svc-2 .ts-svc-icon { background: linear-gradient(135deg, #ff9e00, #e01e37); }
.ts-svc-3 .ts-svc-icon { background: linear-gradient(135deg, #ffbe0b, #f77f00); }
.ts-svc-4 .ts-svc-icon { background: linear-gradient(135deg, #e5383b, #6a040f); }
.ts-svc-5 .ts-svc-icon { background: linear-gradient(135deg, #ff758f, #a4133c); }
.ts-svc-6 .ts-svc-icon { background: linear-gradient(135deg, #9d0208, #370617); }
.ts-svc-7 .ts-svc-icon { background: linear-gradient(135deg, #f77f00, #9d0208); }

/* ==========================================================================
   8. SHARE HUB — invite links
   ========================================================================== */
.ts-share-field {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ts-line);
    background: #fff6f7;
}
.ts-share-field input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--ts-text) !important;
    font-size: .78rem;
    padding: 11px 13px;
    box-shadow: none !important;
}
.ts-share-field input:focus { outline: none; }
.ts-share-field button {
    border: 0;
    background: var(--ts-grad-red);
    color: #fff;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0 18px;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .15s ease;
}
.ts-share-field button:hover { filter: brightness(1.12); }
.ts-share-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ts-share-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--ts-line);
    background: #fff;
    color: var(--ts-muted);
    transition: all .15s ease;
}
.ts-share-tab.active {
    background: var(--ts-grad-red);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px -12px rgba(224, 30, 55, .9);
}
.ts-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-social a {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ts-social a:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .5); }
.ts-social .ts-wa { background: linear-gradient(135deg, #34e07a, #128c4b); }
.ts-social .ts-tw { background: linear-gradient(135deg, #4dc3ff, #0072a8); }
.ts-social .ts-fb { background: linear-gradient(135deg, #6688e0, #24408e); }
.ts-social .ts-ml { background: linear-gradient(135deg, #ff4d6d, #9d0208); }

/* ==========================================================================
   9. CHIPS / PROGRESS / TABLE
   ========================================================================== */
.ml-progress {
    height: 14px;
    border-radius: 999px;
    background: #f6e5e8;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(107, 4, 15, .10);
}
.ml-progress .ml-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffbe0b, #ff7d00 45%, #e01e37 100%);
    transition: width .6s ease;
}
.ml-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 800;
}
.ml-chip-teal   { background: rgba(224, 30, 55, .10);  color: #c1121f; }
.ml-chip-indigo { background: rgba(157, 2, 8, .10);    color: #9d0208; }
.ml-chip-pink   { background: rgba(255, 117, 143, .16); color: #a4133c; }
.ml-chip-amber  { background: rgba(255, 190, 11, .20);  color: #b45309; }

.ml-timetable { border-collapse: separate; border-spacing: 0; width: 100%; }
.ml-timetable thead th {
    background: var(--ts-grad-ink);
    color: #ffd9df;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 0;
    padding: 11px 12px;
    position: sticky;
    top: 0;
}
.ml-timetable thead th:first-child { border-top-left-radius: 12px; }
.ml-timetable thead th:last-child  { border-top-right-radius: 12px; }
.ml-timetable tbody td {
    border: 0;
    border-bottom: 1px solid #f6e5e8;
    padding: 11px 12px;
    font-size: .85rem;
    color: #4a2b31;
    vertical-align: middle;
}
.ml-timetable tbody tr:nth-child(odd) td { background: #fff8f9; }
.ml-timetable tbody tr:hover td { background: #ffeef0; }
.ml-timetable .ml-tt-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 9px;
    font-weight: 800;
    font-size: .76rem;
    color: #fff;
    background: linear-gradient(135deg, #ff4d6d, #c1121f);
}
.ml-timetable tbody tr:nth-child(3n+2) .ml-tt-num { background: linear-gradient(135deg, #ff9e00, #e01e37); }
.ml-timetable tbody tr:nth-child(3n+3) .ml-tt-num { background: linear-gradient(135deg, #9d0208, #370617); }

/* Detail list */
.ts-detail { display: flex; flex-direction: column; gap: 10px; }
.ts-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff8f9;
    border: 1px dashed var(--ts-line);
}
.ts-detail-row i {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    background: var(--ts-grad-red);
    flex-shrink: 0;
}
.ts-detail-label {
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ts-muted);
    font-weight: 800;
}
.ts-detail-value { font-weight: 700; color: var(--ts-text); word-break: break-all; }
.ts-blur { filter: blur(6px); transition: filter .25s ease; user-select: none; }
.ts-blur.ts-revealed { filter: none; }

/* ==========================================================================
   10. BUTTONS / FORMS / FOOTER
   ========================================================================== */
.btn-primary,
.btn-primary:focus {
    background: var(--ts-grad-red) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(224, 30, 55, .9) !important;
}
.btn-primary:hover { filter: brightness(1.1); color: #fff !important; }
.btn-outline-primary { color: var(--ts-red) !important; border-color: var(--ts-red) !important; }
.btn-outline-primary:hover { background: var(--ts-red) !important; color: #fff !important; }
.form-control:focus,
.form-select:focus {
    border-color: var(--ts-red);
    box-shadow: 0 0 0 .2rem rgba(224, 30, 55, .16);
}
.accordion-button:not(.collapsed) {
    background: rgba(224, 30, 55, .08);
    color: var(--ts-red-700);
    box-shadow: none;
}
.accordion-button:focus { border-color: var(--ts-line); box-shadow: 0 0 0 .2rem rgba(224, 30, 55, .14); }

.footer {
    background: var(--ts-grad-ink) !important;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #9d0208, #e01e37, #ff7d00, #ffbe0b) 1;
}
.footer .text-muted,
.footer a,
.footer .text-dark { color: rgba(255, 226, 230, .78) !important; }
.footer .text-primary { color: var(--ts-gold) !important; }
.scrollToTop { background: var(--ts-grad-red); color: #fff; }

/* Section heading used across the new dashboard rows */
.ts-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 2px 14px;
}
.ts-section-head h6 {
    margin: 0;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ts-red-700);
    white-space: nowrap;
}
.ts-section-head::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(224, 30, 55, .35), transparent);
}

/* ==========================================================================
   10b. COMMAND BAR — sits above the first dashboard row
   ========================================================================== */
.ts-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(120deg, #fff 0%, #fff3f4 100%);
    border: 1px solid var(--ts-line);
    box-shadow: 0 14px 30px -26px rgba(107, 4, 15, .55);
}
.ts-topbar-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ts-topbar-avatar {
    width: 44px; height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    background: var(--ts-grad-red);
    box-shadow: 0 12px 22px -12px rgba(224, 30, 55, .9);
}
.ts-topbar-hi {
    margin: 0;
    font-size: .98rem;
    color: var(--ts-text);
    font-weight: 500;
    line-height: 1.25;
}
.ts-topbar-hi b { font-weight: 800; }
.ts-topbar-date {
    margin: 0;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ts-muted);
    font-weight: 700;
}
.ts-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 15px;
    font-size: .74rem;
    font-weight: 800;
    color: #9d0208;
    background: rgba(224, 30, 55, .10);
    border: 1px solid rgba(224, 30, 55, .18);
    white-space: nowrap;
}
.ts-pulse i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ts-red);
    display: block;
    animation: ts-pulse-anim 1.8s infinite;
}
@keyframes ts-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .3; transform: scale(.65); }
}
.ts-lang {
    border-radius: 11px;
    border: 1px solid var(--ts-line);
    background: #fff;
    color: var(--ts-text);
    font-size: .8rem;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
}
.ts-lang:focus { border-color: var(--ts-red); box-shadow: 0 0 0 .2rem rgba(224, 30, 55, .14); }

/* Agent-bonus progress ring */
.ts-goal-ring-wrap { display: flex; align-items: center; gap: 16px; }
.ts-goal-ring {
    width: 92px; height: 92px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#e01e37 calc(var(--pct, 0) * 1%), #f6e5e8 0);
    box-shadow: 0 14px 26px -18px rgba(224, 30, 55, .8);
}
.ts-goal-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #fff;
}
.ts-goal-ring > span {
    position: relative;
    z-index: 1;
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--ts-red-700);
    line-height: 1;
}
.ts-goal-ring > span small { font-size: .72rem; font-weight: 800; }
.ts-goal-copy { min-width: 0; }
.ts-goal-copy p { margin: 0; }

/* ==========================================================================
   11. AUTH PAGES — split brand panel + form card
   ========================================================================== */
body.ts-auth-body {
    background: var(--ts-blush) !important;
    min-height: 100vh;
    margin: 0;
}
.ts-auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}
.ts-auth-brand {
    width: 42%;
    max-width: 560px;
    padding: 46px 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(620px 380px at 110% 0%, rgba(255, 190, 11, .30), transparent 58%),
        radial-gradient(520px 340px at -10% 110%, rgba(255, 125, 0, .28), transparent 60%),
        var(--ts-grad-ink);
}
.ts-auth-brand::before {
    content: "";
    position: absolute;
    right: -120px; top: 12%;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 44px solid rgba(224, 30, 55, .18);
}
.ts-auth-brand::after {
    content: "";
    position: absolute;
    left: -70px; bottom: -90px;
    width: 240px; height: 240px;
    border-radius: 60px;
    transform: rotate(28deg);
    background: rgba(255, 125, 0, .10);
}
.ts-auth-brand > * { position: relative; z-index: 1; }
.ts-auth-brand .ts-auth-logo { height: 46px; width: auto; margin-bottom: 34px; }
.ts-auth-brand h1 {
    font-size: 2.2rem;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 14px;
}
.ts-auth-brand h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ffbe0b, #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ts-auth-brand p.ts-auth-lead {
    color: rgba(255, 226, 230, .78);
    font-size: .98rem;
    margin-bottom: 28px;
    max-width: 420px;
}
.ts-auth-points { list-style: none; padding: 0; margin: 0 0 32px; }
.ts-auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
    font-size: .9rem;
    color: rgba(255, 240, 242, .92);
    font-weight: 600;
}
.ts-auth-points li i {
    width: 32px; height: 32px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
    background: var(--ts-grad-red);
}
.ts-auth-points li:nth-child(2) i { background: linear-gradient(135deg, #ff9e00, #e01e37); }
.ts-auth-points li:nth-child(3) i { background: linear-gradient(135deg, #ffbe0b, #f77f00); color: #3d1000; }
.ts-auth-points li:nth-child(4) i { background: linear-gradient(135deg, #9d0208, #370617); }
.ts-auth-metrics { display: flex; gap: 28px; flex-wrap: wrap; }
.ts-auth-metrics b {
    display: block;
    font-size: 1.5rem;
    color: var(--ts-gold);
    line-height: 1.1;
}
.ts-auth-metrics span {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 226, 230, .6);
    font-weight: 700;
}

.ts-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-width: 0;
}
.ts-auth-inner { width: 100%; max-width: 470px; }
.ts-auth-mobile-logo { display: none; text-align: center; margin-bottom: 22px; }
.ts-auth-mobile-logo img { height: 44px; width: auto; }
.ts-auth-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--ts-line);
    box-shadow: 0 34px 70px -40px rgba(107, 4, 15, .55);
    overflow: hidden;
    position: relative;
}
.ts-auth-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, #9d0208, #e01e37 35%, #ff7d00 70%, #ffbe0b 100%);
}
.ts-auth-card-body { padding: 38px 34px 32px; }

/* Form styling inside the auth card */
.ts-auth-card-body .h5,
.ts-auth-card-body p.h5 {
    color: var(--ts-text);
    font-weight: 800;
    font-size: 1.45rem !important;
}
.ts-auth-card-body .form-label {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ts-muted);
    margin-bottom: 5px;
}
.ts-auth-card-body .form-control,
.ts-auth-card-body .form-select {
    border-radius: 13px;
    border: 1px solid var(--ts-line);
    background: #fff8f9;
    padding: .7rem .9rem;
}
.ts-auth-card-body .form-control:focus,
.ts-auth-card-body .form-select:focus {
    background: #fff;
    border-color: var(--ts-red);
    box-shadow: 0 0 0 .22rem rgba(224, 30, 55, .14);
}
.ts-auth-card-body .btn-primary,
.ts-auth-card-body .btn-info,
.ts-auth-card-body .btn-success {
    background: var(--ts-grad-red) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .85rem;
    border-radius: 13px;
    padding: .82rem 1rem;
    box-shadow: 0 14px 28px -14px rgba(224, 30, 55, .95) !important;
}
.ts-auth-card-body .btn-primary:hover,
.ts-auth-card-body .btn-info:hover,
.ts-auth-card-body .btn-success:hover { filter: brightness(1.1); color: #fff !important; }
.ts-auth-card-body a { color: var(--ts-red-600); font-weight: 700; }
.ts-auth-card-body a:hover { color: var(--ts-red-700); }
.ts-auth-card-body .form-check-input:checked { background-color: var(--ts-red); border-color: var(--ts-red); }
.ts-auth-card-body .alert { border-radius: 14px; }

/* Legacy wrappers still used by a few activation pages */
.authentication .card.custom-card {
    border: 1px solid var(--ts-line);
    border-radius: 22px;
    border-top: 5px solid var(--ts-red);
    background: #fff;
    box-shadow: 0 34px 70px -40px rgba(107, 4, 15, .55);
}
.auth-brand-logo { height: 52px; width: auto; }

@media (max-width: 1100px) {
    .ts-auth-brand { width: 38%; padding: 36px 30px; }
    .ts-auth-brand h1 { font-size: 1.85rem; }
}
@media (max-width: 900px) {
    .ts-auth-shell { flex-direction: column; }
    .ts-auth-brand { display: none; }
    .ts-auth-mobile-logo { display: block; }
    .ts-auth-main { padding: 26px 16px 40px; }
    .ts-auth-card-body { padding: 30px 22px 26px; }
}

/* ==========================================================================
   12. RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 575.98px) {
    .ts-svc-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .ml-hero .ml-tile-earnings .ml-tile-value { font-size: 1.45rem; }
    .ts-ribbon-item { flex: 0 0 132px; }
    .ts-rail-value { font-size: 1.08rem; }
}
