/* =====================================================================
   panel.css — wspólne style elementów panelu (ładowane na każdej stronie z header.php)
   Wyodrębnione 2026-11-06 z bloków <style> w partials/*. Kolejność jak w HTML.
   Ładowane w partials/header.php w <head>, po app.css, przed stylem strony ($PAGE_CSS).
   ===================================================================== */

/* ========== Nawigacja / pasek górny panelu (header.php) — partials/header.php, blok 1/1 (linia 919) ========== */
/* --- NAV / pill --- */
.navbar .nav-pill { border-radius: 999px; }

/* --- AVATAR --- */
.avatar-circle{
  width:28px;height:28px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.8rem;letter-spacing:.02em;
  flex:0 0 auto;
  background:linear-gradient(135deg,#1a3a2a,#0f2b1f);
  border:1px solid rgba(16,185,129,.3);
  color:#34d399;
}
.avatar-lg{ width:40px;height:40px;font-size:1rem; }
.chip-user .avatar-circle{ margin-right:.25rem; }
/* Admin avatar — niebieski */
.chip-admin .avatar-circle,
.desk-profile-head .avatar-circle,
.mob-profile-top .avatar-circle{
  background:linear-gradient(135deg,#1e2d4a,#111e35);
  border:1px solid rgba(59,130,246,.3);
  color:#93c5fd;
}
/* User avatar w kontekście user chipu / karty — zielony */
.chip-user .avatar-circle{
  background:linear-gradient(135deg,#1a3a2a,#0f2b1f);
  border:1px solid rgba(16,185,129,.3);
  color:#34d399;
}

/* --- CHIPS: baza --- */
/* --- KREDYTY v4: dwa wiersze --- */
.chip-credit-v4{
  display:inline-flex;align-items:center;gap:10px;
  padding:6px 14px 6px 10px;border-radius:14px;
  background:rgba(16,185,129,.08);
  border:1px solid rgba(16,185,129,.28);
  box-shadow:0 0 14px rgba(16,185,129,.10);
  transition:background .15s,border-color .15s,box-shadow .15s;
  text-decoration:none;
}
.chip-credit-v4:hover{
  background:rgba(16,185,129,.13);
  border-color:rgba(16,185,129,.4);
  box-shadow:0 0 20px rgba(16,185,129,.18);
}
.chip-v4-icon{ font-size:16px;color:#34d399;flex:0 0 auto; }
.chip-v4-text{ display:flex;flex-direction:column;line-height:1.15; }
.chip-v4-label{
  font-size:10px;color:#34d399;opacity:.65;
  font-weight:700;text-transform:uppercase;letter-spacing:.06em;
}
.chip-v4-value{
  font-size:14px;font-weight:900;color:#34d399;
  font-variant-numeric:tabular-nums;
}

.chip-outline{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.40rem .80rem; border-radius:999px;
  border:1px solid transparent;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.chip-outline:active{ transform: translateY(1px); }

/* --- KREDYTY: zielony glow --- */
.chip-credit{
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.28);
  box-shadow: 0 0 14px rgba(16,185,129,.12);
  color: #34d399;
}
.chip-credit:hover{
  background: rgba(16,185,129,.13);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 20px rgba(16,185,129,.18);
}
.chip-icon{
  width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(16,185,129,.15);
  border:1px solid rgba(16,185,129,.3);
  color:#34d399;
}
.badge-credits{
  font-variant-numeric: tabular-nums;
  padding:.28rem .60rem; border-radius:999px;
  color:#34d399;
  background: rgba(16,185,129,.18);
  border:1px solid rgba(16,185,129,.45);
}
.nav-credit .badge{ font-variant-numeric: tabular-nums; padding:.25rem .55rem; }

/* --- CHIP USER: zielony glow --- */
.chip-user{
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.28);
  box-shadow: 0 0 14px rgba(16,185,129,.10);
  color: #d1fae5;
}
.chip-user:hover{
  background: rgba(16,185,129,.13);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 20px rgba(16,185,129,.16);
  color: #d1fae5;
}
.chip-user .avatar-circle{
  background: linear-gradient(135deg,#1a3a2a,#0f2b1f);
  border:1px solid rgba(16,185,129,.3);
  color:#34d399;
}

/* --- CHIP ADMIN: niebieski glow --- */
.chip-admin{
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 0 14px rgba(59,130,246,.12);
  color: #dbeafe;
}
.chip-admin:hover{
  background: rgba(59,130,246,.13);
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 0 20px rgba(59,130,246,.18);
  color: #dbeafe;
}
.chip-admin .avatar-circle{
  background: linear-gradient(135deg,#1e2d4a,#111e35);
  border:1px solid rgba(59,130,246,.3);
  color:#93c5fd;
}

/* --- WYLOGUJ --- */
.btn-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.25);
  color:#f87171;
  text-decoration:none !important;
  transition:background .15s, box-shadow .15s;
}

.btn-logout:hover{
  background:rgba(239,68,68,.15);
  border-color:rgba(239,68,68,.4);
  box-shadow:0 0 12px rgba(239,68,68,.18);
  color:#fca5a5;
  text-decoration:none !important;
}

.btn-logout i{
  text-decoration:none !important;
  line-height:1;
}
/* --- DROPDOWN --- */
.dropdown-menu{
  background: var(--bs-dropdown-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.credit-dd{ padding: .25rem; }
.credit-head{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom:.35rem; margin-bottom:.6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.credit-head .label{ color: var(--bs-secondary-color); }
.credit-head .value{ font-weight:700; letter-spacing:.02em; font-size:1.05rem; }
.credit-head .unit{ opacity:.85; }
.credit-pln{ margin-top:.1rem; font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); }

/* === TOPBAR === */
:root{ --topbar-h: 30px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--topbar-bg, var(--bs-white));
  border-bottom: 1px solid var(--topbar-border, rgba(0,0,0,.06));
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.topbar .container{
  padding: 4px 0;
  font-size: .85rem;
}
.topbar-container{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}
.tb-sep{ color: rgba(255,255,255,.15); font-size:.85rem }
.tb-clock{
  font-family: monospace;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
}
.tb-day-badge{
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 5px;
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
  letter-spacing: .03em;
}
.tb-hours{ white-space: nowrap; }
.tb-note { color: var(--bs-secondary-color); }

/* status chip (bazowy wygląd) */
.status-pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.18rem .6rem; border-radius:999px;
  font-weight:600; font-size:.92rem; letter-spacing:.01em;
  border:1px solid rgba(34,197,94,.30);
  background: rgba(34,197,94,.12);
  color:#16a34a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.status-pill .dot{ width:8px; height:8px; border-radius:50%; background:#22c55e; }

.status-pill.offline{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
  color:#b91c1c;
}
.status-pill.offline .dot{ background:#ef4444; }

/* --- statusy specjalne (święta / okołoświąteczne) --- */
.status-pill.special{
  border-color: rgba(234,179,8,.35);
  background: rgba(234,179,8,.12);
  color:#f59e0b;
}
.status-pill.special .dot{ background:#f59e0b; }
.status-pill.special.holiday{
  border-color: rgba(245,158,11,.45);
  background: rgba(245,158,11,.12);
  color:#f59e0b;
}
.status-pill.special.delay{
  border-color: rgba(168,85,247,.35);
  background: rgba(168,85,247,.12);
  color:#a855f7;
}

/* małe ekrany + MOBILE FIX */
@media (max-width: 576px){
  .tb-note{ display:none; }
  .topbar-container,
  .topbar-container[style]{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    grid-template-columns: none !important;
    gap: 4px 8px !important;
    padding: 5px 12px !important;
  }
  .topbar-container > div:nth-child(1){
    order:1; flex: 0 0 auto;
  }
  .topbar-container > div:nth-child(2){
    order:2; flex: 0 0 auto;
  }
  .topbar-container > div:nth-child(3){
    order:3;
    flex: 1 0 100%;
    justify-content: flex-start !important;
    font-size: 11px;
    opacity: .7;
  }
  .tb-hours{ white-space: nowrap; }
}

/* odsuń navbar w dół o wysokość topbara */
.navbar.sticky-top{
  position: sticky;
  top: var(--topbar-h);
  z-index: 1020;
}

/* Mocniejsza linia oddzielająca topbar od nawigacji */
.topbar{ border-bottom-color: rgba(255,255,255,.22) !important; }
:root[data-bs-theme="light"] .topbar{ border-bottom-color: rgba(0,0,0,.14) !important; }

/* === PULSUJĄCA KROPKA === */
.status-pill.online { --pulse-color: rgba(34,197,94,.45); --pulse-color-0: rgba(34,197,94,0); }
.status-pill.offline{ --pulse-color: rgba(239,68,68,.45); --pulse-color-0: rgba(239,68,68,0); }

.status-pill .dot{
  box-shadow: 0 0 0 0 var(--pulse-color);
  animation: tbPulse 1.6s ease-out infinite !important;
}
.status-pill.online  .dot{ background:#22c55e; }
.status-pill.offline .dot{ background:#ef4444; }
.status-pill.special .dot{ box-shadow: 0 0 0 0 rgba(234,179,8,.45); }

@keyframes tbPulse{
  0%   { box-shadow: 0 0 0 0   var(--pulse-color); }
  70%  { box-shadow: 0 0 0 8px var(--pulse-color-0); }
  100% { box-shadow: 0 0 0 0   var(--pulse-color-0); }
}

@media (prefers-reduced-motion: reduce){
  .status-pill .dot{ animation: none !important; }
}
/* --- DESKTOP PROFILE CARD DROPDOWN --- */
.desk-profile-dd{
  background: #1a2235 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 20px !important;
  overflow: hidden;
}
.desk-profile-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* --- MOBILE PROFILE CARD --- */
.mob-profile-card{
  margin: 4px 8px 8px;
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(15,23,42,.95));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
}
.mob-profile-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}
.mob-profile-toggle[aria-expanded="true"] .mob-profile-chevron{
  transform: rotate(180deg);
}
.mob-profile-chevron{
  color: #6b7280;
  font-size: 13px;
  transition: transform .2s ease;
}
.mob-profile-top{
  display: flex;
  align-items: center;
  gap: 12px;
}
.mob-profile-info{ flex: 1; min-width: 0; }
.mob-profile-name{
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.mob-profile-credits{
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  margin-top: 2px;
}
.mob-profile-email-row{
  font-size: 12px;
  color: #6b7280;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mob-profile-links{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mob-profile-links a{
  display: flex;
  align-items: center;
  padding: 9px 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: background .12s, color .12s;
}
.mob-profile-links a.active{
  background: rgba(255,255,255,.08);
  color: #fff;
}
.mob-profile-links a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}
.mob-profile-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
}
.mob-profile-actions:has(.mob-btn:only-child),
.mob-profile-actions.single{
  grid-template-columns: 1fr;
}
.mob-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .15s;
}
.mob-btn:hover{ opacity: .85; }
.mob-btn-green{
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.35);
  color: #34d399;
}
.mob-btn-red{
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.30);
  color: #f87171;
}

/* --- AUTH CARD BUTTONS (desktop) --- */
.auth-card-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.auth-card-btn:hover{ transform: translateY(-1px); }
.auth-card-icon{
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
}
.auth-card-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.auth-card-main{
  font-weight: 800;
  font-size: 13px;
}
.auth-card-sub{
  font-size: 11px;
  opacity: .65;
}

/* Zaloguj */
.auth-card-login{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: #e2e8f0;
}
.auth-card-login:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.auth-card-login .auth-card-icon{
  background: rgba(255,255,255,.08);
  color: #94a3b8;
}

/* Rejestracja */
.auth-card-register{
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: rgba(239,68,68,.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}
.auth-card-register:hover{
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 20px rgba(220,38,38,.4);
  color: #fff;
}
.auth-card-register .auth-card-icon{
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* --- MOBILE AUTH CARD --- */
.mob-auth-card{
  margin: 4px 8px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mob-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 10px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .15s;
}
.mob-btn:hover{ opacity: .85; }
.mob-btn-outline{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: #e2e8f0;
}
.mob-btn-danger{
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}
/* =========================================
   NAVBAR – INDYWIDUALNE PILLS
   ========================================= */

.navbar .nav-link.nav-pill{
  position:relative;

  display:flex;
  align-items:center;
  gap:.5rem;

  min-height:44px;

  padding:.65rem .95rem !important;
  margin:0 .18rem;

  border-radius:16px;

  background:rgba(255,255,255,.03);

  border:1px solid rgba(255,255,255,.05);

  color:#cbd5e1 !important;

  font-size:.92rem;
  font-weight:700;

  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

/* hover */

.navbar .nav-link.nav-pill:hover{
  background:rgba(255,255,255,.06);

  border-color:rgba(255,255,255,.10);

  color:#fff !important;

  transform:translateY(-1px);
}

/* aktywny */

.navbar .nav-link.nav-pill.active{
  background:
    linear-gradient(180deg,
      rgba(37,99,235,.24),
      rgba(29,78,216,.16));

  border-color:rgba(96,165,250,.24);

  color:#fff !important;

  box-shadow:
    0 8px 20px rgba(37,99,235,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* ikonki */

.navbar .nav-link.nav-pill i{
  font-size:.92rem;
  opacity:.95;
}

/* MOBILE */

@media(max-width:991px){

  .navbar .nav-link.nav-pill{
    margin:.2rem 0;
    width:100%;
  }
}
.tb-online-users{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border-radius:999px;
  text-decoration:none;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.25);
  color:#22c55e;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.tb-online-users:hover{
  color:#4ade80;
  background:rgba(34,197,94,.16);
}

.tb-online-users i{
  font-size:12px;
}

/* ========== Kafelek KSTune Apps na dashboardzie — partials/apps_card.php, blok 1/1 (linia 16) ========== */
.ksac{position:relative;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(94,138,210,.2);border-radius:16px;background:linear-gradient(115deg,#121d30,#111a2c 72%,#171e34);color:#eef4ff}
.ksac *{box-sizing:border-box}.ksac-main{display:flex;align-items:center;gap:12px;min-width:0}.ksac-logo{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:11px;background:linear-gradient(140deg,#078bd3,#2b56ec);font-size:18px}.ksac-intro{min-width:0;flex:0 0 210px}.ksac-heading{font-weight:800;font-size:14px;line-height:1.25;white-space:nowrap}.ksac-heading small{font-size:9px;color:#83e6b3;background:#10382f;border:1px solid #205b4c;border-radius:12px;padding:3px 6px;margin-left:5px}.ksac-sub{font-size:10px;color:#a2b5ce;margin-top:4px}.ksac-list{display:flex;align-items:center;gap:6px;flex:1;min-width:0;flex-wrap:wrap}.ksac-app{position:relative;display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:5px 8px;border:1px solid rgba(139,166,212,.17);border-radius:8px;background:rgba(255,255,255,.035);color:#dbe8fc!important;text-decoration:none!important;font-size:10px;font-weight:750;white-space:nowrap;transition:background .15s,border-color .15s}.ksac-app i{color:#72aaff;font-size:11px}.ksac-app:hover,.ksac-app:focus-visible{background:#22395c;border-color:#4a85d8;z-index:5}.ksac-tip{position:absolute;left:0;bottom:calc(100% + 9px);width:235px;padding:11px 12px;border:1px solid #395278;border-radius:11px;background:#1c2a42;box-shadow:0 12px 30px #0009;color:#eaf3ff;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(4px);transition:opacity .12s,transform .12s;text-align:left;z-index:20}.ksac-app:hover .ksac-tip,.ksac-app:focus-visible .ksac-tip{opacity:1;visibility:visible;transform:translateY(0)}.ksac-tip strong{display:block;font-size:12px;margin-bottom:5px}.ksac-tip span{display:block;color:#b4c6df;font-size:11px;line-height:1.4;font-weight:400}.ksac-tip em{display:block;font-style:normal;color:#91dcb4;font-size:10px;margin-top:7px}.ksac-cta{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border-radius:9px;background:#2863e8;color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:800;white-space:nowrap}.ksac-cta:hover{background:#3778ff}.ksac-bonus{color:#80e8b3;font-size:9px;margin-left:4px}
@media(max-width:1180px){.ksac-main{flex-wrap:wrap}.ksac-intro{flex:1}.ksac-list{order:3;flex:1 0 100%}.ksac-tip{bottom:auto;top:calc(100% + 8px)}}
@media(max-width:600px){.ksac{padding:10px}.ksac-main{gap:9px}.ksac-logo{width:35px;height:35px;flex-basis:35px}.ksac-heading{font-size:12px}.ksac-sub{font-size:9px}.ksac-cta{padding:8px;font-size:9px}.ksac-list{gap:5px}.ksac-app{font-size:9px;padding:5px 7px}.ksac-tip{width:min(230px,80vw)}}

/* ========== Kafelek Narzędzia na dashboardzie — partials/tools_card.php, blok 1/2 (linia 100) ========== */
.ks-tools-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
    background: #131c2e;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    margin-bottom: 14px;
}

.ks-tools-list {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ks-tools-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,.08);
    margin-right: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ks-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, border-color .12s, transform .08s;
    white-space: nowrap;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.7);
    line-height: 1.4;
}
.ks-tool-btn:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.16);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.ks-tool-btn:active { transform: translateY(0); }
.ks-tool-btn i { font-size: 12px; }

/* Kolory ikon */
.ks-tool-btn.c-green i  { color: #4ade80; }
.ks-tool-btn.c-blue i   { color: #7eb8f7; }
.ks-tool-btn.c-yellow i { color: #f5c542; }
.ks-tool-btn.c-red i    { color: #f87171; }
.ks-tool-btn.c-cyan i   { color: #5eead4; }
.ks-tool-btn.c-orange i { color: #fb923c; }
.ks-tool-btn.c-purple i { color: #c084fc; }

/* Locked */
.ks-tool-btn.locked {
    opacity: .32;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badge */
.ks-tools-status {
    margin-left: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}
.ks-tools-status.on  { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.22); }
.ks-tools-status.off { background: rgba(255,255,255,.04); color: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.08); }

@media (max-width: 900px) {
    .ks-tools-bar {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .ks-tools-label {
        grid-column: 1;
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }

    .ks-tools-status {
        grid-column: 2;
        justify-self: end;
    }

    .ks-tools-list {
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 2px;
    }
}

@media (max-width: 560px) {
    .ks-tools-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px 10px 8px;
        gap: 7px 10px;
        border-radius: 14px;
    }

    .ks-tools-label {
        grid-column: 1;
        font-size: 9px;
        padding: 0;
        margin: 0;
        border: 0;
    }

    .ks-tools-status {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        padding: 2px 8px;
        font-size: 9px;
    }

    .ks-tools-list {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 1px 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ks-tools-list::-webkit-scrollbar {
        display: none;
    }

    .ks-tool-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 32px;
        justify-content: center;
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
        text-align: left;
        scroll-snap-align: start;
    }

    .ks-tool-btn i {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .ks-tool-btn {
        padding: 5px 9px;
        font-size: 10.5px;
    }
}
}

/* ========== Kafelek Narzędzia na dashboardzie — partials/tools_card.php, blok 2/2 (linia 383) ========== */
.ks-tooltip .tooltip-inner {
    background: #1a2640;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
    max-width: 320px;
}
.ks-tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: #1a2640; }
.ks-tooltip.bs-tooltip-top    .tooltip-arrow::before { border-top-color:    #1a2640; }

/* ========== Pasek statusu AutoTuner (admin, dashboard) — partials/autotuner_status_bar.php, blok 1/1 (linia 14) ========== */
.at-admin-status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background:
        radial-gradient(circle at 0% 0%, rgba(245,158,11,.08), transparent 34%),
        #131c2e;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    overflow: hidden;
}

.at-admin-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.at-admin-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.18);
    color: #fbbf24;
    font-size: 17px;
}

.at-admin-status-copy {
    min-width: 0;
}

.at-admin-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.15;
}

.at-admin-status-sub {
    margin-top: 4px;
    color: rgba(255,255,255,.48);
    font-size: .78rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.at-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255,255,255,.03);
}

.at-status-pill.checking {
    color: #fbbf24;
    background: rgba(245,158,11,.10);
    border-color: rgba(245,158,11,.18);
}

.at-status-pill.online {
    color: #4ade80;
    background: rgba(74,222,128,.10);
    border-color: rgba(74,222,128,.20);
}

.at-status-pill.online .at-status-dot {
    box-shadow: 0 0 0 4px rgba(74,222,128,.08), 0 0 10px rgba(74,222,128,.40);
}

.at-status-pill.offline {
    color: #f87171;
    background: rgba(248,113,113,.10);
    border-color: rgba(248,113,113,.20);
}

.at-admin-status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.at-status-time {
    color: rgba(255,255,255,.30);
    font-size: 10px;
    white-space: nowrap;
}

.at-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    transition: .15s ease;
}

.at-settings-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

:root[data-bs-theme="light"] .at-admin-status {
    background:
        radial-gradient(circle at 0% 0%, rgba(245,158,11,.10), transparent 34%),
        #fff;
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 7px 20px rgba(15,23,42,.07);
}

:root[data-bs-theme="light"] .at-admin-status-sub {
    color: rgba(15,23,42,.52);
}

:root[data-bs-theme="light"] .at-status-time {
    color: rgba(15,23,42,.36);
}

:root[data-bs-theme="light"] .at-settings-btn {
    color: #334155;
    background: rgba(15,23,42,.035);
    border-color: rgba(15,23,42,.10);
}

:root[data-bs-theme="light"] .at-settings-btn:hover {
    color: #0f172a;
    background: rgba(15,23,42,.07);
}

@media (max-width: 650px) {
    .at-admin-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .at-admin-status-actions {
        width: 100%;
        justify-content: space-between;
    }

    .at-admin-status-sub {
        white-space: normal;
    }
}

/* ========== Baner AT Slave (dashboard) — partials/at_slave_banner.php, blok 1/1 (linia 127) ========== */
.at-slave-cta {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(251,191,36,.16);
  background:
    radial-gradient(circle at top left, rgba(251,191,36,.10), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  overflow: hidden;
}

.at-slave-close{
  position:absolute;
  top:8px;
  right:8px;
  z-index:10;

  width:24px;
  height:24px;
  border-radius:999px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.24);
  color:rgba(255,255,255,.52);

  font-size:12px;
  line-height:1;
  cursor:pointer;

  backdrop-filter:blur(6px);
  transition:.15s;
}

.at-slave-close:hover{
  color:#fff;
  background:rgba(239,68,68,.18);
  border-color:rgba(239,68,68,.35);
}

.at-slave-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 44px 12px 18px;
}

.at-slave-cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.at-slave-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.at-slave-copy {
  min-width: 0;
}

.at-slave-title {
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.15;
  margin-bottom: 3px;
}

.at-slave-brand {
  color: #fbbf24;
}

.at-slave-text {
  color: rgba(255,255,255,.68);
  font-size: .84rem;
  line-height: 1.28;
}

.at-slave-text br {
  display: none;
}

.at-slave-text strong {
  color: #fff;
}

.at-slave-reward {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(251,191,36,.14);
  color: #fcd34d;
  font-weight: 700;
  margin: 0 2px;
  white-space: nowrap;
}

.at-slave-cta-right {
  flex-shrink: 0;
}

.at-slave-btn {
  border-radius: 11px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border: none;
  color: #1a1a1a;
  font-weight: 750;
  font-size: .86rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245,158,11,.22);
  transition: filter .15s, transform .12s;
}

.at-slave-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #1a1a1a;
}

:root[data-bs-theme="light"] .at-slave-cta {
  border: 1px solid rgba(245,158,11,.20);
  background:
    radial-gradient(circle at top left, rgba(251,191,36,.12), transparent 34%),
    linear-gradient(135deg, #fffef9, #ffffff);
  box-shadow: 0 6px 18px rgba(20,20,20,.08);
}

:root[data-bs-theme="light"] .at-slave-text {
  color: rgba(0,0,0,.58);
}

:root[data-bs-theme="light"] .at-slave-text strong {
  color: #1a1a1a;
}

:root[data-bs-theme="light"] .at-slave-close{
  background:rgba(0,0,0,.05);
  color:rgba(0,0,0,.42);
  border-color:rgba(0,0,0,.08);
}

:root[data-bs-theme="light"] .at-slave-close:hover{
  color:#dc2626;
  background:rgba(239,68,68,.08);
  border-color:rgba(239,68,68,.20);
}

@media (max-width: 767.98px) {
  .at-slave-cta-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 13px 13px 13px 13px;
  }

  .at-slave-cta-left {
    padding-right: 30px;
  }

  .at-slave-btn {
    width: 100%;
  }

  .at-slave-close{
    top:10px;
    right:10px;
    width:24px;
    height:24px;
    font-size:12px;
  }
}

/* ========== Baner poleceń (dashboard) — partials/referral_banner.php, blok 1/1 (linia 32) ========== */
.ref-dash-banner{
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.18), transparent 36%),
    linear-gradient(135deg,#111827,#182338);
  border:1px solid rgba(16,185,129,.22);
  border-radius:14px;
  padding:12px 18px;
  margin-bottom:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.14);
}


.ref-dash-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
}
.ref-dash-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}

.ref-dash-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(16,185,129,.18);
  color:#34d399;
  font-size:18px;
  flex:0 0 auto;
}

.ref-dash-title{
  color:#fff;
  font-weight:800;
  font-size:16px;
  line-height:1.15;
  margin-bottom:3px;
}

.ref-dash-desc{
  color:#b6c2d2;
  font-size:12.5px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ref-dash-stats{
  display:flex;
  gap:8px;
  flex-shrink:0;
}

.ref-dash-stat{
  min-width:76px;
  border-radius:13px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.07);
  padding:8px 10px;
  text-align:center;
}

.ref-dash-stat strong{
  display:block;
  color:#fff;
  font-size:18px;
  line-height:1;
}

.ref-dash-stat span{
  display:block;
  margin-top:4px;
  color:#9ca3af;
  font-size:10.5px;
}

.ref-dash-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ref-dash-btn{
  height:36px;
  border-radius:11px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  border:0;
  white-space:nowrap;
}

.ref-dash-btn-main{
  background:#ef4444;
  color:#fff;
}

.ref-dash-btn-copy{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}

@media(max-width:768px){

  .ref-dash-banner{
    padding:14px;
  }

  .ref-dash-inner{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .ref-dash-left{
    align-items:flex-start;
  }

  .ref-dash-title{
    font-size:15px;
  }

  .ref-dash-desc{
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    margin-top:4px;
  }

  .ref-dash-stats{
    width:100%;
    justify-content:center;
    gap:10px;
  }

  .ref-dash-stat{
    flex:1;
    min-width:0;
    max-width:120px;
    padding:10px 8px;
  }

  .ref-dash-stat strong{
    font-size:26px;
  }

  .ref-dash-stat span{
    font-size:11px;
  }

  .ref-dash-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .ref-dash-btn{
    width:100%;
    justify-content:center;
  }
}.ref-dash-left{
  min-width:0;
}

.ref-dash-left > div:last-child{
  min-width:0;
}

.ref-dash-desc{
  white-space:normal;
}

/* ========== Widżet Turbo Bonus (dashboard) — partials/turbo_bonus_widget.php, blok 1/1 (linia 208) ========== */
.turbo-bonus-card {
    border-radius: 16px;
    overflow: hidden;
}

.tb-card-body {
    padding: 14px 16px !important;
}

.tb-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tb-left {
    width: 118px;
    flex-shrink: 0;
}

.tb-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tb-title-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-title-icon img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.tb-title-text {
    font-size: 14px;
    font-weight: 700;
}

.tb-counter-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.42);
    margin-bottom: 4px;
}

.tb-progress-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tb-progress-main {
    font-size: 24px;
    font-weight: 800;
    color: #6bffaa;
    line-height: 1;
    text-shadow: 0 0 14px rgba(80,255,150,.25);
}

.tb-progress-sep {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
}

.tb-progress-total {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
}
.tb-stamp-row {
    display: flex;
    gap: 5px;
    flex: 1;
    height: 58px;
}

.tb-stamp-slot {
    flex: 1;
    border-radius: 13px;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-stamp-slot.is-empty {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
}

.tb-stamp-slot.is-empty.is-checkpoint {
    border: 1px dashed rgba(255,193,7,.45);
}

.tb-stamp-slot.is-filled {
    background: rgba(15,70,30,.55);
    border: 1px solid rgba(40,180,90,.45);
}

.tb-stamp-slot.is-filled.is-checkpoint {
    border-color: rgba(255,193,7,.8);
    box-shadow: 0 0 0 2px rgba(255,193,7,.08);
}

.tb-slot-count {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 7px;
    color: rgba(255,255,255,.35);
}

.tb-turbine-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.tb-turbine-fill {
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-turbine-fill img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}

.tb-rewards {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tb-rew {
    width: 125px;
    border-radius: 14px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    transition: .25s;
}

.tb-rew-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.tb-rew-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
}

.tb-rew-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(40,200,100,.15);
    border: 1px solid rgba(40,200,100,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #6bffaa;
}

.tb-rew-badge.gold {
    background: rgba(255,193,7,.14);
    border-color: rgba(255,193,7,.28);
    color: #ffd24d;
}

.tb-rew-val {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

.tb-rew-pln {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.tb-rew-btn {
    width: 100%;
    margin-top: 8px;
    padding: 5px 0;
    border: 0;
    border-radius: 999px;
    background: #1c7a38;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.tb-rew-btn:hover {
    background: #14592a;
}

.tb-rew-btn-disabled {
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.35) !important;
    border: 1px solid rgba(255,255,255,.08);
    cursor: not-allowed;
}

.tb-rew.is-idle {
    opacity: .88;
}

.tb-rew.is-near {
    border-color: rgba(255,193,7,.3);
    background: rgba(80,60,10,.16);
    box-shadow: 0 0 20px rgba(255,193,7,.06);
}

.tb-rew.is-ready {
    border-color: rgba(40,200,100,.5);
    background: rgba(12,52,22,.75);
    box-shadow: 0 0 25px rgba(40,200,100,.12);
}

.gold-box.is-ready {
    border-color: rgba(255,193,7,.55);
    background: rgba(65,50,10,.7);
    box-shadow: 0 0 26px rgba(255,193,7,.12);
}

.gold-btn {
    background: #c69214;
}

.gold-btn:hover {
    background: #a97d11;
}

.tb-info-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tb-info-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.28);
}

:root[data-bs-theme="light"] .tb-counter-label {
    color: rgba(0,0,0,.45);
}

:root[data-bs-theme="light"] .tb-progress-pill {
    background: linear-gradient(135deg, rgba(40,160,80,.12), rgba(255,193,7,.12));
    border-color: rgba(0,0,0,.08);
}

:root[data-bs-theme="light"] .tb-progress-main {
    color: #16803a;
}

:root[data-bs-theme="light"] .tb-progress-total {
    color: rgba(0,0,0,.62);
}

:root[data-bs-theme="light"] .tb-stamp-slot.is-empty {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.08);
}

:root[data-bs-theme="light"] .tb-stamp-slot.is-filled {
    background: rgba(25,100,45,.08);
}

:root[data-bs-theme="light"] .tb-rew {
    background: rgba(0,0,0,.02);
    border-color: rgba(0,0,0,.08);
}

:root[data-bs-theme="light"] .tb-rew-name,
:root[data-bs-theme="light"] .tb-rew-pln {
    color: rgba(0,0,0,.5);
}

:root[data-bs-theme="light"] .tb-info-btn {
    border-color: rgba(0,0,0,.12);
    color: rgba(0,0,0,.5);
}

@media (max-width: 767px) {
    .tb-card-body {
        padding: 14px !important;
    }

    .tb-wrap {
        display: grid;
        grid-template-columns: 1fr 38px;
        gap: 14px;
        align-items: start;
    }

    .tb-left {
        width: auto;
        grid-column: 1 / 2;
    }

    .tb-title-row {
        margin-bottom: 8px;
    }

    .tb-title-text {
        font-size: 16px;
    }

    .tb-progress-main {
        font-size: 28px;
    }

    .tb-progress-sep,
    .tb-progress-total {
        font-size: 19px;
    }

    .tb-info-btn {
        grid-column: 2 / 3;
        grid-row: 1;
        justify-self: end;
        margin-top: 2px;
    }

    .tb-stamp-row {
        grid-column: 1 / 3;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 7px;
    }

    .tb-stamp-slot {
        aspect-ratio: 1;
        min-height: 54px;
        border-radius: 13px;
    }

    .tb-turbine-placeholder {
        width: 20px;
        height: 20px;
    }

    .tb-turbine-fill {
        width: 64%;
        height: 64%;
    }

    .tb-slot-count {
        top: 5px;
        left: 7px;
        font-size: 8px;
    }

    .tb-rewards {
        grid-column: 1 / 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tb-rew {
        width: auto;
        padding: 12px;
        border-radius: 15px;
    }

    .tb-rew-name {
        font-size: 11px;
    }

    .tb-rew-val {
        font-size: 18px;
    }

    .tb-rew-pln {
        font-size: 12px;
    }

    .tb-rew-btn {
        padding: 7px 0;
        font-size: 12px;
    }
}

/* ========== Okno „zanim wyślesz zgłoszenie” (dashboard, dodaj zgłoszenie) — partials/ticket_requirements_modal.php, blok 1/1 (linia 175) ========== */
.treq-modal .modal-dialog{
  max-width: 560px;
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
  margin: 1rem auto;
  position: relative;
}

@media (min-width: 576px){
  .treq-modal .modal-dialog{
    min-height: calc(100% - 3.5rem);
    margin: 1.75rem auto;
  }
}

.treq-modal-content{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #1b2130 0%, #151922 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  position: relative;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px){
  .treq-modal-content{ max-height: calc(100vh - 3.5rem); }
}

.treq-modal-content--danger{
  background:
    radial-gradient(circle at 15% -10%, rgba(215,38,38,.22), transparent 45%),
    linear-gradient(180deg, #1b2130 0%, #151922 100%);
}

.treq-modal-content--warning{
  background:
    radial-gradient(circle at 15% -10%, rgba(245,158,11,.18), transparent 45%),
    linear-gradient(180deg, #1b2130 0%, #151922 100%);
}

.treq-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  opacity: .7;
  background-color: rgba(0,0,0,.35);
  border-radius: 50%;
  padding: 8px;
}
.treq-modal-close:hover{ opacity: 1; }

.treq-modal-body{
  padding: 40px 38px 32px;
  text-align: center;
}

.treq-modal-icon{
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.treq-modal-icon--danger{
  background: linear-gradient(145deg, #ef1d1d 0%, #b91414 100%);
  box-shadow: 0 10px 26px rgba(215,38,38,.35);
}

.treq-modal-icon--warning{
  background: linear-gradient(145deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 10px 26px rgba(245,158,11,.30);
}

.treq-modal-title{
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.treq-modal-desc{
  color: rgba(255,255,255,.68);
  font-size: .94rem;
  max-width: 440px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

/* STEPPER */
.treq-stepper{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0 auto 22px;
  max-width: 480px;
}

.treq-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
}

.treq-step-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.45);
}

.treq-step--done .treq-step-icon{
  background: linear-gradient(145deg,#22c55e,#15803d);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(34,197,94,.35);
}

.treq-step--active-danger .treq-step-icon{
  background: linear-gradient(145deg,#ef1d1d,#b91414);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(239,29,29,.16);
  animation: treqPulseDanger 1.8s ease-in-out infinite;
}

.treq-step--active-warning .treq-step-icon{
  background: linear-gradient(145deg,#f59e0b,#b45309);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(245,158,11,.16);
  animation: treqPulseWarning 1.8s ease-in-out infinite;
}

@keyframes treqPulseDanger{
  0%, 100% { box-shadow: 0 0 0 6px rgba(239,29,29,.16); }
  50%      { box-shadow: 0 0 0 10px rgba(239,29,29,.06); }
}
@keyframes treqPulseWarning{
  0%, 100% { box-shadow: 0 0 0 6px rgba(245,158,11,.16); }
  50%      { box-shadow: 0 0 0 10px rgba(245,158,11,.06); }
}

.treq-step--locked .treq-step-icon{
  color: rgba(255,255,255,.30);
}

.treq-step-title{
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
}

.treq-step--locked .treq-step-title{ color: rgba(255,255,255,.42); }

.treq-step-desc{
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

.treq-step--done .treq-step-desc{ color: rgba(34,197,94,.85); }
.treq-step--active-danger .treq-step-desc{ color: #ff9b9b; }
.treq-step--active-warning .treq-step-desc{ color: #fcd34d; }

.treq-step-line{
  flex: 0 0 auto;
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.12);
  margin-top: 22px;
}

.treq-step-line--done{
  background: linear-gradient(90deg,#22c55e, rgba(255,255,255,.2));
}

.treq-price-note{
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px 16px;
  margin-bottom: 26px;
  text-decoration: none;
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease;
}
.treq-price-note:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}

.treq-price-note strong{ color: #fff; }

.treq-price-note__icon{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(143,183,255,.14);
  color: #8fb7ff;
  font-size: .85rem;
}

.treq-price-note span{ flex: 1 1 auto; }

.treq-price-note__arrow{
  flex: 0 0 auto;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

.treq-modal-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.treq-modal-btn-primary{
  background: linear-gradient(180deg,#ef1d1d 0%, #d81414 100%);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 13px;
  padding: 13px 20px;
  font-size: .96rem;
}
.treq-modal-btn-primary:hover{ background: linear-gradient(180deg,#ff2a2a 0%, #df1b1b 100%); color:#fff; }

.treq-modal-content--warning .treq-modal-btn-primary{
  background: linear-gradient(180deg,#f59e0b 0%, #d97706 100%);
}
.treq-modal-content--warning .treq-modal-btn-primary:hover{
  background: linear-gradient(180deg,#fbbf24 0%, #e08a0a 100%);
}

.treq-modal-btn-secondary{
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  padding: 6px;
}
.treq-modal-btn-secondary:hover{ color: rgba(255,255,255,.8); }

@media (max-width: 575.98px){
  .treq-modal .modal-dialog{ margin: .5rem auto; min-height: calc(100% - 1rem); }
  .treq-modal-content{ max-height: calc(100vh - 1rem); border-radius: 18px; }
  .treq-modal-body{ padding: 30px 18px 22px; }
  .treq-modal-icon{ width: 54px; height: 54px; font-size: 22px; margin-bottom: 12px; border-radius: 16px; }
  .treq-modal-title{ font-size: 1.1rem; margin-bottom: 8px; }
  .treq-modal-desc{ font-size: .85rem; margin-bottom: 16px; }
  .treq-stepper{ gap: 0; margin-bottom: 16px; }
  .treq-step{ width: 78px; }
  .treq-step-icon{ width: 36px; height: 36px; font-size: 13px; margin-bottom: 6px; }
  .treq-step-title{ font-size: .68rem; }
  .treq-step-desc{ font-size: .6rem; }
  .treq-step-line{ width: 12px; margin-top: 18px; }
  .treq-price-note{ padding: 10px 12px; font-size: .8rem; margin-bottom: 18px; }
  .treq-modal-btn-primary,
  .treq-modal-btn-secondary{ font-size: .88rem; padding: 11px 16px; }
}

/* Bardzo niskie ekrany (np. telefon w poziomie) — dodatkowa kompresja pionowa */
@media (max-height: 700px){
  .treq-modal-body{ padding-top: 22px; padding-bottom: 18px; }
  .treq-modal-icon{ width: 48px; height: 48px; font-size: 20px; margin-bottom: 10px; }
  .treq-modal-title{ margin-bottom: 6px; }
  .treq-modal-desc{ margin-bottom: 14px; }
  .treq-stepper{ margin-bottom: 14px; }
  .treq-price-note{ margin-bottom: 16px; }
}
