:root {
  --bg: #101010; --bg-2: #171717; --surface: #1d1d1d; --surface-2: #242424;
  --border: #2f2f2f; --text: #f0ece6; --muted: #9a938a; --faint: #6a635a;
  --orange: #EA6A1E; --orange-dim: #b8500e; --orange-soft: rgba(234,106,30,0.13);
  --green: #37c26b; --red: #ef4444; --yellow: #eab308; --blue: #4b8bf5;
  --radius: 14px; --shadow: 0 12px 40px rgba(0,0,0,.55);
  --glass: rgba(23,23,23,.86);
  --sb-w: 208px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 14px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-txt { font-size: 12.5px; margin: -4px 0 12px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Brand / login ---------------- */
.logo-jiir { font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: 1px; color: var(--orange); text-shadow: 0 0 18px rgba(234,106,30,.35); }
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-admin { color: var(--muted); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }
.brand-login { justify-content: center; margin-bottom: 4px; }
.brand-login .logo-jiir { font-size: 40px; } .brand-login .brand-admin { font-size: 16px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(234,106,30,.12), transparent 60%), var(--bg); }
.login-card { width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.login-sub { color: var(--muted); margin: 6px 0 18px; text-align: center; }
.login-card input { width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--orange); }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------------- Buttons / inputs ---------------- */
.btn { border: none; border-radius: 10px; padding: 10px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text); background: var(--surface-2); transition: .15s; }
.btn:hover { filter: brightness(1.15); } .btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--orange); color: #fff; width: 100%; }
.btn-google { background: #fff; color: #191919; width: 100%; margin-bottom: 4px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange-dim); color: var(--orange); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: transparent; border: 1px solid #5b2626; color: #ff9a9a; }
.inp, select, .search-wrap input { padding: 9px 12px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text); font-size: 13px; }
.inp:focus, select:focus { outline: none; border-color: var(--orange-dim); }
.inp.grow { flex: 1; min-width: 220px; }
.search-wrap input, .lf-body select { width: 100%; }
.toolbar select { min-width: 170px; }
.form .fld { margin-top: 12px; } .form .inp { width: 100%; }

/* ---------------- Shell ---------------- */
.app { display: flex; height: 100vh; }

.sidebar { width: var(--sb-w); flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 4px; z-index: 900; transition: width .16s; }
.app.collapsed .sidebar { width: 62px; }
.app.collapsed .lb, .app.collapsed .sb-group, .app.collapsed .sb-brand { display: none; }
.app.collapsed .sb-item { justify-content: center; }
.app.collapsed .sb-collapse { transform: rotate(180deg); }
.sb-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.sb-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--orange); color: #fff; flex-shrink: 0;
  font-weight: 900; font-style: italic; font-size: 19px; display: grid; place-items: center; box-shadow: 0 0 16px rgba(234,106,30,.45); }
.sb-brand { display: flex; flex-direction: column; line-height: 1.2; }
.sb-brand b { font-size: 14px; font-style: italic; letter-spacing: .5px; }
.sb-brand span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.sb-collapse { margin-left: auto; background: transparent; border: none; color: var(--faint); cursor: pointer; font-size: 15px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sb-group { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); padding: 14px 10px 5px; }
.sb-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 10px;
  border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: left; }
.sb-item .ic { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.sb-item:hover { background: var(--surface); color: var(--text); }
.sb-item.active { background: var(--orange-soft); color: var(--orange); }
.sb-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 20px; font-size: 11px;
  background: var(--surface-2); color: var(--muted); text-align: center; }
.sb-badge:empty { display: none; }
.sb-badge.warn { background: rgba(234,179,8,.16); color: var(--yellow); }
.sb-badge.crit { background: rgba(239,68,68,.16); color: #ff8f8f; }
.sb-bottom { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }

.stage { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg-2); z-index: 600; }
.tb-title h1 { margin: 0; font-size: 18px; font-weight: 800; }
.tb-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.tb-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border);
  color: var(--faint); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; min-width: 240px; }
.tb-search:hover { border-color: var(--orange-dim); }
.tb-search span { flex: 1; text-align: left; }
kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 10px; color: var(--muted); }
.tb-btn { background: var(--bg); border: 1px solid var(--border); color: var(--muted); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.tb-btn:hover { color: var(--text); border-color: var(--orange-dim); }
.tb-btn.off { opacity: .55; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tb-btn.off .live-dot { background: var(--faint); box-shadow: none; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.whoami { color: var(--muted); font-size: 12.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--orange);
  display: grid; place-items: center; font-weight: 800; border: 1px solid var(--border); }

/* Views */
.view { display: none; position: relative; flex: 1; overflow: hidden; }
.view.active { display: block; }
.scroll { position: absolute; inset: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* ---------------- KPI cards ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.kpis.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; }
.kpi .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.kpi .v { font-size: 25px; font-weight: 800; margin-top: 6px; line-height: 1.1; }
.kpi .v.sm { font-size: 20px; }
.kpi .sub { color: var(--faint); font-size: 11.5px; margin-top: 4px; }
.kpi.accent { border-color: var(--orange-dim); background: linear-gradient(180deg, var(--orange-soft), transparent); }
.kpi.clickable { cursor: pointer; } .kpi.clickable:hover { border-color: var(--orange-dim); }
.delta { font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.delta.up { color: var(--green); } .delta.down { color: #ff8f8f; } .delta.flat { color: var(--faint); }

/* ---------------- Panels / layout ---------------- */
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1150px) { .grid-2 { grid-template-columns: 1fr; } }
.chart-box { position: relative; height: 230px; width: 100%; }
.chart-box.tall { height: 300px; }
.chart-box canvas { position: absolute; inset: 0; }
.lg { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lg-i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg-i.orange { background: var(--orange); } .lg-i.green { background: var(--green); } .lg-i.blue { background: var(--blue); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------------- Alerts ---------------- */
.alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; }
.alert:hover { border-color: var(--orange-dim); }
.alert .n { font-size: 21px; font-weight: 800; min-width: 34px; }
.alert .t { font-size: 12.8px; font-weight: 600; } .alert .h { font-size: 11px; color: var(--faint); margin-top: 2px; }
.alert.crit { border-color: #5b2626; background: rgba(239,68,68,.07); } .alert.crit .n { color: #ff8f8f; }
.alert.warn { border-color: #5c4a12; background: rgba(234,179,8,.06); } .alert.warn .n { color: var(--yellow); }
.alert.info .n { color: var(--blue); }
.alerts-ok { padding: 12px 14px; border: 1px solid #24512f; background: rgba(55,194,107,.07);
  border-radius: 12px; color: var(--green); font-weight: 600; font-size: 13px; }

/* ---------------- Funnel ---------------- */
.fn-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.fn-row .l { width: 96px; font-size: 12.5px; color: var(--muted); }
.fn-bar { flex: 1; height: 22px; background: var(--surface); border-radius: 6px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: 6px; }
.fn-row .n { width: 74px; text-align: right; font-weight: 700; font-size: 13px; }

/* ---------------- Feed ---------------- */
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.feed.big { max-height: none; }
.fd { display: flex; align-items: flex-start; gap: 11px; padding: 9px 8px; border-radius: 9px; cursor: pointer; }
.fd:hover { background: var(--surface); }
.fd .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.fd .ico.user { background: rgba(75,139,245,.16); color: #7db4ff; }
.fd .ico.job { background: var(--orange-soft); color: var(--orange); }
.fd .ico.offer { background: rgba(234,179,8,.14); color: var(--yellow); }
.fd .ico.pay { background: rgba(55,194,107,.14); color: var(--green); }
.fd .ico.review { background: rgba(255,255,255,.07); color: var(--text); }
.fd .tx { flex: 1; min-width: 0; }
.fd .t1 { font-size: 13px; font-weight: 600; }
.fd .t2 { font-size: 11.5px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd .ago { font-size: 11px; color: var(--faint); white-space: nowrap; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow: auto; max-height: 62vh; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
  padding: 11px 13px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-2); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover { color: var(--orange); }
.tbl th .ar { color: var(--orange); }
.tbl td { padding: 10px 13px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.tbl tr:hover td { background: var(--surface); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 0; font-size: 12px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill.client { background: rgba(75,139,245,.16); color: #7db4ff; }
.pill.provider { background: var(--orange-soft); color: var(--orange); }
.pill.on { background: rgba(55,194,107,.16); color: var(--green); }
.pill.off { background: var(--bg-2); color: var(--faint); border: 1px solid var(--border); }
.pill.warn { background: rgba(234,179,8,.16); color: var(--yellow); }
.pill.crit { background: rgba(239,68,68,.16); color: #ff8f8f; }
.pill.dim { background: var(--surface-2); color: var(--muted); }
.row-actions { display: flex; gap: 5px; flex-wrap: nowrap; }
.link-cell { color: var(--text); cursor: pointer; font-weight: 600; }
.link-cell:hover { color: var(--orange); }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.flags { display: inline-flex; gap: 3px; }

/* ---------------- Map view ---------------- */
#map { position: absolute; inset: 0; background: #0e0e0e; z-index: 1; }
.leaflet-container { background: #0e0e0e; }
.float { position: absolute; z-index: 500; background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.left-float { top: 18px; left: 18px; width: 306px; max-height: calc(100% - 130px); display: flex; flex-direction: column; overflow: hidden; }
.lf-head { padding: 14px 16px 6px; } .lf-head h3 { margin: 0; font-size: 14px; }
.lf-body { padding: 0 16px 16px; overflow-y: auto; }
.layers { display: flex; flex-direction: column; gap: 6px; }
.layer { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.layer.on { color: var(--text); border-color: var(--orange-dim); }
.layer .dot { width: 11px; height: 11px; border-radius: 50%; opacity: .35; }
.layer.on .dot { opacity: 1; }
.dot.heat { background: linear-gradient(90deg, var(--yellow), var(--red)); }
.dot.live { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dot.done { background: var(--green); box-shadow: 0 0 8px var(--green); }
.fld { display: block; font-size: 10.5px; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .6px; }
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg-btn { flex: 1; background: transparent; border: none; color: var(--muted); padding: 7px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg-btn.active { background: var(--orange); color: #fff; }
.seg.small .seg-btn { padding: 5px 9px; font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); padding: 6px 11px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.search-wrap { margin: 14px 0 10px; }
.area-list { display: flex; flex-direction: column; gap: 5px; }
.area-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.area-item:hover { border-color: var(--orange-dim); }
.area-item .n { font-weight: 600; font-size: 13px; } .area-item .c { color: var(--orange); font-weight: 800; }
.area-item .svc { color: var(--faint); font-size: 11px; margin-top: 2px; }
.stats-float { bottom: 18px; right: 18px; left: 342px; padding: 12px 18px; }
.sf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 14px; }
.sf-tile .v { font-size: 21px; font-weight: 800; }
.sf-tile .k { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sf-tile .v .o { color: var(--orange); } .sf-tile .v .g { color: var(--green); }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 12px; border: 1px solid var(--border); }
.leaflet-popup-tip { background: var(--surface); }
.pop b { color: var(--orange); }
.pop-btn { margin-top: 8px; padding: 5px 12px; border: none; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }

/* ---------------- Drawer ---------------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 1000; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 660px; max-width: 100%; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); padding: 20px;
  animation: slideIn .18s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.dw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dw-head h2 { margin: 0; font-size: 19px; }
.dw-close { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.prof-top { display: flex; gap: 15px; align-items: center; margin-bottom: 16px; }
.prof-av { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--surface-2); display: grid;
  place-items: center; color: var(--orange); font-weight: 800; font-size: 24px; border: 1px solid var(--border); }
.prof-name { font-size: 19px; font-weight: 800; }
.prof-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pg-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px; }
.pg-item .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pg-item .v { font-size: 14.5px; font-weight: 600; margin-top: 3px; word-break: break-word; }
.pg-item a { color: var(--orange); text-decoration: none; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc-tag { background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-dim); padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.svc-tag .p { color: var(--text); opacity: .8; margin-left: 4px; }
.prof-sec-title { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 16px 0 6px; }
.prof-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.mini-list { display: flex; flex-direction: column; gap: 5px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 8px 11px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; }
.mini .g { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .d { color: var(--faint); font-size: 11px; }

/* ---------------- Käsupalett ---------------- */
.cmd-wrap { position: fixed; inset: 0; z-index: 1100; }
.cmd-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.cmd { position: absolute; top: 12vh; left: 50%; transform: translateX(-50%); width: 620px; max-width: calc(100% - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cmd input { width: 100%; padding: 17px 20px; background: transparent; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; outline: none; }
.cmd-res { max-height: 54vh; overflow-y: auto; padding: 6px; }
.cmd-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; cursor: pointer; }
.cmd-item.sel, .cmd-item:hover { background: var(--surface-2); }
.cmd-item .kind { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); margin-left: auto; }
.cmd-item .t2 { font-size: 11.5px; color: var(--muted); }
.cmd-sec { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); padding: 10px 13px 4px; }

/* ---------------- Moderatsioon ---------------- */
.admin-tabs { flex-wrap: wrap; }
.admin-content { min-height: 300px; }
.mod-row { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.mod-row .flex { flex: 1; }
.mod-thumb { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--surface-2); cursor: pointer; }
.mod-name { font-weight: 700; }
.mod-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-cell { position: relative; }
.photo-cell .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; border: none; cursor: pointer; font-size: 12px; }
.rates-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.help-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--orange); display: grid; place-items: center; font-weight: 800; cursor: help; }
.help-tip { position: absolute; top: 32px; right: 0; z-index: 20; width: 340px; padding: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .15s; }
.help-icon:hover .help-tip { opacity: 1; visibility: visible; }
.help-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.help-tbl th, .help-tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.help-tbl th { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .5px; }
.help-tbl b { color: var(--orange); }
.rate-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rate-row .cat { flex: 1; font-weight: 600; }
.rate-row input { width: 110px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); }

/* ---------------- Tugi ---------------- */
.support-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 14px; height: 66vh; }
.thread-list { overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.thread { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.thread:hover, .thread.active { background: var(--surface); }
.thread .av { width: 33px; height: 33px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--orange); font-weight: 700; }
.thread .tn { font-weight: 600; font-size: 13px; } .thread .tb { color: var(--muted); font-size: 11.5px; }
.thread .badge { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.chat { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.chat-head { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.bub.them { align-self: flex-start; background: var(--surface-2); }
.bub.me { align-self: flex-end; background: var(--orange); color: #fff; }
.bub .ts { display: block; font-size: 10px; opacity: .6; margin-top: 3px; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-in input { flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 10px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); padding: 11px 18px; border-radius: 11px; box-shadow: var(--shadow); z-index: 1200; }

@media (max-width: 900px) {
  .sidebar { width: 62px; } .lb, .sb-group, .sb-brand { display: none; }
  .left-float { width: calc(100% - 36px); max-height: 42vh; }
  .stats-float { left: 18px; }
  .tb-search { min-width: 0; } .tb-search span { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
  .support-wrap { grid-template-columns: 1fr; height: auto; }
}
