/* Tipovačka 0.20.0 – modern Statistics frontend */
.tip-stats-page{--ts-navy:#0d2e69;--ts-blue:#4a86ff;--ts-text:#173665;--ts-muted:#8193ad;--ts-border:#dce7f4;--ts-soft:#f5f9ff;max-width:1540px;margin:0 auto;color:var(--ts-text)}
.tip-stats-page *{box-sizing:border-box}
.tip-stats-page .tsp-hero{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,#0d2e69 0%,#153f89 56%,#24569f 100%);padding:1.35rem;color:#fff;box-shadow:0 20px 48px rgba(9,34,84,.2);margin-bottom:1rem}
.tip-stats-page .tsp-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 90% 10%,rgba(255,255,255,.13),transparent 19%),radial-gradient(circle at 70% 20%,rgba(103,174,255,.14),transparent 24%);pointer-events:none}
.tip-stats-page .tsp-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,580px);gap:1rem;align-items:stretch}
.tip-stats-page .tsp-hero-copy h1{margin:0 0 .42rem;color:#fff;font-size:clamp(2.05rem,4vw,3.25rem);line-height:1.02;font-weight:950}
.tip-stats-page .tsp-hero-copy p{max-width:790px;margin:0;color:#dbe7ff;font-size:1.02rem;line-height:1.5}
.tip-stats-page .tsp-kicker{display:inline-flex;align-items:center;gap:.42rem;margin-top:.85rem;padding:.43rem .7rem;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.09);border-radius:999px;color:#e7efff;font-size:.8rem;font-weight:850}
.tip-stats-page .tsp-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:#78dd99;box-shadow:0 0 0 4px rgba(120,221,153,.12)}
.tip-stats-page .tsp-hero-panel{padding:1rem 1.05rem;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.11);border-radius:20px;backdrop-filter:blur(6px)}
.tip-stats-page .tsp-filter{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:.55rem;align-items:end}
.tip-stats-page .tsp-field label{display:block;color:#d2e1ff;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.35rem}
.tip-stats-page select,.tip-stats-page input{width:100%;height:44px;border:1px solid rgba(255,255,255,.28);background:#fff;color:#173665;border-radius:12px;padding:.6rem .75rem;font-weight:850;box-shadow:none}
.tip-stats-page select:focus,.tip-stats-page input:focus{outline:none;box-shadow:0 0 0 3px rgba(128,180,255,.18)}
.tip-stats-page .tsp-button{height:44px;border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:0 1rem;background:#fff;color:#173d7c;font-weight:900;cursor:pointer;transition:.16s ease}
.tip-stats-page .tsp-button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(8,32,74,.15)}
.tip-stats-page .tsp-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-top:.72rem}
.tip-stats-page .tsp-stat{padding:.62rem .45rem;border-radius:13px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);text-align:center;min-width:0}
.tip-stats-page .tsp-stat strong{display:block;color:#fff;font-size:1.12rem;line-height:1.12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tip-stats-page .tsp-stat span{display:block;color:#d0dfff;font-size:.68rem;margin-top:.18rem}
.tip-stats-page .tsp-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1rem}
.tip-stats-page .tsp-tab{appearance:none;display:inline-flex;align-items:center;gap:.5rem;min-height:42px;padding:.58rem .82rem;border-radius:999px;border:1px solid #dbe6f4;background:#fff;color:#496488;font-weight:850;font-size:.82rem;cursor:pointer;box-shadow:0 4px 15px rgba(17,45,91,.035)}
.tip-stats-page .tsp-tab small{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:#eef3f8;color:#71849d;font-size:.66rem;font-weight:950}
.tip-stats-page .tsp-tab:hover{color:#244f8c;border-color:#bed1eb;background:#f8fbff}
.tip-stats-page .tsp-tab.is-active{background:linear-gradient(180deg,#eaf3ff,#e1edff);border-color:#b8d0fb;color:#17437f;box-shadow:0 7px 20px rgba(34,91,170,.08)}
.tip-stats-page .tsp-tab.is-active small{background:#173d7c;color:#fff}
.tip-stats-page .tsp-panel{display:none}.tip-stats-page .tsp-panel.is-active{display:block}
.tip-stats-page .tsp-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin:1.15rem 0 .72rem;padding:0 .1rem}
.tip-stats-page .tsp-eyebrow{display:block;color:#7390b6;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.18rem}
.tip-stats-page .tsp-section-head h2{margin:0;color:#173b75;font-size:1.55rem;font-weight:950}
.tip-stats-page .tsp-section-head p{margin:.2rem 0 0;color:var(--ts-muted);font-size:.86rem}
.tip-stats-page .tsp-section-count{display:inline-flex;padding:.4rem .65rem;border-radius:999px;background:#eef4fc;color:#567196;font-size:.72rem;font-weight:900;white-space:nowrap}
.tip-stats-page .tsp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
.tip-stats-page .tsp-card{overflow:hidden;min-width:0;border:1px solid var(--ts-border);border-radius:20px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 26px rgba(17,45,91,.05)}
.tip-stats-page .tsp-card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.88rem .95rem;border-bottom:1px solid #edf2f7;background:#fbfdff}
.tip-stats-page .tsp-card-kicker{display:block;color:#7192bd;font-size:.62rem;font-weight:950;letter-spacing:.08em;margin-bottom:.1rem}
.tip-stats-page .tsp-card-head h3{margin:0;color:#183a72;font-size:.98rem;line-height:1.2;font-weight:950}
.tip-stats-page .tsp-card-count{display:flex;flex:0 0 auto;min-width:32px;height:32px;align-items:center;justify-content:center;border-radius:50%;background:#edf4ff;color:#315f9b;font-size:.74rem;font-weight:950}
.tip-stats-page .tsp-list{padding:.25rem .55rem .45rem}
.tip-stats-page .tsp-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:.62rem;align-items:center;padding:.62rem .35rem;border-bottom:1px solid #edf2f7;border-radius:12px}
.tip-stats-page .tsp-row:last-child{border-bottom:0}.tip-stats-page .tsp-row:hover{background:#f8fbff}
.tip-stats-page .tsp-current{background:#eef5ff!important;border-color:#d9e7fb}
.tip-stats-page .tsp-rank{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#edf3fc;color:#47688f;font-weight:950;font-size:.78rem}
.tip-stats-page .tsp-rank.is-podium{color:#173665;box-shadow:inset 0 0 0 1px rgba(20,57,111,.08)}
.tip-stats-page .tsp-rank.rank-1{background:linear-gradient(180deg,#fff4bd,#f6d86e)}
.tip-stats-page .tsp-rank.rank-2{background:linear-gradient(180deg,#f4f6fa,#d6dde8)}
.tip-stats-page .tsp-rank.rank-3{background:linear-gradient(180deg,#f7dcc5,#dca676)}
.tip-stats-page .tsp-user{min-width:0;position:relative}.tip-stats-page .tsp-name{display:inline;color:#183a72;text-decoration:none;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 36px)}
.tip-stats-page .tsp-name:hover{color:#245ea7}.tip-stats-page .tsp-you{display:inline-flex;margin-left:.3rem;padding:.16rem .32rem;border-radius:999px;background:#dceaff;color:#275aa4;font-size:.58rem;font-weight:950;vertical-align:middle}
.tip-stats-page .tsp-meta{display:block;color:#8999b0;font-size:.68rem;line-height:1.3;margin-top:.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tip-stats-page .tsp-value{text-align:right;color:#173d7c;font-weight:950;font-size:.87rem;white-space:nowrap}
.tip-stats-page .tsp-empty{padding:1rem;color:#8a9ab0;font-size:.82rem}
.tip-stats-page .tsp-note{margin-top:1rem;border:1px solid var(--ts-border);border-radius:16px;background:#f8fbff;color:#73859e;padding:.8rem .9rem;font-size:.78rem;line-height:1.5}
.tip-stats-page .tsp-note strong{color:#476489}
@media(max-width:1180px){.tip-stats-page .tsp-hero-inner{grid-template-columns:1fr}.tip-stats-page .tsp-hero-panel{max-width:850px}.tip-stats-page .tsp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.tip-stats-page .tsp-filter{grid-template-columns:minmax(0,1fr) 120px}.tip-stats-page .tsp-button{grid-column:1/-1}.tip-stats-page .tsp-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.tip-stats-page .tsp-hero{padding:1rem;border-radius:22px}.tip-stats-page .tsp-hero-copy h1{font-size:2rem}.tip-stats-page .tsp-hero-copy p{font-size:.9rem}.tip-stats-page .tsp-filter{grid-template-columns:1fr}.tip-stats-page .tsp-button{grid-column:auto}.tip-stats-page .tsp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.tip-stats-page .tsp-tab{min-width:0;justify-content:space-between;padding:.5rem .62rem;font-size:.72rem}.tip-stats-page .tsp-grid{grid-template-columns:1fr}.tip-stats-page .tsp-section-head{align-items:flex-start}.tip-stats-page .tsp-section-count{display:none}}
@media(max-width:520px){.tip-stats-page .tsp-tabs{grid-template-columns:1fr}.tip-stats-page .tsp-row{grid-template-columns:38px minmax(0,1fr);gap:.52rem}.tip-stats-page .tsp-value{grid-column:2;text-align:left;font-size:.8rem;margin-top:-.15rem}.tip-stats-page .tsp-meta{white-space:normal}.tip-stats-page .tsp-card-head h3{font-size:.92rem}}
