@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap");
:root{--bg:#f5efe4;--panel:#fffdf8;--ink:#241a12;--muted:#776b5e;--line:#e7d8c4;--gold:#b9904a;--accent:#241a12;--red:#b83d34;--green:#2f6d56;--shadow:0 18px 50px rgba(47,31,13,.08)}
.theme-dark{--bg:#0b0f17;--panel:#111827;--ink:#f8fafc;--muted:#9fb0c7;--line:#253044;--gold:#facc15;--accent:#facc15;--red:#ef4444;--green:#2dd4bf;--shadow:0 20px 60px rgba(0,0,0,.35)}.theme-ios{--bg:#f2f5ff;--panel:rgba(255,255,255,.78);--ink:#172033;--muted:#697386;--line:rgba(111,132,180,.22);--gold:#6d5dfc;--accent:#6d5dfc;--red:#ff3b5f;--green:#0fb981;--shadow:0 24px 70px rgba(58,82,170,.14)}
*{box-sizing:border-box}body{margin:0;font-family:Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.35}a{color:inherit}.app{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:#21170f;color:#fff;padding:26px 18px}.theme-dark .sidebar{background:#070a10;border-right:1px solid var(--line)}.brand b{display:block;font-size:28px;letter-spacing:.03em}.brand span{display:block;color:#d8c9b6;margin:8px 0 22px}nav a{display:block;text-decoration:none;color:#fff;padding:13px 14px;border-radius:14px;margin:7px 0;font-weight:700}nav a:hover{background:rgba(255,255,255,.12)}.main{min-width:0}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.45)}.theme-dark .topbar{background:#0b0f17}.topbar h1{margin:0;font-size:28px}.topbar p{margin:4px 0 0;color:var(--muted)}.userbox{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.userbox span{color:var(--muted);font-size:13px}.content{padding:28px;max-width:1600px}.panel,.card,.status-card,.login-card{background:var(--panel);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:20px;margin-bottom:18px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.card{margin:0}.card p{margin:0;color:var(--muted);font-weight:800}.card h2{margin:10px 0 0;font-size:38px;letter-spacing:-.02em}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h3{margin:0;font-size:22px}.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.status-card{text-decoration:none;display:flex;justify-content:space-between;align-items:center;margin:0}.status-card b{font-size:14px;font-weight:650}.status-card span{font-size:28px;font-weight:900;color:var(--gold)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;background:var(--panel)}th,td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;vertical-align:top}th{background:rgba(185,144,74,.12);color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.03em}.pill{display:inline-block;background:rgba(185,144,74,.18);border-radius:999px;padding:5px 10px;font-weight:650}.theme-dark .pill{background:rgba(45,212,191,.22);color:#ccfbf1}.phone{font-weight:800}.note-cell{white-space:normal;max-width:360px}.actions,.actions-line{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn,button{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:13px;padding:10px 14px;text-decoration:none;font-weight:800;cursor:pointer;font-family:inherit}.btn.primary,button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.theme-dark .btn.primary,.theme-dark button.primary{color:#0b0f17}.btn.danger,button.danger{background:var(--red);border-color:var(--red);color:#fff}.btn.small{font-size:13px;padding:7px 10px;border-radius:10px}.filters{display:grid;grid-template-columns:1fr 260px auto auto auto;gap:10px;margin-bottom:14px;align-items:end}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-grid.narrow{grid-template-columns:minmax(320px,560px)}.full{grid-column:1/-1}label{display:block;font-weight:800;margin:8px 0 7px}input,select,textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--ink);font:inherit}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(185,144,74,.15)}small,.muted{color:var(--muted)}.flash{border-radius:14px;padding:12px 14px;margin-bottom:14px;font-weight:800}.flash.success{background:#e9f8ef;color:#17623a;border:1px solid #bde7ca}.flash.error{background:#fff1ee;color:#9b2f24;border:1px solid #ffd0c8}.theme-dark .flash.success{background:#06351e;color:#b7f7cf;border-color:#17623a}.theme-dark .flash.error{background:#3b0b0b;color:#fecaca;border-color:#7f1d1d}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:430px}.brand-mark{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#241a12;color:#fff;font-size:28px;font-weight:900;margin-bottom:16px}.field-config-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:rgba(255,255,255,.35)}.theme-dark .field-card{background:rgba(255,255,255,.03)}.setting-tabs{display:flex;gap:10px;flex-wrap:wrap}.switch{display:inline-flex;align-items:center}.switch input{display:none}.switch span{width:42px;height:22px;border-radius:999px;background:#c9c9c9;display:inline-block;position:relative}.switch span:before{content:"";width:18px;height:18px;border-radius:50%;background:#fff;position:absolute;top:2px;left:2px;transition:.2s}.switch input:checked+span{background:#3b9df1}.theme-dark .switch input:checked+span{background:#facc15}.switch input:checked+span:before{left:22px}.danger-zone{border-color:rgba(184,61,52,.45)}.check{display:flex;gap:8px;align-items:center}.check input{width:auto}@media(max-width:1100px){.app{grid-template-columns:1fr}.sidebar{position:static}.kpi-grid,.status-grid,.form-grid,.field-config-grid,.filters{grid-template-columns:1fr}.topbar{height:auto;padding:18px;align-items:flex-start;flex-direction:column}.content{padding:18px}}@media(max-width:640px){.content{padding:12px}.card h2{font-size:30px}}


body.theme-ios,.theme-ios .app{background:linear-gradient(135deg,#f4f7ff 0%,#fff7fb 42%,#f4fffb 100%)}
.theme-ios .sidebar{background:linear-gradient(180deg,#111827 0%,#312e81 55%,#0f172a 100%);border-right:1px solid rgba(255,255,255,.12)}
.theme-ios .topbar{background:rgba(255,255,255,.72);backdrop-filter:blur(18px)}
.theme-ios .btn.primary,.theme-ios button.primary{background:linear-gradient(135deg,#6d5dfc,#00c2ff);border-color:transparent;color:#fff;box-shadow:0 10px 24px rgba(109,93,252,.22)}
.theme-ios .pill{background:linear-gradient(135deg,rgba(109,93,252,.18),rgba(0,194,255,.18));color:#1e3a8a}
.theme-ios .card,.theme-ios .panel,.theme-ios .status-card,.theme-ios .login-card{backdrop-filter:blur(16px)}
.profile-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;margin-bottom:22px}.profile-brand b{font-size:26px}.profile-brand span{margin:4px 0 0;line-height:1.4}.avatar{width:52px;height:52px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--gold),var(--green));color:#fff;font-weight:900;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar.big{width:88px;height:88px;font-size:36px}.profile-preview{display:flex;gap:18px;align-items:center}.theme-form select{min-width:155px;padding:8px 10px;border-radius:11px}.bulkbar{display:grid;grid-template-columns:auto auto minmax(240px,1fr) auto;gap:10px;margin:12px 0;align-items:center}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;color:var(--muted)}.page-num{display:inline-flex;align-items:center;padding:7px 10px;font-weight:700;color:var(--ink)}.row-check{width:auto}.theme-dark .table-wrap th{background:rgba(255,255,255,.08)}.theme-ios .table-wrap th{background:rgba(109,93,252,.09)}@media(max-width:900px){.bulkbar{grid-template-columns:1fr}.theme-form select{min-width:120px}}

/* Patch V2.2.2: advanced filters */
.filters.filters-advanced{display:grid;grid-template-columns:minmax(280px,1.2fr) 220px 280px 160px 160px auto auto auto;gap:10px;margin-bottom:10px;align-items:end}.filters.filters-advanced select[multiple]{min-height:76px;padding:8px 10px}.filter-hint{margin:0 0 12px}.filters.filters-advanced input[type=date]{min-width:150px}@media(max-width:1280px){.filters.filters-advanced{grid-template-columns:1fr 220px 260px 160px 160px}.filters.filters-advanced .btn{width:100%}}@media(max-width:900px){.filters.filters-advanced{grid-template-columns:1fr}.filters.filters-advanced select[multiple]{min-height:110px}}

/* Patch V2.2.9: Clean stable Hall of Fame + Revenue/Check-in support */
.checkin-pill{background:rgba(250,204,21,.14)!important;color:#facc15!important}.theme-ios .checkin-pill{background:rgba(109,93,252,.13)!important;color:#4f46e5!important}.revenue-filters{grid-template-columns:minmax(260px,1fr) 210px 280px 155px 155px 170px auto!important}.revenue-filters select[multiple]{min-height:76px}@media(max-width:1280px){.revenue-filters{grid-template-columns:1fr 220px 260px 155px 155px!important}}@media(max-width:900px){.revenue-filters{grid-template-columns:1fr!important}}
.top-tele-card{margin-top:24px!important;padding:12px!important;border-radius:16px!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:hidden!important;border:1px solid rgba(250,204,21,.42)!important;background:linear-gradient(180deg,#121826 0%,#080b12 100%)!important;box-shadow:0 14px 36px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,255,255,.05)!important}.top-tele-card:before,.top-tele-card:after{display:none!important}.top-tele-card .hof-kicker{text-align:center!important;font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.16em!important;color:#facc15!important;margin:0 0 6px!important}.top-tele-card .top-title{text-align:center!important;font-size:8.6px!important;line-height:1!important;white-space:nowrap!important;font-weight:900!important;letter-spacing:.02em!important;color:#ffe8a3!important;margin:0 0 12px!important;text-shadow:none!important}.top-tele-card ol{list-style:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:6px!important}.top-tele-card li{display:grid!important;grid-template-columns:24px 1fr auto!important;gap:7px!important;align-items:center!important;min-height:29px!important;padding:4px 7px!important;border-radius:11px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.065)!important;color:#fff!important}.top-tele-card li b{font-size:11.5px!important;font-weight:800!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.top-tele-card li em{font-size:12.5px!important;font-weight:900!important;font-style:normal!important;color:#facc15!important}.top-tele-card .medal{width:22px!important;height:22px!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#fef3c7,#d69e2e 48%,#7c4a03)!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)!important}.top-tele-card .medal:after{content:'★'!important;font-size:10px!important;color:#fff8d1!important}.top-tele-card li:nth-child(2) .medal{background:linear-gradient(135deg,#f8fafc,#94a3b8 52%,#475569)!important}.top-tele-card li:nth-child(3) .medal{background:linear-gradient(135deg,#fed7aa,#b45309 52%,#7c2d12)!important}.top-tele-card li:nth-child(n+4) .medal{background:linear-gradient(135deg,#1f2937,#0f172a)!important;border:1px solid rgba(250,204,21,.35)!important}.top-tele-card li:nth-child(n+4) .medal:after{content:''!important}.top-empty{text-align:center!important;margin:0!important;padding:8px!important;font-size:11.5px!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;color:#d8c9b6!important}.theme-ios .top-tele-card{background:linear-gradient(180deg,#111827 0%,#1e1b4b 100%)!important;border-color:rgba(250,204,21,.48)!important;box-shadow:0 14px 34px rgba(39,55,120,.25),inset 0 0 0 1px rgba(255,255,255,.06)!important}.theme-ios .top-tele-card li{background:rgba(0,0,0,.28)!important;color:#fff!important}.theme-ios .top-tele-card .top-title{color:#ffe8a3!important}.theme-ios .top-tele-card .hof-kicker,.theme-ios .top-tele-card li em{color:#facc15!important}

/* Patch V2.2.10: FINAL Sidebar Hall of Fame - fixed inside left menu */
.top-tele-card{
    width:100% !important;
    margin:24px 0 0 !important;
    height:306px !important;
    min-height:306px !important;
    max-height:306px !important;
    padding:12px 10px !important;
    position:relative !important;
    overflow:hidden !important;
    border-radius:18px !important;
    border:1px solid rgba(214,158,46,.78) !important;
    background:
        radial-gradient(ellipse at 50% 28%, rgba(250,204,21,.20) 0%, rgba(250,204,21,.08) 28%, transparent 52%),
        linear-gradient(180deg,#111827 0%,#090d15 54%,#05070c 100%) !important;
    box-shadow:
        0 18px 42px rgba(0,0,0,.40),
        inset 0 0 0 1px rgba(255,255,255,.06),
        inset 0 0 38px rgba(250,204,21,.06) !important;
}

.top-tele-card:before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    inset:8px !important;
    border-radius:14px !important;
    border:1px solid rgba(250,204,21,.28) !important;
    pointer-events:none !important;
    z-index:1 !important;
}

.top-tele-card:after{
    content:"★" !important;
    display:block !important;
    position:absolute !important;
    left:50% !important;
    top:58px !important;
    transform:translateX(-50%) !important;
    width:82px !important;
    height:82px !important;
    border-radius:50% !important;
    text-align:center !important;
    line-height:82px !important;
    font-size:46px !important;
    font-weight:900 !important;
    color:rgba(250,204,21,.16) !important;
    border:1px solid rgba(250,204,21,.12) !important;
    background:radial-gradient(circle,rgba(250,204,21,.08),transparent 68%) !important;
    pointer-events:none !important;
    z-index:0 !important;
}

.top-tele-card .hof-kicker{
    position:relative !important;
    z-index:2 !important;
    text-align:center !important;
    margin:0 0 5px !important;
    font-size:9px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.18em !important;
    color:#facc15 !important;
    text-transform:uppercase !important;
}

.top-tele-card .top-title{
    position:relative !important;
    z-index:2 !important;
    display:block !important;
    width:100% !important;
    text-align:center !important;
    margin:0 !important;
    padding:0 2px 0 !important;
    font-size:8px !important;
    line-height:1.1 !important;
    font-weight:900 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    color:#ffe8a3 !important;
    text-shadow:0 0 10px rgba(250,204,21,.16) !important;
}

.top-tele-card ol{
    position:absolute !important;
    z-index:3 !important;
    left:10px !important;
    right:10px !important;
    bottom:11px !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
}

.top-tele-card li{
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    min-height:31px !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    background:linear-gradient(90deg,rgba(255,255,255,.095),rgba(255,255,255,.035)) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    color:#fff !important;
    box-shadow:0 4px 12px rgba(0,0,0,.18) !important;
}

.top-tele-card li b{
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:11.5px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
    color:#fff !important;
}

.top-tele-card li em{
    font-style:normal !important;
    font-size:12.5px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#facc15 !important;
    min-width:26px !important;
    text-align:right !important;
}

.top-tele-card .medal{
    width:25px !important;
    height:25px !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    flex:0 0 25px !important;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 4px 10px rgba(0,0,0,.28) !important;
    font-size:0 !important;
}

.top-tele-card .medal:after{
    display:block !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#fff8d1 !important;
}

.top-tele-card li:nth-child(1) .medal{background:linear-gradient(135deg,#fff3b0 0%,#facc15 48%,#9a5b05 100%) !important;}
.top-tele-card li:nth-child(2) .medal{background:linear-gradient(135deg,#ffffff 0%,#b8c2d1 52%,#64748b 100%) !important;}
.top-tele-card li:nth-child(3) .medal{background:linear-gradient(135deg,#fed7aa 0%,#c2691b 52%,#7c2d12 100%) !important;}
.top-tele-card li:nth-child(n+4) .medal{background:linear-gradient(135deg,#111827 0%,#020617 100%) !important;border:1px solid rgba(250,204,21,.32) !important;}
.top-tele-card li:nth-child(1) .medal:after{content:"1" !important;}
.top-tele-card li:nth-child(2) .medal:after{content:"2" !important;color:#f8fafc !important;}
.top-tele-card li:nth-child(3) .medal:after{content:"3" !important;color:#ffedd5 !important;}
.top-tele-card li:nth-child(4) .medal:after{content:"4" !important;color:#facc15 !important;font-size:11px !important;}
.top-tele-card li:nth-child(5) .medal:after{content:"5" !important;color:#facc15 !important;font-size:11px !important;}

.top-empty{
    position:absolute !important;
    z-index:3 !important;
    left:12px !important;
    right:12px !important;
    bottom:14px !important;
    margin:0 !important;
    padding:9px 8px !important;
    border-radius:12px !important;
    text-align:center !important;
    font-size:11.5px !important;
    color:#d8c9b6 !important;
    background:rgba(255,255,255,.055) !important;
    border:1px solid rgba(255,255,255,.06) !important;
}

.theme-ios .top-tele-card,
.theme-dark .top-tele-card{
    background:
        radial-gradient(ellipse at 50% 28%, rgba(250,204,21,.20) 0%, rgba(250,204,21,.08) 28%, transparent 52%),
        linear-gradient(180deg,#111827 0%,#090d15 54%,#05070c 100%) !important;
    border-color:rgba(214,158,46,.78) !important;
}
.theme-ios .top-tele-card li,
.theme-dark .top-tele-card li{
    background:linear-gradient(90deg,rgba(255,255,255,.095),rgba(255,255,255,.035)) !important;
    color:#fff !important;
}
.theme-ios .top-tele-card li b,
.theme-dark .top-tele-card li b{color:#fff !important;}
.theme-ios .top-tele-card li em,
.theme-dark .top-tele-card li em{color:#facc15 !important;}

/* Patch V2.2.11 FINAL: Hall of Fame uses uploaded image, placed AFTER all theme overrides */
.top-tele-card,
.theme-dark .top-tele-card,
.theme-ios .top-tele-card{
    width:100% !important;
    height:306px !important;
    min-height:306px !important;
    max-height:306px !important;
    margin:24px 0 0 !important;
    padding:12px 10px !important;
    position:relative !important;
    overflow:hidden !important;
    border-radius:18px !important;
    border:1px solid rgba(214,158,46,.82) !important;
    background:
        linear-gradient(180deg, rgba(5,7,12,.06) 0%, rgba(5,7,12,.12) 40%, rgba(5,7,12,.86) 70%, rgba(5,7,12,.98) 100%),
        url('../uploads/top5_hof_bg.png'),
        linear-gradient(180deg,#111827 0%,#090d15 55%,#05070c 100%) !important;
    background-size:
        100% 100%,
        cover,
        cover !important;
    background-position:
        center center,
        center top,
        center center !important;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat !important;
    box-shadow:
        0 18px 42px rgba(0,0,0,.42),
        inset 0 0 0 1px rgba(255,255,255,.07),
        inset 0 -80px 90px rgba(0,0,0,.38) !important;
}

.top-tele-card:after,
.theme-dark .top-tele-card:after,
.theme-ios .top-tele-card:after{
    display:none !important;
    content:none !important;
}

.top-tele-card:before,
.theme-dark .top-tele-card:before,
.theme-ios .top-tele-card:before{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    inset:7px !important;
    border-radius:14px !important;
    border:1px solid rgba(250,204,21,.25) !important;
    pointer-events:none !important;
    z-index:1 !important;
}

.top-tele-card .hof-kicker,
.theme-dark .top-tele-card .hof-kicker,
.theme-ios .top-tele-card .hof-kicker{
    position:relative !important;
    z-index:3 !important;
    text-align:center !important;
    margin:0 0 4px !important;
    padding:0 !important;
    font-size:8px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.16em !important;
    color:#facc15 !important;
    text-transform:uppercase !important;
}

.top-tele-card .top-title,
.theme-dark .top-tele-card .top-title,
.theme-ios .top-tele-card .top-title{
    position:relative !important;
    z-index:3 !important;
    display:block !important;
    width:100% !important;
    text-align:center !important;
    margin:0 !important;
    padding:0 !important;
    font-size:7.4px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    color:#ffe8a3 !important;
    text-shadow:0 1px 7px rgba(0,0,0,.65) !important;
}

.top-tele-card ol,
.theme-dark .top-tele-card ol,
.theme-ios .top-tele-card ol{
    position:absolute !important;
    z-index:4 !important;
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
}

.top-tele-card li,
.theme-dark .top-tele-card li,
.theme-ios .top-tele-card li{
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    min-height:31px !important;
    padding:4px 8px !important;
    border-radius:999px !important;
    background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.38)) !important;
    border:1px solid rgba(255,255,255,.10) !important;
    color:#fff !important;
    box-shadow:0 5px 14px rgba(0,0,0,.28) !important;
}

.top-tele-card li b,
.theme-dark .top-tele-card li b,
.theme-ios .top-tele-card li b{
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:11.5px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
    color:#fff !important;
}

.top-tele-card li em,
.theme-dark .top-tele-card li em,
.theme-ios .top-tele-card li em{
    font-style:normal !important;
    font-size:12.5px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#facc15 !important;
    min-width:26px !important;
    text-align:right !important;
}

.top-tele-card .medal,
.theme-dark .top-tele-card .medal,
.theme-ios .top-tele-card .medal{
    width:25px !important;
    height:25px !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    flex:0 0 25px !important;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 4px 10px rgba(0,0,0,.34) !important;
    font-size:0 !important;
}

.top-tele-card .medal:after,
.theme-dark .top-tele-card .medal:after,
.theme-ios .top-tele-card .medal:after{
    display:block !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#fff8d1 !important;
}
.top-tele-card li:nth-child(1) .medal{background:linear-gradient(135deg,#fff3b0 0%,#facc15 48%,#9a5b05 100%) !important;}
.top-tele-card li:nth-child(2) .medal{background:linear-gradient(135deg,#ffffff 0%,#b8c2d1 52%,#64748b 100%) !important;}
.top-tele-card li:nth-child(3) .medal{background:linear-gradient(135deg,#fed7aa 0%,#c2691b 52%,#7c2d12 100%) !important;}
.top-tele-card li:nth-child(n+4) .medal{background:linear-gradient(135deg,#111827 0%,#020617 100%) !important;border:1px solid rgba(250,204,21,.35) !important;}
.top-tele-card li:nth-child(1) .medal:after{content:"1" !important;}
.top-tele-card li:nth-child(2) .medal:after{content:"2" !important;color:#f8fafc !important;}
.top-tele-card li:nth-child(3) .medal:after{content:"3" !important;color:#ffedd5 !important;}
.top-tele-card li:nth-child(4) .medal:after{content:"4" !important;color:#facc15 !important;font-size:11px !important;}
.top-tele-card li:nth-child(5) .medal:after{content:"5" !important;color:#facc15 !important;font-size:11px !important;}

.top-empty,
.theme-dark .top-empty,
.theme-ios .top-empty{
    position:absolute !important;
    z-index:4 !important;
    left:12px !important;
    right:12px !important;
    bottom:14px !important;
    margin:0 !important;
    padding:9px 8px !important;
    border-radius:12px !important;
    text-align:center !important;
    font-size:11.5px !important;
    color:#f8e7bd !important;
    background:rgba(0,0,0,.54) !important;
    border:1px solid rgba(255,255,255,.10) !important;
}

/* Patch V2.2.12 FINAL: Hall of Fame image works like Avatar - fixed 128x64 */
.top-tele-card,
.theme-dark .top-tele-card,
.theme-ios .top-tele-card{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:22px 0 0 !important;
    padding:10px 10px 12px !important;
    position:relative !important;
    overflow:hidden !important;
    border-radius:18px !important;
    border:1px solid rgba(214,158,46,.78) !important;
    background:linear-gradient(180deg,#121826 0%,#080b12 100%) !important;
    box-shadow:0 16px 38px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.055) !important;
}
.top-tele-card:before,
.top-tele-card:after,
.theme-dark .top-tele-card:before,
.theme-dark .top-tele-card:after,
.theme-ios .top-tele-card:before,
.theme-ios .top-tele-card:after{
    display:none !important;
    content:none !important;
}
.top5-hof-image-wrap{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 0 6px !important;
    padding:0 !important;
}
.top5-hof-image{
    display:block !important;
    width:200px !important;
    height:155px !important;
    max-width:200px !important;
    max-height:155px !important;
    object-fit:contain !important;
    object-position:center center !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
.top-tele-card .hof-kicker,
.theme-dark .top-tele-card .hof-kicker,
.theme-ios .top-tele-card .hof-kicker{
    text-align:center !important;
    margin:0 0 5px !important;
    padding:0 !important;
    font-size:8px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:.16em !important;
    color:#facc15 !important;
    text-transform:uppercase !important;
}
.top-tele-card .top-title,
.theme-dark .top-tele-card .top-title,
.theme-ios .top-tele-card .top-title{
    display:block !important;
    width:100% !important;
    text-align:center !important;
    margin:0 0 8px !important;
    padding:0 !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    color:#ffe8a3 !important;
    text-shadow:none !important;
}
.top-tele-card ol,
.theme-dark .top-tele-card ol,
.theme-ios .top-tele-card ol{
    position:static !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
}
.top-tele-card li,
.theme-dark .top-tele-card li,
.theme-ios .top-tele-card li{
    display:grid !important;
    grid-template-columns:26px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    min-height:29px !important;
    padding:4px 7px !important;
    border-radius:999px !important;
    background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.035)) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    color:#fff !important;
    box-shadow:none !important;
}
.top-tele-card li b,
.theme-dark .top-tele-card li b,
.theme-ios .top-tele-card li b{
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:11.3px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
    color:#fff !important;
}
.top-tele-card li em,
.theme-dark .top-tele-card li em,
.theme-ios .top-tele-card li em{
    font-style:normal !important;
    font-size:12px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#facc15 !important;
    min-width:24px !important;
    text-align:right !important;
}
.top-tele-card .medal,
.theme-dark .top-tele-card .medal,
.theme-ios .top-tele-card .medal{
    width:23px !important;
    height:23px !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    flex:0 0 23px !important;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.18) !important;
    font-size:0 !important;
}
.top-tele-card .medal:after,
.theme-dark .top-tele-card .medal:after,
.theme-ios .top-tele-card .medal:after{
    display:block !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#fff8d1 !important;
}
.top-tele-card li:nth-child(1) .medal{background:linear-gradient(135deg,#fff3b0 0%,#facc15 48%,#9a5b05 100%) !important;}
.top-tele-card li:nth-child(2) .medal{background:linear-gradient(135deg,#ffffff 0%,#b8c2d1 52%,#64748b 100%) !important;}
.top-tele-card li:nth-child(3) .medal{background:linear-gradient(135deg,#fed7aa 0%,#c2691b 52%,#7c2d12 100%) !important;}
.top-tele-card li:nth-child(n+4) .medal{background:linear-gradient(135deg,#111827 0%,#020617 100%) !important;border:1px solid rgba(250,204,21,.35) !important;}
.top-tele-card li:nth-child(1) .medal:after{content:"1" !important;}
.top-tele-card li:nth-child(2) .medal:after{content:"2" !important;color:#f8fafc !important;}
.top-tele-card li:nth-child(3) .medal:after{content:"3" !important;color:#ffedd5 !important;}
.top-tele-card li:nth-child(4) .medal:after{content:"4" !important;color:#facc15 !important;font-size:10.5px !important;}
.top-tele-card li:nth-child(5) .medal:after{content:"5" !important;color:#facc15 !important;font-size:10.5px !important;}
.top-empty,
.theme-dark .top-empty,
.theme-ios .top-empty{
    position:static !important;
    margin:0 !important;
    padding:8px !important;
    border-radius:11px !important;
    text-align:center !important;
    font-size:11.2px !important;
    color:#d8c9b6 !important;
    background:rgba(255,255,255,.045) !important;
    border:1px solid rgba(255,255,255,.06) !important;
}

/* Patch V2.2.18: customer name display + active sidebar tab */
.customer-name-link{
    display:inline-block !important;
    max-width:320px !important;
    color:var(--ink) !important;
    text-decoration:none !important;
    font-weight:600 !important;
    letter-spacing:.01em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-transform:uppercase !important;
}
.customer-name-link:hover{
    text-decoration:underline !important;
    text-underline-offset:3px !important;
}
.theme-dark .customer-name-link{color:#f8fafc !important;}
.theme-ios .customer-name-link{color:#1f2937 !important;}
.sidebar nav a.active,
nav a.active{
    color:#facc15 !important;
    background:rgba(250,204,21,.10) !important;
    border:1px solid rgba(250,204,21,.28) !important;
}
.theme-ios .sidebar nav a.active,
.theme-ios nav a.active{
    color:#facc15 !important;
    background:rgba(250,204,21,.14) !important;
    border-color:rgba(250,204,21,.35) !important;
}

/* Patch V2.2.20: Dashboard revenue full number */
.kpi-revenue{
    font-size:34px !important;
    letter-spacing:-.035em !important;
    white-space:nowrap !important;
}
@media(max-width:1200px){.kpi-revenue{font-size:30px !important;}}

/* Patch V2.2.21: filter reset button */
.refresh-filter-btn{
    min-width:46px !important;
    width:46px !important;
    padding-left:0 !important;
    padding-right:0 !important;
    text-align:center !important;
    font-size:20px !important;
    line-height:1 !important;
}

/* Patch V2.2.22: compact customer filter row */
.filters.filters-advanced{
    grid-template-columns:minmax(210px,.8fr) 200px 260px 145px 145px 46px 46px 92px !important;
    gap:9px !important;
}
.refresh-filter-btn,
.export-filter-btn{
    min-width:46px !important;
    width:46px !important;
    height:44px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:20px !important;
    line-height:1 !important;
}
.export-filter-btn{
    font-size:19px !important;
}
@media(max-width:1280px){
    .filters.filters-advanced{
        grid-template-columns:1fr 200px 250px 145px 145px 46px 46px 92px !important;
    }
}
@media(max-width:900px){
    .filters.filters-advanced{grid-template-columns:1fr !important;}
    .refresh-filter-btn,.export-filter-btn{width:100% !important;}
}

/* Patch V2.2.23: lighter typography + stable admin action layout */
body,
input,
select,
textarea{
    font-weight:400 !important;
}

b,
strong,
label,
th,
nav a,
.btn,
button,
.pill,
.phone,
.page-num,
.customer-name-link,
.userbox b,
.profile-brand b,
.card p,
.status-card b,
.panel-head h3{
    font-weight:600 !important;
}

.topbar h1,
.card h2,
.status-card span,
.kpi-revenue{
    font-weight:700 !important;
}

td,
td b,
.table-wrap td,
.table-wrap td b{
    font-weight:500 !important;
}

.actions .btn.small,
.btn.small{
    font-weight:600 !important;
}

.top-tele-card .top-title,
.top-tele-card .hof-kicker,
.top-tele-card li b{
    font-weight:600 !important;
}

.top-tele-card li em,
.top-tele-card .medal:after{
    font-weight:700 !important;
}

/* Keep Admin action buttons on one line */
.table-wrap table th:last-child,
.table-wrap table td.actions{
    min-width:190px !important;
    width:190px !important;
}

.actions{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:6px !important;
    white-space:nowrap !important;
}

.actions .btn.small{
    font-size:12px !important;
    padding:6px 9px !important;
    border-radius:9px !important;
    line-height:1.1 !important;
}

/* Patch V2.2.24: remove redundant edit button, compact transfer/delete icons */
.table-wrap table th.actions-col,
.table-wrap table td.actions.action-icons{
    min-width:84px !important;
    width:84px !important;
    max-width:84px !important;
    padding-left:8px !important;
    padding-right:8px !important;
}

.actions.action-icons{
    justify-content:flex-end !important;
    gap:6px !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
}

.icon-action{
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:16px !important;
    line-height:1 !important;
    border-radius:10px !important;
}

.icon-action.danger,
.btn.small.danger.icon-action{
    font-size:15px !important;
}

/* Patch V2.2.25: comfortable tables + live dashboard */
.table-wrap table{
    font-size:13.5px !important;
    line-height:1.45 !important;
}

.table-wrap th{
    font-size:11.5px !important;
    font-weight:500 !important;
    letter-spacing:.045em !important;
    color:var(--muted) !important;
}

.table-wrap td,
.table-wrap td b,
.table-wrap .phone,
.table-wrap .customer-name-link{
    font-weight:400 !important;
}

.table-wrap .customer-name-link{
    font-weight:500 !important;
}

.table-wrap .pill{
    font-size:12px !important;
    font-weight:500 !important;
    letter-spacing:.01em !important;
    padding:4px 9px !important;
}

.table-wrap th,
.table-wrap td{
    padding-top:11px !important;
    padding-bottom:11px !important;
}

.live-status{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:8px;
    font-size:11px;
    font-weight:500;
    color:var(--green);
    vertical-align:middle;
}

.live-status:before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 0 4px rgba(47,109,86,.12);
}

.theme-dark .live-status{color:#2dd4bf;}
.live-status.offline{color:var(--muted);}

.live-changed{
    animation:yori-live-change .7s ease;
}

@keyframes yori-live-change{
    0%{transform:translateY(-2px);color:var(--green);}
    100%{transform:translateY(0);}
}

/* Patch V2.2.26: DEMO total with smaller breakdown */
.status-card .demo-summary{
    display:inline-flex;
    align-items:baseline;
    justify-content:flex-end;
    gap:6px;
    white-space:nowrap;
}

.status-card .demo-summary strong{
    font-size:1em;
    font-weight:700;
}

.status-card .demo-summary small{
    font-size:.5em;
    font-weight:600;
    color:var(--gold);
}

/* Patch V2.2.27: source filter + subtle Top 3 shimmer */
.filters.filters-advanced{
    grid-template-columns:minmax(190px,.8fr) 185px 185px 245px 140px 140px 46px 46px 92px !important;
}

@media(max-width:1280px){
    .filters.filters-advanced{
        grid-template-columns:1fr 185px 185px 230px 140px 140px 46px 46px 92px !important;
    }
}

@media(max-width:900px){
    .filters.filters-advanced{grid-template-columns:1fr !important;}
}

.top-tele-card li:nth-child(-n+3) b{
    position:relative !important;
    overflow:hidden !important;
    animation:yori-top-name-glow 7s ease-in-out infinite !important;
}

.top-tele-card li:nth-child(-n+3) b:after{
    content:"" !important;
    position:absolute !important;
    top:-35% !important;
    bottom:-35% !important;
    left:-45% !important;
    width:34% !important;
    pointer-events:none !important;
    background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.25) 25%,rgba(255,245,170,.95) 50%,rgba(255,255,255,.25) 75%,transparent 100%) !important;
    filter:blur(.4px) !important;
    transform:translateX(-220%) skewX(-18deg) !important;
    animation:yori-top-name-shine 7s ease-in-out infinite !important;
}

.top-tele-card li:nth-child(1) b{
    --top-glow:rgba(250,204,21,.95);
}
.top-tele-card li:nth-child(2) b{
    --top-glow:rgba(226,232,240,.82);
    animation-delay:.35s !important;
}
.top-tele-card li:nth-child(2) b:after{animation-delay:.35s !important;}
.top-tele-card li:nth-child(3) b{
    --top-glow:rgba(251,146,60,.82);
    animation-delay:.7s !important;
}
.top-tele-card li:nth-child(3) b:after{animation-delay:.7s !important;}

@keyframes yori-top-name-glow{
    0%,7%,31%,100%{
        color:#fff;
        text-shadow:none;
    }
    12%,24%{
        color:#fffbe5;
        text-shadow:0 0 5px var(--top-glow),0 0 12px var(--top-glow);
    }
}

@keyframes yori-top-name-shine{
    0%,8%{transform:translateX(-220%) skewX(-18deg);opacity:0;}
    11%{opacity:.95;}
    25%{transform:translateX(520%) skewX(-18deg);opacity:.85;}
    29%,100%{transform:translateX(520%) skewX(-18deg);opacity:0;}
}

@media(prefers-reduced-motion:reduce){
    .top-tele-card li:nth-child(-n+3) b{animation:none;}
}

/* Patch V2.2.29: compact management filters + checkbox multi-select */
.filters.filters-management{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:flex-end !important;
    gap:10px !important;
    padding:14px !important;
    margin-bottom:14px !important;
    border:1px solid var(--line);
    border-radius:16px;
    background:rgba(255,255,255,.025);
}

.filters-management .filter-field{
    flex:1 1 175px;
    min-width:150px;
}

.filters-management .filter-search{
    flex:1.5 1 250px;
}

.filters-management .filter-field label{
    margin:0 0 6px !important;
    font-size:11px !important;
    font-weight:600 !important;
    color:var(--muted);
}

.filters-management .filter-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}

.multi-filter{
    position:relative;
    width:100%;
}

.multi-filter summary{
    height:44px;
    padding:11px 38px 11px 13px;
    border:1px solid var(--line);
    border-radius:13px;
    background:var(--panel);
    color:var(--ink);
    cursor:pointer;
    list-style:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    position:relative;
}

.multi-filter summary::-webkit-details-marker{display:none;}
.multi-filter summary:after{
    content:"⌄";
    position:absolute;
    right:13px;
    top:9px;
    color:var(--muted);
    font-size:18px;
}

.multi-filter[open] summary{
    border-color:var(--gold);
    box-shadow:0 0 0 4px rgba(185,144,74,.15);
}

.multi-filter-menu{
    position:absolute;
    z-index:60;
    top:calc(100% + 7px);
    left:0;
    width:max-content;
    min-width:100%;
    max-width:min(390px,80vw);
    max-height:290px;
    overflow:auto;
    padding:7px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    box-shadow:0 16px 38px rgba(0,0,0,.32);
}

.multi-filter-menu label{
    display:flex !important;
    align-items:center;
    gap:10px;
    min-width:220px;
    margin:0 !important;
    padding:9px 10px;
    border-radius:9px;
    color:var(--ink) !important;
    cursor:pointer;
    font-size:13px !important;
}

.multi-filter-menu label:hover{background:rgba(185,144,74,.12);}
.multi-filter-menu input{
    width:17px !important;
    height:17px !important;
    flex:0 0 17px;
    accent-color:var(--gold);
}

.filters-user-view .filter-field{display:contents;}
.filters-user-view .filter-field > label{display:none;}
.filters.filters-user-view{
    grid-template-columns:minmax(210px,.9fr) 190px 190px 145px 145px 46px 46px 92px !important;
}
.filters-user-view .filter-actions{display:contents;}

@media(max-width:1280px){
    .filters-management .filter-field{flex-basis:165px;}
}

@media(max-width:900px){
    .filters.filters-management{display:grid !important;grid-template-columns:1fr !important;}
    .filters-management .filter-actions{width:100%;}
    .filters-management .filter-actions .btn{flex:1;}
    .filters.filters-user-view{grid-template-columns:1fr !important;}
    .filters-user-view .filter-actions{display:flex;gap:8px;}
}

/* Patch V2.2.30: TOTAL DEMO report + linked Top 5 */
.top5-report-link{
    text-decoration:none !important;
    cursor:pointer !important;
    border-radius:12px;
    transition:filter .18s ease,transform .18s ease;
}

.top5-report-link:hover{
    filter:brightness(1.14);
    transform:translateY(-1px);
}

.demo-report-kpis{
    grid-template-columns:repeat(2,minmax(220px,1fr)) !important;
}

.demo-report .panel-head p{
    margin:5px 0 0;
}

.demo-report th:nth-child(1),
.demo-report td:nth-child(1){
    width:70px;
    text-align:center;
}

.demo-report th:nth-child(n+4),
.demo-report td:nth-child(n+4){
    text-align:center;
}

.demo-rank{
    width:30px;
    height:30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(250,204,21,.13);
    border:1px solid rgba(250,204,21,.32);
    color:var(--gold);
    font-weight:800;
}

.demo-user-link{
    color:var(--ink);
    font-weight:700;
    text-decoration:none;
}

.demo-user-link:hover{
    color:var(--gold);
    text-decoration:underline;
    text-underline-offset:3px;
}

.demo-total{
    display:inline-flex;
    min-width:58px;
    justify-content:center;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(250,204,21,.14);
    color:var(--gold);
    font-size:16px;
}

.demo-history h3{margin-top:0;}
.demo-month-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.revenue-filters .filter-field{
    min-width:230px;
}

.revenue-filters .filter-field > label{
    display:none;
}

@media(max-width:900px){
    .demo-report-kpis{grid-template-columns:1fr !important;}
}

/* Patch V2.2.31: full sidebar ranking + three-state table sorting */
.top-tele-card .medal:before,
.theme-dark .top-tele-card .medal:before,
.theme-ios .top-tele-card .medal:before{
    display:none !important;
    content:none !important;
}

.top-tele-card .medal:after,
.theme-dark .top-tele-card .medal:after,
.theme-ios .top-tele-card .medal:after{
    content:attr(data-rank) !important;
    display:flex !important;
    position:absolute !important;
    inset:0 !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:900 !important;
    color:#fff8d1 !important;
    letter-spacing:-.03em !important;
}

.top-tele-card li:nth-child(n+6) .medal{
    background:linear-gradient(135deg,#111827 0%,#020617 100%) !important;
    border:1px solid rgba(250,204,21,.35) !important;
}

.sort-header{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:inherit;
    text-decoration:none;
    transition:color .16s ease,text-shadow .16s ease;
}

.sort-header span{
    font-size:13px;
    opacity:.42;
    transition:opacity .16s ease,transform .16s ease;
}

.sort-header:hover{
    color:var(--gold);
    text-shadow:0 0 8px rgba(250,204,21,.22);
}

.sort-header:hover span{
    opacity:1;
    transform:translateY(-1px);
}

.sort-header.sort-asc,
.sort-header.sort-desc{
    color:var(--gold);
}

.sort-header.sort-asc span,
.sort-header.sort-desc span{
    opacity:1;
}

/* Patch V2.2.34: rank number is real HTML, not a CSS pseudo-element */
.top-tele-card .medal:before,
.top-tele-card .medal:after,
.theme-dark .top-tele-card .medal:before,
.theme-dark .top-tele-card .medal:after,
.theme-ios .top-tele-card .medal:before,
.theme-ios .top-tele-card .medal:after,
.top-tele-card li:nth-child(n) .medal:before,
.top-tele-card li:nth-child(n) .medal:after{
    display:none !important;
    content:none !important;
}

.top-tele-card .medal .rank-number,
.theme-dark .top-tele-card .medal .rank-number,
.theme-ios .top-tele-card .medal .rank-number{
    display:flex !important;
    position:absolute !important;
    inset:0 !important;
    align-items:center !important;
    justify-content:center !important;
    color:#fff8d1 !important;
    font-size:10px !important;
    line-height:1 !important;
    font-weight:900 !important;
    letter-spacing:-.03em !important;
    text-indent:0 !important;
    visibility:visible !important;
    opacity:1 !important;
}

/* Patch V2.2.35: tomorrow Confirm table */
.confirm-count{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(250,204,21,.13);
    color:var(--gold);
    font-size:13px;
    font-weight:700;
}

.confirm-summary{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
}

.confirm-demo{
    background:rgba(34,197,94,.13);
    color:#4ade80;
}

.confirm-demo-1l{
    background:rgba(59,130,246,.14);
    color:#60a5fa;
}

.confirm-sendhome{
    background:rgba(249,115,22,.15);
    color:#fb923c;
}

.confirm-pending{
    background:rgba(148,163,184,.13);
    color:#cbd5e1;
}

.theme-light .confirm-demo{color:#15803d;}
.theme-light .confirm-demo-1l{color:#1d4ed8;}
.theme-light .confirm-sendhome{color:#c2410c;}
.theme-light .confirm-pending{color:#475569;}

.confirm-sort{
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:inherit !important;
    font-size:inherit !important;
    font-weight:inherit !important;
    text-transform:inherit !important;
    letter-spacing:inherit !important;
    box-shadow:none !important;
}

.confirm-sort span{opacity:.42;margin-left:4px;}
.confirm-sort:hover,
.confirm-sort.active{
    color:var(--gold) !important;
    text-shadow:0 0 8px rgba(250,204,21,.22);
}
.confirm-sort:hover span,
.confirm-sort.active span{opacity:1;}
.confirm-customer-name{
    display:inline-block;
    max-width:320px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-transform:uppercase;
    font-weight:500;
}

/* Patch V2.2.40: abandoned qualified tab for User */
.abandoned-nav-count{
    color:var(--red);
    font-weight:900;
}

.theme-dark .abandoned-nav-count{
    color:#facc15;
}

.abandoned-head p{
    margin:6px 0 0;
}

.abandoned-filters{
    grid-template-columns:minmax(260px,1fr) auto !important;
}

@media(max-width:900px){
    .abandoned-filters{
        grid-template-columns:1fr !important;
    }
}

/* Patch V2.2.42: weekly Top Telemarketing boxes */
.weekly-top-card{
    margin-top:10px;
    padding:10px 12px;
    border:1px solid rgba(250,204,21,.32);
    border-radius:14px;
    background:linear-gradient(180deg,rgba(17,24,39,.92),rgba(8,11,18,.92));
    color:#fff;
}

.weekly-top-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    color:#facc15;
    font-size:12px;
    font-weight:900;
    letter-spacing:.02em;
    margin-bottom:8px;
    text-align:center;
}

.weekly-top-icon{
    display:inline-block;
    font-size:13px;
    line-height:1;
}

.weekly-top-current .weekly-top-title{
    animation:weeklyTopBling 3.4s ease-in-out infinite;
}

.weekly-top-list{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.weekly-top-row{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:10px;
    font-size:12px;
    line-height:1.2;
}

.weekly-top-row b{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.weekly-top-row em{
    color:#facc15;
    font-style:normal;
    font-weight:900;
}

.weekly-top-empty{
    color:#d8c9b6;
    font-size:11px;
    font-weight:800;
    text-align:center;
    line-height:1.25;
}

.weekly-top-previous{
    border-color:rgba(148,163,184,.28);
}

.weekly-top-previous .weekly-top-title,
.weekly-top-previous .weekly-top-row em{
    color:#94a3b8;
}

.weekly-top-previous .weekly-top-icon{
    filter:grayscale(1);
    opacity:.68;
}

.weekly-top-previous .weekly-top-empty{
    color:#94a3b8;
}

@keyframes weeklyTopBling{
    0%,70%,100%{
        text-shadow:none;
        filter:none;
    }
    82%{
        text-shadow:0 0 8px rgba(250,204,21,.55),0 0 16px rgba(250,204,21,.22);
        filter:brightness(1.12);
    }
}

@media(prefers-reduced-motion:reduce){
    .weekly-top-current .weekly-top-title{
        animation:none;
    }
}

/* Patch V2.2.45: Data User overview */
.data-user-table th,
.data-user-table td{
    text-align:center;
}

.data-user-table th:first-child,
.data-user-table td:first-child{
    text-align:left;
}

.data-user-name{
    font-weight:800;
}

.data-user-number{
    font-weight:900;
    font-variant-numeric:tabular-nums;
}

.data-user-blank,
.data-user-demo{
    color:var(--gold);
}

.theme-light .data-user-demo{
    color:#b45309;
}

.data-user-delta{
    display:inline-flex;
    align-items:center;
    gap:2px;
    margin-left:4px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.data-user-delta.delta-up{
    color:#22c55e;
}

.data-user-delta.delta-down{
    color:#ef4444;
}

.theme-light .data-user-delta.delta-up{
    color:#15803d;
}

.theme-light .data-user-delta.delta-down{
    color:#dc2626;
}

.data-user-head-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.data-user-reset-btn{
    background:rgba(250,204,21,.14) !important;
    border-color:rgba(250,204,21,.45) !important;
    color:var(--gold) !important;
    padding:7px 10px !important;
}

.data-user-reset-btn:hover{
    box-shadow:0 0 0 3px rgba(250,204,21,.12);
}

.snapshot-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(2,6,23,.68);
    backdrop-filter:blur(5px);
}

.snapshot-modal-backdrop[hidden]{
    display:none;
}

.snapshot-modal{
    width:min(420px,100%);
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--panel);
    color:var(--ink);
    box-shadow:0 24px 80px rgba(0,0,0,.35);
    padding:22px;
    text-align:center;
}

.snapshot-modal h3{
    margin:0 0 10px;
    color:var(--gold);
    letter-spacing:.04em;
}

.snapshot-modal p{
    margin:0 0 18px;
    font-weight:800;
    line-height:1.45;
}

.snapshot-modal-actions{
    display:flex;
    justify-content:center;
    gap:10px;
}

.snapshot-modal-actions .btn{
    min-width:96px;
}

/* Patch 003: abandoned qualified summary badges */
.abandoned-user-summary{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:12px 0;
}
.abandoned-user-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:34px;
    padding:8px 13px;
    border-radius:999px;
    background:rgba(250,204,21,.15);
    color:var(--gold);
    font-size:13px;
    font-weight:750;
    line-height:1;
}
.abandoned-user-badge b{
    color:var(--gold);
    font-weight:900;
}
.theme-light .abandoned-user-badge,
.theme-ios .abandoned-user-badge{
    background:rgba(185,144,74,.16);
}

/* Patch 005: customers bulk action toolbar */
.customers-bulkbar{
    grid-template-columns:auto auto minmax(190px,390px) auto minmax(220px,1fr) !important;
    align-items:center;
}
.bulk-select-btn{
    min-width:96px;
    justify-content:center;
}
.bulk-random-input{
    width:100% !important;
    max-width:390px !important;
    min-height:36px !important;
    padding:8px 12px !important;
    border-radius:11px !important;
    font-size:13px !important;
}
.bulk-selection-hint{
    color:var(--muted);
    font-size:14px;
    font-weight:800;
    align-self:center;
    transition:color .18s ease, text-shadow .18s ease;
}
.bulk-selection-hint.is-active{
    color:#22c55e;
    text-shadow:0 0 12px rgba(34,197,94,.2);
}
.bulk-action-icons{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
}
.bulk-action-icons .icon-action{
    min-width:42px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
}
.bulk-target-list{
    flex:1 1 auto;
    min-height:120px;
    max-height:56vh;
    overflow-y:auto;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:14px 0 18px;
    text-align:left;
    padding-right:4px;
}
.snapshot-modal .bulk-target-list label{
    display:grid !important;
    grid-template-columns:18px minmax(0,1fr);
    align-items:center;
    gap:10px;
    margin:0;
    padding:9px 10px;
    border:1px solid var(--line);
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    text-align:left;
}
.snapshot-modal .bulk-target-list label:hover,
.snapshot-modal .bulk-target-all:hover{
    border-color:rgba(250,204,21,.45);
    background:rgba(250,204,21,.08);
}
.bulk-target-list input[type="checkbox"],
.bulk-target-all input[type="checkbox"]{
    width:16px !important;
    height:16px !important;
    margin:0 !important;
    min-height:auto !important;
}
.bulk-target-list span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
.transfer-modal-panel{
    width:min(520px,100%);
    max-height:calc(100vh - 40px);
    display:flex;
    flex-direction:column;
}
.bulk-target-all{
    display:grid !important;
    grid-template-columns:18px minmax(0,1fr);
    align-items:center;
    gap:10px;
    margin:2px 0 4px;
    padding:10px 12px;
    border:1px solid rgba(250,204,21,.35);
    border-radius:12px;
    color:var(--gold);
    font-weight:900;
    text-align:left;
    cursor:pointer;
}
body.modal-open{
    overflow:hidden;
}
@media(max-width:900px){
    .customers-bulkbar{grid-template-columns:1fr !important;}
    .bulk-action-icons{justify-content:flex-start;}
    .bulk-random-input{max-width:none !important;}
}

/* Patch 007: customer filter/bulk UI polish */
.filters.filters-management{
    display:grid !important;
    grid-template-columns:minmax(220px,1.35fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.8fr) minmax(150px,.8fr) auto !important;
    align-items:end !important;
    gap:10px !important;
}

.filters-management .filter-actions{
    display:flex !important;
    align-items:end !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
}

.filters-management .filter-actions .btn{
    height:44px !important;
}

.filters-management .filter-actions .refresh-filter-btn{
    flex:0 0 46px !important;
}

.filters-management .filter-actions .btn.primary{
    flex:0 0 auto !important;
    min-width:58px !important;
}

.multi-filter summary{
    display:flex !important;
    align-items:center !important;
    height:46px !important;
    padding:0 38px 0 13px !important;
}

.multi-filter summary:after{
    content:"" !important;
    width:7px !important;
    height:7px !important;
    right:15px !important;
    top:50% !important;
    border-right:1.8px solid currentColor !important;
    border-bottom:1.8px solid currentColor !important;
    transform:translateY(-64%) rotate(45deg) !important;
    color:var(--muted) !important;
    font-size:0 !important;
}

.multi-filter[open] summary:after{
    transform:translateY(-36%) rotate(225deg) !important;
}

.customers-bulkbar{
    grid-template-columns:auto auto minmax(180px,1fr) auto minmax(240px,1fr) !important;
}

.bulk-selection-hint.is-active{
    color:#22c55e !important;
    text-shadow:0 0 12px rgba(34,197,94,.28) !important;
}

@media(max-width:1500px){
    .filters.filters-management{
        grid-template-columns:minmax(220px,1fr) repeat(4,minmax(145px,.8fr)) repeat(2,minmax(145px,.75fr)) auto !important;
    }
}

@media(max-width:1180px){
    .filters.filters-management{
        grid-template-columns:1fr 1fr 1fr !important;
    }
    .filters-management .filter-actions{
        justify-content:flex-start !important;
    }
}

@media(max-width:900px){
    .filters.filters-management{
        grid-template-columns:1fr !important;
    }
    .filters-management .filter-actions .btn{
        flex:1 1 auto !important;
    }
    .customers-bulkbar{
        grid-template-columns:1fr !important;
    }
}

/* Patch 008: force customer bulk/filter layout after server CSS cache issue */
.filters.filters-management{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:flex-end !important;
    gap:10px !important;
}
.filters-management .filter-field{
    flex:1 1 150px !important;
    min-width:0 !important;
}
.filters-management .filter-search{
    flex:1.45 1 230px !important;
}
.filters-management .filter-actions{
    display:flex !important;
    flex:0 0 auto !important;
    align-items:flex-end !important;
    gap:8px !important;
    margin-left:0 !important;
    white-space:nowrap !important;
}
.filters-management .filter-actions .btn{
    flex:0 0 auto !important;
    height:44px !important;
}
.filters-management .filter-actions .refresh-filter-btn{
    width:46px !important;
    min-width:46px !important;
}
.filters-management .filter-actions .btn.primary{
    min-width:58px !important;
}
.customers-bulkbar{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:10px !important;
    margin:14px 0 12px !important;
}
.customers-bulkbar .bulk-select-btn{
    flex:0 0 112px !important;
    min-width:112px !important;
}
.customers-bulkbar .bulk-random-input{
    flex:1 1 280px !important;
    min-width:220px !important;
    max-width:520px !important;
}
.customers-bulkbar .bulk-action-icons{
    flex:0 0 auto !important;
}
.customers-bulkbar .bulk-selection-hint{
    flex:1 1 250px !important;
    min-width:230px !important;
}
.customers-bulkbar .bulk-selection-hint.is-active{
    color:#22c55e !important;
    text-shadow:0 0 12px rgba(34,197,94,.28) !important;
}
@media(max-width:1280px){
    .filters.filters-management,
    .customers-bulkbar{
        flex-wrap:wrap !important;
    }
}
@media(max-width:900px){
    .filters.filters-management,
    .customers-bulkbar{
        display:grid !important;
        grid-template-columns:1fr !important;
    }
}

/* Patch 009: force transfer popup user checkbox alignment */
#transfer-modal .transfer-modal-panel{
    width:min(560px,calc(100vw - 32px)) !important;
    max-height:calc(100vh - 36px) !important;
    display:flex !important;
    flex-direction:column !important;
    text-align:center !important;
    overflow:hidden !important;
}
#transfer-modal .bulk-target-all,
#transfer-modal .bulk-target-list label{
    width:100% !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
    margin:0 !important;
    padding:10px 12px !important;
    border:1px solid var(--line) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.025) !important;
    color:var(--ink) !important;
    font-weight:800 !important;
    text-align:left !important;
    cursor:pointer !important;
}
#transfer-modal .bulk-target-all{
    flex:0 0 auto !important;
    margin:2px 0 10px !important;
    border-color:rgba(250,204,21,.38) !important;
    color:var(--gold) !important;
    background:rgba(250,204,21,.08) !important;
}
#transfer-modal .bulk-target-list label + label{
    margin-top:8px !important;
}
#transfer-modal .bulk-target-all:hover,
#transfer-modal .bulk-target-list label:hover{
    border-color:rgba(250,204,21,.62) !important;
    background:rgba(250,204,21,.1) !important;
}
#transfer-modal .bulk-target-all input[type="checkbox"],
#transfer-modal .bulk-target-list input[type="checkbox"]{
    appearance:auto !important;
    -webkit-appearance:checkbox !important;
    width:18px !important;
    min-width:18px !important;
    height:18px !important;
    min-height:18px !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 18px !important;
    accent-color:var(--gold) !important;
}
#transfer-modal .bulk-target-all span,
#transfer-modal .bulk-target-list span{
    display:block !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    line-height:1.3 !important;
}
#transfer-modal .bulk-target-list{
    flex:1 1 auto !important;
    min-height:150px !important;
    max-height:52vh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    margin:0 0 16px !important;
    padding:2px 6px 2px 0 !important;
    text-align:left !important;
}
#transfer-modal .snapshot-modal-actions{
    flex:0 0 auto !important;
    margin-top:auto !important;
}

/* Patch 018: RULE KHACH header popup + admin editor */
.rule-customer-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:34px !important;
    padding:8px 14px !important;
    border:1px solid rgba(34,197,94,.55) !important;
    border-radius:999px !important;
    background:linear-gradient(135deg,#16a34a,#059669) !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:900 !important;
    letter-spacing:.02em !important;
    box-shadow:0 10px 24px rgba(22,163,74,.22) !important;
}
.rule-customer-btn:hover{
    filter:brightness(1.06);
    box-shadow:0 12px 30px rgba(22,163,74,.3) !important;
}
.rule-customer-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:10050;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:rgba(2,6,23,.72);
    backdrop-filter:blur(5px);
}
.rule-customer-modal-backdrop[hidden]{
    display:none;
}
.rule-customer-modal{
    position:relative;
    width:min(760px,calc(100vw - 44px));
    max-height:calc(100vh - 44px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:24px;
    background:var(--panel);
    color:var(--ink);
    box-shadow:0 30px 90px rgba(0,0,0,.45);
    padding:26px;
}
.rule-customer-modal h2{
    margin:0;
    text-align:center;
    font-size:34px;
    font-weight:500;
    letter-spacing:.04em;
}
.rule-customer-updated{
    margin:8px 0 18px;
    text-align:center;
    color:var(--muted);
    font-size:14px;
    font-weight:700;
}
.rule-customer-close{
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 !important;
    border-radius:50%;
    font-size:24px;
    line-height:1;
}
.rule-customer-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding:18px 20px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(255,255,255,.035);
    text-align:left;
    white-space:normal;
    font-size:16px;
    line-height:1.62;
}
.rule-customer-body strong{
    font-weight:900;
}
.rule-customer-body em{
    font-style:italic;
}
.rule-customer-new{
    color:#22c55e;
    font-weight:850;
}
.theme-light .rule-customer-new,.theme-ios .rule-customer-new{
    color:#16a34a;
}
body.rule-modal-open{
    overflow:hidden !important;
}
.rule-customer-settings .panel-head{
    align-items:flex-start;
}
.rule-editor-toolbar{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:10px;
}
.rule-editor-toolbar .btn.small{
    min-width:42px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.rule-editor-textarea{
    min-height:360px;
    line-height:1.55;
    font-family:Roboto,Arial,sans-serif;
}
@media(max-width:760px){
    .rule-customer-modal{
        padding:20px;
    }
    .rule-customer-modal h2{
        font-size:28px;
    }
    .rule-customer-body{
        padding:14px;
        font-size:15px;
    }
}
