.sidebar-quick-panel {
  margin-top: 8px;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem 0.65rem;
  border-bottom: 1px solid rgba(22, 119, 255, 0.14);
}

.sidebar-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.sidebar-quick-tile {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.6rem 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(22, 119, 255, 0.22);
  background: linear-gradient(165deg, rgba(37, 47, 68, 0.98) 0%, rgba(30, 39, 57, 0.98) 100%);
  color: #e8f2fc;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 16px -14px rgba(0, 0, 0, 0.65);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.sidebar-quick-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  transition: opacity 0.2s ease;
}

.sidebar-quick-tile:hover::after {
  opacity: 1;
}

.sidebar-quick-tile:hover {
  border-color: rgba(22, 119, 255, 0.42);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px -12px rgba(22, 119, 255, 0.28);
  transform: translateY(-1px);
}

.sidebar-quick-tile:active {
  transform: translateY(0) scale(0.99);
}

.sidebar-quick-tile:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}

.sidebar-quick-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  border-radius: 0.65rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-quick-tile__icon .lottie-icon-host,
.sidebar-quick-tile__icon img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  max-width: 1.75rem;
  max-height: 1.75rem;
}

.sidebar-quick-tile:hover .sidebar-quick-tile__icon {
  transform: scale(1.04);
}

.sidebar-quick-tile__body {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
}

.sidebar-quick-tile__title {
  width: 100%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.sidebar-quick-tile__hint {
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(148, 163, 184, 0.92);
}

.sidebar-quick-tile:hover .sidebar-quick-tile__hint {
  color: rgba(226, 232, 240, 0.95);
}

.sidebar-quick-tile--promo .sidebar-quick-tile__icon {
  background: linear-gradient(145deg, rgba(22, 119, 255, 0.35), rgba(9, 88, 216, 0.2));
  color: #91caff;
}

.sidebar-quick-tile--games .sidebar-quick-tile__icon {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.32), rgba(79, 70, 229, 0.18));
  color: #c7d2fe;
}

.sidebar-quick-tile--wheel .sidebar-quick-tile__icon {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.32), rgba(217, 119, 6, 0.18));
  color: #fde68a;
}

.sidebar-quick-tile--daily .sidebar-quick-tile__icon {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.16));
  color: #6ee7b7;
}

.sidebar-quick-tile--daily.is-ready .sidebar-quick-tile__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(16, 185, 129, 0.35);
}

#sidebar-daily-bonus.sidebar-quick-tile:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  border-color: rgba(22, 119, 255, 0.14);
  box-shadow: none;
}

#sidebar-daily-bonus.sidebar-quick-tile:disabled:hover::after {
  opacity: 0;
}

#sidebar-daily-bonus.sidebar-quick-tile:disabled .sidebar-quick-tile__icon {
  background: rgba(22, 119, 255, 0.1);
  color: #64748b;
  transform: none;
  box-shadow: none;
}

#sidebar .sidebar-quick-tile:hover {
  border-color: rgba(255, 30, 30, 0.28);
  background: linear-gradient(165deg, rgba(44, 55, 79, 0.98) 0%, rgba(30, 39, 57, 0.98) 100%);
}

#sidebar .sidebar-quick-tile:hover .sidebar-quick-tile__icon {
  color: #fff;
}

@media (min-width: 1024px) {
  body.sidebar-collapsed #sidebar .sidebar-quick-panel {
    padding-left: 0;
    padding-right: 0;
  }

  body.sidebar-collapsed #sidebar .sidebar-quick-grid {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    justify-items: center;
  }

  body.sidebar-collapsed #sidebar .sidebar-quick-tile {
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.sidebar-collapsed #sidebar .sidebar-quick-tile__body {
    display: none;
  }

  body.sidebar-collapsed #sidebar .sidebar-quick-tile__icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.45rem;
  }

  body.sidebar-collapsed #sidebar .sidebar-quick-tile__icon .lottie-icon-host,
  body.sidebar-collapsed #sidebar .sidebar-quick-tile__icon img {
    width: 1.2rem;
    height: 1.2rem;
    max-width: 1.2rem;
    max-height: 1.2rem;
  }
}

[data-theme="light"] .sidebar-quick-panel {
  border-bottom-color: rgba(22, 119, 255, 0.12);
}

[data-theme="light"] .sidebar-quick-tile {
  color: #0f172a;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(22, 119, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px -10px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .sidebar-quick-tile__hint {
  color: #64748b;
}

[data-theme="light"] .sidebar-quick-tile:hover {
  color: #0f172a;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-theme="light"] #sidebar-daily-bonus.sidebar-quick-tile:disabled {
  color: #94a3b8;
}
