/* Right drawer menu — hamburger */
.sb-kz-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.sb-kz-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sb-kz {
  --sb-primary: #1e88e5;
  --sb-primary-dark: #1565c0;
  --sb-bg: #eaf2fc;
  --sb-card: #ffffff;
  --sb-text: #1f2937;
  --sb-muted: #64748b;
  --sb-border: #d7e6f5;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(86vw, 360px);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--sb-bg) 28%);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  -webkit-overflow-scrolling: touch;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--sb-text);
}
.sb-kz.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}
.sb-kz * { box-sizing: border-box; }

.sb-kz__close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0);
}

.sb-kz__hero {
  position: relative;
  padding: 28px 16px 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #42a5f5 0%, #1e88e5 48%, #1565c0 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.sb-kz__hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18px;
  height: 36px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.sb-kz__hero-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.sb-kz__hero-sub {
  margin: 0 auto 12px;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.92;
}
.sb-kz__hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--sb-primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.sb-kz__user {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  position: relative;
  z-index: 1;
  padding: 4px 8px 8px;
}
.sb-kz__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  flex-shrink: 0;
}
.sb-kz__user-meta { min-width: 0; flex: 1; }
.sb-kz__user-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-kz__user-bal {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
}
.sb-kz__user-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.sb-kz__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sb-kz__section {
  padding: 4px 12px 14px;
}
.sb-kz__section-title {
  margin: 4px 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sb-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sb-kz__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-kz__grid-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  text-decoration: none;
  color: var(--sb-text);
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.sb-kz__grid-item a:active { transform: scale(0.97); }
.sb-kz__grid-item.is-active a {
  border-color: var(--sb-primary);
  background: linear-gradient(180deg, #e3f2fd, #fff);
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.16);
}
.sb-kz__ico {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}
.sb-kz__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  color: var(--sb-text);
}

.sb-kz__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.05);
}
.sb-kz__list-item + .sb-kz__list-item {
  border-top: 1px solid #eef4fb;
}
.sb-kz__list-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--sb-text);
  font-size: 13px;
  font-weight: 600;
}
.sb-kz__list-item a:active { background: #f5f9fe; }
.sb-kz__list-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.sb-kz__list-fa {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 14px;
}
.sb-kz__list-fa--blue { background: linear-gradient(145deg, #42a5f5, #1e88e5); }
.sb-kz__list-fa--green { background: linear-gradient(145deg, #66bb6a, #43a047); }
.sb-kz__list-fa--tg { background: linear-gradient(145deg, #4fc3f7, #229ed9); }
.sb-kz__list-fa--red { background: linear-gradient(145deg, #ef5350, #e53935); }
.sb-kz__list-fa--orange { background: linear-gradient(145deg, #ffb74d, #fb8c00); }
.sb-kz__list-chev {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
}

.sb-kz__foot {
  padding: 8px 16px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--sb-muted);
}

@media (min-width: 501px) {
  /* Lock drawer + dimmer to the centered 500px phone frame */
  .sb-kz-backdrop {
    inset: 0 auto 0 auto;
    left: 50%;
    width: 500px;
    max-width: 500px;
    transform: translateX(-50%);
  }
  .sb-kz {
    /* Closed: park fully off the viewport (not in the gray gutter) */
    right: 0;
    width: min(360px, 500px);
    transform: translate3d(100%, 0, 0);
  }
  .sb-kz.is-open {
    /* Open: align to the right edge of the 500px column and overlay it */
    right: calc(50vw - 250px);
    transform: translate3d(0, 0, 0);
  }
}
